Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Accessing Struts Formbean attributes from JSP

Reply
Thread Tools

Accessing Struts Formbean attributes from JSP

 
 
Squishy
Guest
Posts: n/a
 
      07-03-2006
Hello,
I have a Struts backed JSP. Normally i access the Formbean's parameters
via Struts Tags like
<bean:write>.
However now i have to put some form bean properties into a JSP string

I tried it this way

<% mystring = <bean:write name="jslice"
property="auftragsDatumString"/> %>

But that didnt work of course.
How can i access the form bean properties via JSP best?

Regards
Holger Johanndeiter

 
Reply With Quote
 
 
 
 
MiSt
Guest
Posts: n/a
 
      07-03-2006
Squishy napisaƂ(a):
> Hello,
> I have a Struts backed JSP. Normally i access the Formbean's parameters
> via Struts Tags like
> <bean:write>.
> However now i have to put some form bean properties into a JSP string
>
> I tried it this way
>
> <% mystring = <bean:write name="jslice"
> property="auftragsDatumString"/> %>
>
> But that didnt work of course.
> How can i access the form bean properties via JSP best?




<bean:define id="propertyValueId" name="myFormName"
property="myFormProperty" />

<% mystring=properyValueId; %>

--
MiSt
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
struts formbean array size dynamically Uwe Voigt Java 5 05-08-2006 05:15 AM
How to populate a ArrayList FormBean attribute? Eduardo Java 4 09-19-2004 05:22 AM
[JSP] Strings Constants from JSP using Struts tags Matthias Nietz Java 1 11-12-2003 04:32 PM
Re: [Struts] Init formbean value before Initialisation? Xavier Tarrago Java 0 06-30-2003 09:08 AM
Re: [Struts] Init formbean value before Initialisation? Wendy S Java 0 06-28-2003 01:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57