Mainak
Mainak

Reputation: 3

Struts normal JSP multiple form

I have 2 JSP pages: page1.jsp and page2.jsp and 2 action classes testAction1.java and testAction2.java. By default I am displaying the page1.jsp through the testAction1.java. Both pages have the link to go the other page. I want to know how it is possible to display the separate JSP-s through different action classes?

Also one thing I want to know whether the JSP pages can have multiple form tag where I can put different action?

Please help.

Upvotes: 0

Views: 684

Answers (1)

Santosh
Santosh

Reputation: 17923

I want to know how it is possible to display the separate jsps through different action classes?

Isn't that the very basic of what Struts framework do?

I want to know whether the jsp pages can have multiple form tag where I can put different action?

Yes you can put different form tag in a JSP. Check this example for reference. This uses two submit buttons in the same form, but you can have two different forms altogether.

Upvotes: 1

Related Questions