开发者

struts2 <s:select

开发者 https://www.devze.com 2023-02-09 07:04 出处:网络
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 my

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

精彩评论

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