Hello everybody!

I am new to this forum.I am using Struts 1.
This is my jsp page.










  : 













  : 











<%

for
(int i = 0 ; i < tariffCategoriesList.size(); i++){

Map vals = (Map) tariffCategoriesList.get(i);




<%=vals.get("description")%>

&nbsp;&nbsp;:&nbsp;





' name='tariffCat' value="<%=vals.get("tariff_Category_Id")%>"/>





<%

}

%>
















I am facing a strange problem in my application.
In the JSP Scriplet tag you could see that I am dynamically 
creating a few html text input with the help of a for-loop
When using <%=vals.get("description")%> its display the correct data on the
page(As no html elements is being used). But when I want to display the
value in ' name='tariffCat' value="<%=vals.get("tariff_Category_Id")%>"/>..
It displays the data from the bottom 5 struts html properties and not the
correct value from the List,i.e, value of















Can someone please help me out and explain why these things are happening in
my application?
F1 please..
-- 
Regards
-- 
View this message in context: 
http://old.nabble.com/Wrong-data-being-displayed-in-JSP-page-tp26156233p26156233.html
Sent from the Struts - User mailing list archive at Nabble.com.

Reply via email to