Thanks Martin. I did try that earlier but forgot to import the bean descriptor file on the jsp page (the compiler never complained about the missing tld file for the bean tag). Is it possible to decouple the hardcoding the formname (LogonForm) in the jsp page and refer it some how? Thanks Senthil Kumar.S -----Original Message----- From: Martin Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 7:01 PM To: [EMAIL PROTECTED] Subject: Re: How to refer the form bean out of the form tag or as static text I think what you are looking for is <bean:write>. So you might do this: <bean:write name="LogonForm" property="message"/> See the documentation for more information: http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-s ummary.html#doc.Output -- Martin Cooper ----- Original Message ----- From: "Suriyanarayanan, Senthil Kumar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 28, 2001 3:42 PM Subject: How to refer the form bean out of the form tag or as static text > Hello, > I would like to know how to refer a form bean out of the form tag > or inside the form tag which > are not tied up to any specific html input field. Say for example like > static text. > > For example the following jsp fragment.. > <html:form action="logon.do"> > UserId: <html:text property="userId" size="15" maxlength="15" /> > Password: <html:password property="password" size="16" > maxlength="16" redisplay="false"/> > <html:submit/> > </html:form> > > uses a form bean of name LogonForm (from the stuts-config.xml). The form > bean also has other properties > like MESSAGE and so on. I would like to know how to refer or display the > MESSAGE property of the form bean. > > > Thanks in advance > Senthil Kumar.S > > ************************************************************************** > The Information transmitted herewith is sensitive information intended only > for use to the individual or entity to which it is addressed. If the reader > of this message is not the intended recipient, you are hereby notified that > any review, retransmission, dissemination, distribution, copying or other > use of, or taking of any action in reliance upon, this information is > strictly prohibited. If you have received this communication in error, > please contact the sender and delete the material from your computer. ************************************************************************** The Information transmitted herewith is sensitive information intended only for use to the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon, this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
RE: How to refer the form bean out of the form tag or as static text
Suriyanarayanan, Senthil Kumar Wed, 28 Mar 2001 16:37:36 -0800
- How to refer the form bean out of the form ... Suriyanarayanan, Senthil Kumar
- Re: How to refer the form bean out of ... Martin Cooper
- Suriyanarayanan, Senthil Kumar