This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes Javascript Parameters --> Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript Parameters --> Servlet" Watch "Javascript Parameters --> Servlet" New topic
Author

Javascript Parameters --> Servlet

Baka Neko
Greenhorn

Joined: Dec 09, 2003
Posts: 14
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

Joined: Aug 18, 2001
Posts: 48
there is no hidden field in the form for "fex"
put it in below the other hidden-fields and it should work.

Mike


Win the opportunity to make money on the Internet<br /><a href="http://sweeps.sitesell.com/minirich.html" target="_blank" rel="nofollow">http://sweeps.sitesell.com/minirich.html</a>
Baka Neko
Greenhorn

Joined: Dec 09, 2003
Posts: 14
Hooray

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

Greetz

Pascal
 
 
subject: Javascript Parameters --> Servlet