• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

return to same page

 
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

is there any method or something in spring like we have in struts1 i.e. mapping.getInputForward()
any suggestion would be great.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what you mean. But based on your title of this thread "return to same page" means you want the incoming URL to be used for the response.

That is what happens if you return void or an object from your controller method.

so

@RequestMapping("/accounts/list")
public void handleSomeIncomingURL() {

}


so the String "list" will be the returning string that the ViewResolver uses to get the page to display.

Hope that makes sense. Basically you don't have to do anything to get that same functionality.

Mark
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Mark,

i understand the way you explained, but what i need is as follows:
i am in page where customer places there order (i.e. url is like example.com/customer/order), now during checking out, the customer need to login (i.e. example.com/login). once login is done, i need to take the customer to the same page where he was before (i.e. example.com/customer/order).
so the same thing happens when the customer want to modify there order (because customer can see their order status with orderId without login to the system).

so how can i get "/customer/order" or "/customer/order/modify"in login
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use Spring Security and it will do that automatically.

Mark
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Mark,

thanks for your response, well i don't know much about spring security, but i will learn it.
anyway thanks a lot.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic