Hello all,
I am using JSP2.0. i have created one simple application in which form gets submitted and
servlet gets called which creates the map and place it inside the session scope and redirect the page to the new
jsp page.I am deploying the application on the server
jboss 4.0.2 -GA.
Here is the Directory Structure of my Web Application.
----------------------------------
Structure of my Web Application
----------------------------------
SCWCD
|
|
WEBCONTENT
| | |
| | |
| | JSP
| | |
| | |
| | index.jsp
| WEB-INF
| | |
| | |
| | classes
| | |
| | <compiled classes>
| lib
| |
| <All the libraries are here>
finalresults.jsp
-----------------
index.jsp
------------------
-------------------------
SimpleServlet.java
--------------------------
-------------------------
finalresults.jsp
--------------------------
Now the problem is that when i run this application and submit index.jsp form gets submitted and displays the following output.
---------
[Output]
---------
Displaying the key property first
displaying the Map values
Displaying the key property second
displaying the Map values
Displaying the value dhaval
-----------
[/output]
-----------
Problem is that why doesn't it displays any thing for the line on the jsp
<br/>displaying the Map values ${personmap["${item.key}"].name}
since the personmap is a map and i am passing the ${item.key} which contains the key of the map then it should display the value "dhaval" for the key "first" and value "ketan" for the key "second".
while in the last line it displays the value "dhaval" correctly.
can anybody tell me the reason for this ?
any kind of help would be appreciated.
Regards
Jinesh Parikh.