Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Action Forword

 
Ggaurav Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I m forwording from action class and in the url i m getting ActionClass Name like http://localhost:8080/Test/TestLogin.do

i want the in the URL the jsp name should be displayed is it possible in struts 1.3

like : http://localhost:8080/Test/HomePage.jsp

in the ActionClass i m returning ..............

return mapping.findForward("test");

in struts-config.xml

<forward name="test" path="/HomePage.jsp" />

Please suggest me



 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the mapping in web.xml from *.do to *.jsp. It'll do the trick.
 
Ggaurav Gupta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I tried it after that i m getting Invalid path was requested. Not able to run my application. Everytime it is saying Invalid path was requested
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you want the entire app to look like you're hitting JSP pages, or do you just want that one page to be a JSP?
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ggaurav Gupta wrote:Hello ,

I tried it after that i m getting Invalid path was requested. Not able to run my application. Everytime it is saying Invalid path was requested


Stacktrace?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic