Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes javascript not giving the desired output.Please help. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "javascript not giving the desired output.Please help." Watch "javascript not giving the desired output.Please help." New topic
Author

javascript not giving the desired output.Please help.

puja shaw
Ranch Hand

Joined: Nov 06, 2012
Posts: 32
I am able to run the below given servlet program which includes javascript.
Expected Output: the hidden variable value should be shown in the drop down list in the next page.
Problem:I am not getting any syntax errors but i am not getting the desired output.i.e the value in the hidden field is not getting displayed in the drop down list.
Kindly help me out with the program.



Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

Puja

First of all put your code inside code tags, it become easier to read. Its not a good approach to generate html script from servlet. Servlet serves the purpose of a controller. You should use jsp for your view/presentation part.


Swastik
 
jQuery in Action, 2nd edition
 
subject: javascript not giving the desired output.Please help.
 
Similar Threads
Can't access HTML form page in browser
servlet Not able to fetch value from html file
Help me please
hidden variable syntax not working in servlets
http status 404 resource not found