File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

El doubt

 
sri latha
Greenhorn
Posts: 27
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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
  • 0
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic