Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble with form posting

 
Tianpeng Xia
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you see, i want to submit a form to an external link. when my client submit it, i want to delete some information from the session object. how can i achieve this?
THANKS!
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you done till now?
What problem are you facing??
Please TellTheDetails
 
RatiKanta pal
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

you can do one thing inside submit code you can call a method which will delete your session data.


like <input type="submit" onClick="your method">
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RatiKanta pal wrote:hi,
you can do one thing inside submit code you can call a method which will delete your session data.
like <input type="submit" onClick="your method">

A Javascript function to delete session object??
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit Ghorpade wrote:
A Javascript function to delete session object??

probably he mean, call a servlet and invalidate session before submitting..

@Tianpeng : in which application do you want to clear session? is it source application?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:
probably he mean, call a servlet and invalidate session before submitting..

There is no way the post could be interpreted in that way.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:
There is no way the post could be interpreted in that way.

Indeed. I was wrongly thinking that below one is possible...


So the solution is call a servlet , invalidate session and then redirect with query string(form datas) to another application.

Thanks Bear ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic