Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing Object in a JSP using JSTL  RSS feed

 
Deepika Saxena
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
could any body please tell how to access the object inside a jsp using JSTL?Please find the requirement. I have a studentObject and StudentForm, which will be populated at runtime in StudentDAO class and then passed to the jsp. in the jsp the contents of this StudentForm Object need to display in a table, using JSTL.Please find the code
StudentObject.javaStudentForm.javaStudentDao.javaHandlerServlet.javaStudentSearchResults.jsp
Now, if i the studentObjList is supplied to the jsp l and the data should be displayed in a table , like
Sno--OldNo--NewNumber
1 - A - A1
2 - B - B1
The problem here is, though the desing is very complex, we should find a way to display the
StudentForm object contents using JSTL tags. Any help would be highly appreciated and will save our life.
Thanks in advance.
--Deepika.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65832
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's the JSTL/EL code? What problems are you having with it? How are you creating the scoped variable(s) to send to the JSP?
 
Deepika Saxena
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bibeault,
Thanks for the response.
I modified the code and listed the details that you have asked.
Please have a look.
Thanks.
--Deepika.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65832
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Modifying the original post isn't the best idea. Now I have no idea what is new.

I still do not see where you are creating the scoped variable to send to the JSP (using setAttribute()).

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!