wood burning stoves 2.0*
The moose likes JSP and the fly likes submiting the output in same page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "submiting the output in same page" Watch "submiting the output in same page" New topic
Author

submiting the output in same page

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

I need to print "hi" in the same page after clicking a submit button.Is it possible in jsp?

Thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Yes.
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
Hi,

You need to write on your jsp page


& on your form action handler redirect it to the same page.


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
ujjwal soni wrote:Hi,

You need to write on your jsp page



I would rather use taglibs/EL for this and certainly not scriptlets nor out.println stuff.


& on your form action handler redirect it to the same page.

Redirect?
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
redirect i mean by this
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
So, a redirect after an out.println()?
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
not really, i know it will throw a response already commited exception dude !!! It has to be written into a servlet or action file (if struts is used).

Hope you got it....
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Sure, I know how the stuff ought to work. I was just surprised about your "answer".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: submiting the output in same page
 
Similar Threads
Avoiding blank page in JSP during reload
method="POST"
Page has Expired
Regarding Page Scope
jdiscuss.com