Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url problem in struts

 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

i have an issue in url. my application have a login action and when user submit username and password control goes to login action and on successfull login i redirect to showuser action
my struts config part is as below

<action path="/login" type="com..action.Login" name="login" scope="request" input="input">
<forward name="success" path="/showuser.do?command=group" />
<forward name="failure" path="/pages/loginnew.jsp" />
</action>

in browser i can see the page corresponding to showuser, but the url still shows login.do, so on calling links from this page it not works as expected. all my links direct to login action

how can i show the showuser.do in url?

thanks in advance.....
 
Rudy Gireyev
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser will only show what you entered in your HTML/JSP form tag. The action attribute of HTML form tag to be precise. What you have in your STRUTS is completely irrelevant.
 
Jomy George
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Rudy Gireyev

i solved that issue by adding redirect = "true" in forward section
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic