Forums Register Login

EL - config paramaters

+Pie Number of slices to send: Send
Hi,

Could someone help me in finding out the EL way of getting the config paramater set for a jsp? I can use initParam to get only context-param data. How do i get data the data defined in init-param using EL?

Regards,
Ramya.
+Pie Number of slices to send: Send
Via the pageContext map :
${pageContext.servletConfig.initParameter['emailAddress']}

But it doesn't work
[ January 15, 2006: Message edited by: Satou kurinosuke ]
+Pie Number of slices to send: Send
I read that pageContext is a bean and not a Map
Please advise.
+Pie Number of slices to send: Send
not a map, sorry
+Pie Number of slices to send: Send
Check SCWCD FAQ
+Pie Number of slices to send: Send
Do you mean to say ${pageContext.servletConfig.initParameter['emailAddress']} wont work?
+Pie Number of slices to send: Send
yes, sorry. I've been mistaken.
+Pie Number of slices to send: Send
Hi All,

when I tried with the above EL I get the error

javax.servlet.jsp.el.ELException: Unable to find a value for "initParameter" in object of class "org.apache.catalina.core.StandardWrapperFacade" using operator "."
at org.apache.commons.el.Logger.logError(Logger.java:481)
at org.apache.commons.el.Logger.logError(Logger.java:498)
at org.apache.commons.el.Logger.logError(Logger.java:611)
at org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:340)
at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)



You have to be odd to be #1 - Seuss. An odd little ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1299 times.
Similar Threads
Scriptless JSP and config param
A question about servlet initParameter
anywhere to set "init-param" type values for a JSP page ?
config with JSP
web.xml template - very important for exam
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:00:06.