This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting two jsps without using any action class

 
usha mocherla
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic