Teena George wrote:Hi Rupa,
I hope you are using EL in your JSP pages. You can access a map like this:
or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena
Swastik
Rupa Katkar wrote:
Teena George wrote:Hi Rupa,
I hope you are using EL in your JSP pages. You can access a map like this:
or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena
Hi Teena,
Thanks for your response.
Actually I am not using EL, can you please help me some more regarding using EL.
Thanks,
Rupa.
Rupa Katkar wrote:
Rupa Katkar wrote:
Teena George wrote:Hi Rupa,
I hope you are using EL in your JSP pages. You can access a map like this:
or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena
Hi Teena,
Thanks for your response.
Actually I am not using EL, can you please help me some more regarding using EL.
Thanks,
Rupa.
Hi Teena ,
Actually this is my code snippet, where i am using
map..
mean here i am storing object of Batch_B60 class i.e. "b" to the map.
& now how should i access the contents of this map in jsp.
Thanks,
Rupa.
Teena George wrote:Hi Rupa,
I hope you are using EL in your JSP pages. You can access a map like this:
or
When you use the mapName.key format make sure your key name is a valid java identifier.
For example, if you have User-Agent in your request header, you can not access it using because it takes '-' as the minus operator.
Please let me know if you have any difficulty.
HTH,
Teena
Teena George wrote:
Hi Rupa,
Sorry for the delayed response. I was caught up with some work. I hope you have already cracked itBut, even if you haven't, here is how i tried it.
Please let me know if this is not working for you.
Best Regards,
Teena
Patricia Samuel wrote:You have to return "hm_b60" this object from your check method or have to pass it in check() method.
After this use the following code - assuming you will return the map from check method
and in your jsp take this attribute from request and then iterate the map as
As a suggestion, we should use EL for Jsps. I am not sure why are you using this old way of writing a JSP.
Hope this helps. Let me know if you still stuck.
Regards
Patricia
No holds barred. And no bars holed. Except this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|