开发者

how to transfer value from one jsp page to second jsp page

i have one value called titleValue at one jsp page called titleValue..i need to show this value at second jsp page.. could you please tell me how to show this value at second page or how to x:out $titleValue at second page?

this is m开发者_如何转开发y code at first page :

<x:set select="title" var="titleValue" scope="session"/>
<x:out select="$titleValue"/>


Two ways:

  • put it in the session. Accessible throgh ${sessionScope.titleValue}
  • pass it as a get parameter (page.jsp?titleValue=something). In that case it is accessible with ${param.titleValue}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜