aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes redirecting problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "redirecting problem." Watch "redirecting problem." New topic
Author

redirecting problem.

Ikasari Widiyanto
Greenhorn

Joined: May 31, 2004
Posts: 29
Hi,

I have problem in redirecting jsp pages. I hope somebody will help me.
I have 1 form and 2 button that do 2 different things, add and send. When I click add, it will go to 1 page and add the items. when I click send it will go to another page and send the info to be processed further. but my problem is that when I click send, instead of sending the info, it will add another item.can help me?
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
post your code here , friend
Ikasari Widiyanto
Greenhorn

Joined: May 31, 2004
Posts: 29
I really like to post my code but I dunno how... seems like this forum not enabled the HTML code... hehe..
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
use this: http://www10.brinkster.com/a1ien51/JavaRanch/Escaper.htm

and make sure you use the code tags!!

Eric
Ikasari Widiyanto
Greenhorn

Joined: May 31, 2004
Posts: 29
this is the html:

this is the javascript:

can solve my problem? Thanks

edited post to diasable smiles and to use code blocks - Eric
[ October 20, 2004: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
you do not need to use that history.go thing,m plus it does not get fiired after the return....


change the second submit button to a regular button and see if that works...
Ikasari Widiyanto
Greenhorn

Joined: May 31, 2004
Posts: 29
Yup... thanks...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: redirecting problem.