• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript Parameters --> Servlet

 
Baka Neko
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all

I could need a little help with my stuff thats going on here. I cant figure out, why i cant send 2 parameters from my javascript to one servlet and on the other hand its working for another servlet everything from ONE and the SAME jsp..here is the jsp:



This jsp is reading all the files out of a bean and shows em in one table. Its part of a Fileupload / Download + MySQL..some sort of Documentmanagementsystem. The setCMD2 function is working...there you can see, that i got 3 parameters. But the setCMD isnt working..its only working for the filename..if it try to send the fileextension as a paramter to the _Download Servlet..everything crashes...

Any help would be really cool


TIA

Pascal


P.S.: Had to rename o n Click() to on_Click()..board said so
 
Mike Nightsky
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no hidden field in the form for "fex"
put it in below the other hidden-fields and it should work.

Mike
 
Baka Neko
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hooray

Its working now for me..many thx!!!

Greetz

Pascal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic