• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript not giving the desired output.Please help.

 
puja shaw
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1604
5
Android Java Java ME
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic