• Post Reply Bookmark Topic Watch Topic
  • New Topic

Assign html element to jsp variable

 
Sach Nayak
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im new to jsp. I have the following html in my jsp



How do I assign job in the scriplet like how we do <% String job = request.getParameter("job")%> but on the same page? <% String job = request.getParameter("job")%> returns null value.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You fundamentally misunderstand how JSPs work. This article may help you understand better: http://www.javaranch.com/journal/200510/secret-life.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!