开发者

How to get a get parameter in Struts 2?

In my result jsp page(view), how do I access a get parameter ?

I tried:

<%

    String para = request.getParameter('whatever');


%>

but it didn't work.

I know that I can use but...I like开发者_高级运维 to get the value in jsp code.


It should, if it's an actual parameter of the current request. Although you'd need to use double-quotes, since you're writing Java code.

But why would you want to do this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜