开发者

struts2 <s:select

I am trying to populate the <s:sele开发者_Go百科ct options using a struts action class. How do I initialiase the class from within a jsp? So instead of using something like myjsp.action - I have myjsp.jsp and invoke myjsp.action from within the jsp itself.

Thanks


Based upon your explanation in the comment, I feel this is how you should be doing this:

User -> HTTPRequest -> Action (populate data required for s:select in HTTPRequest)
                          |
                          V
User <- HTTPResponse <- OnSuccess, show a final.jsp (this jsp can include the searchForm.jsp)

The s:select in searchForm will be rendered correctly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜