• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to assign bean value to jsp variable in struts

 
Praveen palukuri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
this is praveen, here i'm in need to assign bean value to jsp variable. if any one knows about this pls send rep.
sample code what i'd written

<logic:iterate id = "result" name = "reportlist">
<bean:write name="result" property="jobid" />
</logic:iterate>

is there any other than <bean:wrtie> to store bean value
thank u.
 
alan do
Ranch Hand
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look at bean efine in the struts user guide.
 
Praveen palukuri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u 4 ur rep.
but <bean efine> is not accepting null values. Here my requirement is it should accept null values to.
Is there any other way if so, pls help me.
thank u
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can handle the null value with logic resent and logic:notPresent handle your variable in these blocks differently
 
konda Raju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you send me the URL for the site

Prem
 
Srilakshmi Vara
Ranch Hand
Posts: 169
 
Praveen palukuri
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Srilakshmi Vara

i got result with ur valuable suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic