This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts 1 -- Wrong data displaying in my JSP page

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hello everybody!

I am using Struts 1.
This is my jsp page.




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 it display the correct data on the page(As no html elements is being used). But when I want to display the value in .. 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
 
Sheriff
Posts: 9674
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Manoj Paul wrote:
But when I want to display the value in .. It displays the data from the bottom 5 struts html properties and not the correct value from the List,i.e, value of


I'm unable to understand what you mean here. Does it display the value of the 5 text boxes instead of the result of your scriptlet expression <%=vals.get("tariff_Category_Id")%>??
 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply..

Does it display the value of the 5 text boxes instead of the result of your scriptlet expression <%=vals.get("tariff_Category_Id")%>??


Yes exactly you got the problem. That's exactly where the problem is.


Regards
 
Ankit Garg
Sheriff
Posts: 9674
42
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So this line of code results in text fields which have a different value for the id and value attribute?? I can't see any situation in which this can happen. This seems impossible to me...
 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ankit Garg wrote:
So this line of code results in text fields which have a different value for the id and value attribute?? I can't see any situation in which this can happen. This seems impossible to me...



Hi Ankit,

Its not like that as you thought.
I mean to say both the id and value will have the same data value. But the problem is not there but why the value of


display value of
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic