• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

url problem in struts

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Rudy Gireyev

i solved that issue by adding redirect = "true" in forward section
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic