Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Accessing Object in a JSP using JSTL

 
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.
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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()).

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic