This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

El doubt

 
sri latha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ScopedVars.java



scoped-vars.jsp





Can anyone Please explain why my scoped-vars.jsp is not displaying the attribute values from servlet. It is simply displaying the output like this.

attribute1:
attribute2:
attribute3:
Source of "repeated" attribute
Thanks in advance
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Already answered the same one yesterday !

http://www.coderanch.com/t/291490/JSP/java/Accessing-scoped-variables-EL
 
sri latha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry satou still iam not getting the output. May be i think my jsp is not recognising the servlet. can any one help me.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everything seems right. Be sure that the URL in your browser is pointing to the mapped servlet and not to the JSP.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mmh, everything looks fine indeed.
Did you try removing the DOCTYPE in your jsp file ?
 
sri latha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Marc, you are right. i didnt even think when we call servlet only it forwards to jsp.not vice versa according to the code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic