-
JSTL to retrieve init Param (5 messages)
- Posted by: Amit L
- Posted on: October 27 2006 04:16 EDT
Hi, We have a defined an init parameter in web.xml as below x.y someValue Now I want to access the same in JSP using JSTL but it is not accessible. JSP code is as below If I change the context param name to "x" then using initParam.x the value can be retrieved. But If we keep the context param name to "x.y" then JSTL is not able to retrieve the value. I think there must be problem fetching the value when name is "x.y". Has anyone faced this kind of problem? Any help is appreciated. regards, AmitThreaded Messages (5)
- Re: JSTL to retrieve init Param by pradheesh manohar on October 30 2006 04:12 EST
- Re: JSTL to retrieve init Param by Amit L on October 31 2006 09:00 EST
-
Re: JSTL to retrieve init Param by pradheesh manohar on October 31 2006 12:31 EST
-
Re: JSTL to retrieve init Param by Amit L on November 01 2006 12:53 EST
- Re: JSTL to retrieve init Param by pradheesh manohar on November 04 2006 12:14 EST
-
Re: JSTL to retrieve init Param by Amit L on November 01 2006 12:53 EST
-
Re: JSTL to retrieve init Param by pradheesh manohar on October 31 2006 12:31 EST
- Re: JSTL to retrieve init Param by Amit L on October 31 2006 09:00 EST
-
Re: JSTL to retrieve init Param[ Go to top ]
- Posted by: pradheesh manohar
- Posted on: October 30 2006 04:12 EST
- in response to Amit L
this should solve your problem regards, pradheesh -
Re: JSTL to retrieve init Param[ Go to top ]
- Posted by: Amit L
- Posted on: October 31 2006 09:00 EST
- in response to pradheesh manohar
Hello, Thank you very much for the input. It has solved the problem. Can I know what is the logic behind this? This may be the simple one but i am very new to this JSTL and hence not able to figure out exactly how it is working. Many thanks Again Amit -
Re: JSTL to retrieve init Param[ Go to top ]
- Posted by: pradheesh manohar
- Posted on: October 31 2006 12:31 EST
- in response to Amit L
The EL borrows the JavaScript syntax for accessing structured data like named array element ,with the ["name"] operator. JavaBeans component properties and java.util.Map entries, using the key as the property name, can be accessed this way. ${myObj["myProperty"]} -
Re: JSTL to retrieve init Param[ Go to top ]
- Posted by: Amit L
- Posted on: November 01 2006 00:53 EST
- in response to pradheesh manohar
Many thanks once again for the explaination. In the mean time i found a good overview PDF for JSTL tags. Sending you the link herewith as attachment is not possible. http://www.oio.de/public/java/jstl-reference/jstl-reference-2005.pdf regards, Amit -
Re: JSTL to retrieve init Param[ Go to top ]
- Posted by: pradheesh manohar
- Posted on: November 04 2006 12:14 EST
- in response to Amit L
thank you amit for the reference guide