I'm not sure I understand what you're asking. You can either use:
<html:text name="indexPage" property="server" />
on its own, or:
<html:text property="server" />
if it's inside a form. If you don't need a form, you don't have to use one.
You are getting a "no getter" error because you specified the property name
as "Server" instead of "server".
--
Martin Cooper
----- Original Message -----
From: "Rama Krishna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 27, 2001 5:43 PM
Subject: Re: No Bean found under attribute key
> thanx much martin,
> <html:form action="indexPage">
> <html:text name="indexPage" property="Server" />
> </html:form>
> is it possible to have this one line instead of logic:equal, because it is
> my index page and i want to get some data from the actionclass without any
> form submission.
>
> and when i changed my jsp like above i am getting new error
>
> "No getter method for property Server of bean indexPage" but i have
> "getServer(),setServer()" inside my IndexPage class.
>
> rama.
>
>
> ----- Original Message -----
> From: "Martin Cooper" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 27, 2001 5:24 PM
> Subject: Re: No Bean found under attribute key
>
>
> > In your <logic:equal> tag, you are using 'name' and 'property'. In your
> > <html:text> tag, you are using only 'property'. The second case will
work
> > only if this code is inside an <html:form> tag and the form bean has a
> > property with that name.
> >
> > --
> > Martin Cooper
> >
> >
> > ----- Original Message -----
> > From: "Rama Krishna" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 27, 2001 12:06 PM
> > Subject: No Bean found under attribute key
> >
> >
> > Hi all,
> >
> > I am new to struts and i created a simple jsp and all along with proper
> > modifications to struts-config.xml and when i try to run my jsp i get
> > the above exception.
> >
> >
> > Can anyone tell me what could be the cause???
> >
> >
> > here is my code
> >
> > .jsp
> >
> > <logic:equal name="indexPage" property="action" scope="request"
> > value="Display">
> > <html:text property="server" size="16" maxlength="16"/>
> > </logic:equal>
> >
> >
> > .xml
> >
> > <action path="/indexPage"
> > type="com.niku.cm.IndexPageAction"
> > <forward name="success" path="/index.jsp"/>
> > <forward name="failure" path="/nodata.jsp"/>
> > </action>
> >
> >
> > thanks,
> > rama
> >
> >
> >
> >