my dog learned polymorphism*
The moose likes Struts and the fly likes connecting two jsps without using any action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "connecting two jsps without using any action class" Watch "connecting two jsps without using any action class" New topic
Author

connecting two jsps without using any action class

usha mocherla
Ranch Hand

Joined: Sep 24, 2004
Posts: 33
hi
in my jsp page i've one link which has to go to some other jsp page.
say link name is "Add Quote".the destination page is "AddQuote.jsp" whose complete path is "/WEB-INF/jsp-files/corporate/AddQuote.jsp.
i 've used html:link tag but its not working.404 error is displyed.
but if i deploy the jsp page in the weapps folder in tomcat,rather than going to WEB-INF,then the page is displayed.
now i had to create one dummy action class.
i.e. in "html:link" tag i 'll ve to specify dummyAction.do and through struts config i'll 've to go to my destination jsp page "AddQuote.jsp"
I WANT TO KNOW IF WE CAN CONNECT TWO JSPS WITHOUT USING ANY "ACTION CLASS".
plz anybody can help me
regards
Sunil Manheri
Ranch Hand

Joined: Jul 07, 2004
Posts: 32
Hi,
According to the Struts framework, each request should go only through anb Action class. This is the right practice because the end user will not get the page name, only the mapping name. Struts provided built-in Action class for this. You can use this.
Regards,
Sunil.


TechMindViews - Technical Notes
 
 
subject: connecting two jsps without using any action class
 
Similar Threads
Problem with html:link forward="" tag
problem using html:link
Struts 2: tree tag causing javascript errors
Problem forwarding to another page using struts.
html:link problem with frames.