Two Laptop Bag
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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Javascript Parameters --> Servlet" Watch "Javascript Parameters --> Servlet" New topic

Javascript Parameters --> Servlet

Baka Neko

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 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



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.


Win the opportunity to make money on the Internet<br /><a href="" target="_blank" rel="nofollow"></a>
Baka Neko

Joined: Dec 09, 2003
Posts: 14

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


wood burning stoves
subject: Javascript Parameters --> Servlet
jQuery in Action, 3rd edition