超链接传参数方式如下:

<a href=xxxServlet?flag=1  target=“XX”></a>

注意:target=“XX”是用来指定在什么窗体打开。xx为该窗体的id。

在servlert中接受方式如下:

String flag=request.getParameter("flag");

注意:servlet中的处理方法必须是doGet() , 否则接受不到超链接传递的参数。

相关文章:

  • 2021-09-13
  • 2021-11-24
  • 2022-12-23
  • 2021-07-03
  • 2021-11-20
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-07-04
  • 2022-01-25
相关资源
相似解决方案