File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Trouble with form posting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Trouble with form posting" Watch "Trouble with form posting" New topic
Author

Trouble with form posting

Tianpeng Xia
Greenhorn

Joined: Feb 07, 2012
Posts: 16
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

Joined: Jun 06, 2007
Posts: 2712
    
    5

What have you done till now?
What problem are you facing??
Please TellTheDetails


SCJP, SCWCD.
|Asking Good Questions|
RatiKanta pal
Ranch Hand

Joined: Nov 13, 2011
Posts: 55

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

Joined: Jun 06, 2007
Posts: 2712
    
    5

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

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Jan 10, 2002
Posts: 60053
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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 ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble with form posting
 
Similar Threads
Submit the form
Opera submits form on enter Explorer dont ?
Jquery Slider - Form to be submitted with value of the slider when sliding is stopped
How to prevent to click multi submit button?
Question about forms