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.
精彩评论