File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes how to assign bean value to jsp variable in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to assign bean value to jsp variable in struts" Watch "how to assign bean value to jsp variable in struts" New topic
Author

how to assign bean value to jsp variable in struts

Praveen palukuri
Ranch Hand

Joined: Feb 10, 2005
Posts: 65
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

Joined: Apr 14, 2005
Posts: 354
look at bean efine in the struts user guide.


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
Praveen palukuri
Ranch Hand

Joined: Feb 10, 2005
Posts: 65
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

Joined: Jul 21, 2004
Posts: 169
You can handle the null value with logic resent and logic:notPresent handle your variable in these blocks differently
konda Raju
Greenhorn

Joined: Jan 20, 2000
Posts: 16
Can you send me the URL for the site

Prem
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
http://struts.apache.org/userGuide/struts-logic.html
Praveen palukuri
Ranch Hand

Joined: Feb 10, 2005
Posts: 65
thank you Srilakshmi Vara

i got result with ur valuable suggestion.
 
GeeCON Prague 2014
 
subject: how to assign bean value to jsp variable in struts