• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scriptless JSP and config param

 
Armand Thierry Bessala
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I have some init parameters for my JSP file and I wanted to display them without using scriptlet.
With scriptlet I wrote this:

and it work fine.
Whithout scriptlet ( with EL ):

How can I retreive servlet init paramameter fom DD. There is no "config" implicit variable for JSP file. Witch implicit variable can I use ? How ?

This is my DD:


Thank you.
 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure you could do this without a scripting element. The examples I've seen have overridden jspInit() and from there used getServletConfig().getInitParameter("name") and then set it in a scoped attribute.
 
Krishna Latha Grandhi
Ranch Hand
Posts: 110
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Krishna,
With almost 100 posts, you've never heard of the ranch's naming policy ?
Could you please read it and change your name accordingly ?
http://www.javaranch.com/name.jsp
 
Armand Thierry Bessala
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ed, Hi Krishna,
Thank you for your replies. I also seen the example with overriding of jspInit...I tougth that there was another way ..
With krishna link, I see now there is no way I can directlly access theses values with EL...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic