Use Tiles Tiles, Can easily integrate tiles with Struts2
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Yes, we can do it. Let us consider a scenario we have a payment section and that is getting used in different modules we can whole put logic payment.jsp and we can include jsp using the tag
but your action class should hold data what we are displaying in payment.jsp. So whenever we want payment section just include this page that's it.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
OK, I know that there is 'include' action (even in raw JSP) but I am a little confused with other issue.
Scenario:
1. User clicks 'Submit' button and data is sent to Struts Action.
2. Struts action does something with data and delegates result to JSP.
And my question is:
Which JSP page should be defined as the result of struts action? Please remember that headline and menu are constants and they have to be presented as well as the data which was returned from the action.
And my question is:
Which JSP page should be defined as the result of struts action? Please remember that headline and menu are constants and they have to be presented as well as the data which was returned from the action.
Create two jsp for menu.jsp and headline.jsp. Include these two jsp's in resultant jsp.(Considered menu.jsp, headline.jsp having static content)
And for dynamic content there is another solution.
You can include the above tag in a jsp. It's providing capability of calling an action in a jsp.
Regard's
Mohan.
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad: