• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jspinitparameter

 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to get Jsp init parameter using EL syntax
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking about this ?
 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was asking about parameter that we declared inside <servlet> <jsp-file> in web.xml

thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would use the "initParam" implicit object then.
 
Reesha Ashok
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InitParam implicit object of EL gives only context parameters, right? init-param declared under <servlet> tag will be config parameters, specific to that servlet - in this case specific to the jsp servlet. So how can initParam implicit object be used to retrieve jsp init param.?
Closest guess I would make is "config" implicit object of jsp as that is the implicit object for ServletConfig. Don't have any concrete proof though.
And as it turns out, config implicit object is not available in EL.
[ April 07, 2008: Message edited by: R Nellika ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, my miss. I didn't read "V Gala"'s reply carefully. So the link I have posted in my first post was actually relevant : InitParamsThruExpressionLanguage
 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
where is the errata page for HFS
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic