File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirecting problem.

 
Ikasari Widiyanto
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post your code here , friend
 
Ikasari Widiyanto
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use this: http://www10.brinkster.com/a1ien51/JavaRanch/Escaper.htm

and make sure you use the code tags!!

Eric
 
Ikasari Widiyanto
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup... thanks...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic