struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitc...@telocity.com>
Subject RE: Retrieve form bean value
Date Thu, 25 Apr 2002 05:32:28 GMT
Not sure why you are saying "default".

If you mean that the local value was changed and you want to find out what
the default value is then all I can recommend you do is set the default to
some static final in a constants class (its really up to you)

If I'm wrong and you are just trying to do this:

<bean:write name="<put-form-name-here>" property="action"/>

then sorry for the misunderstanding.

JM




> -----Original Message-----
> From: days [mailto:days_81@lycos.com]
> Sent: Wednesday, April 24, 2002 11:27 PM
> To: Struts Users Mailing List
> Subject: Retrieve form bean value
>
>
> Hello
>
> I'm trying to retrieve a deafult value of a variable that I set
> in the form bean in my JSP page that appears like the following:
>
> String action="view";
>
> public String setAction(String action)
> {
>   this.action=action;
> }
>
> public String getAction()
> {
>   return this.action;
> }
>
>
> Anyone knows the syntax of retrieving it in JSP?
>
> Thanks a lot :)
>
>
> See Dave Matthews Band live or win a signed guitar
> http://r.lycos.com/r/bmgfly_mail_dmb/http://win.ipromotions.com/ly
cos_020201/splash.asp

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message