Actually, I just realized I mixed-and-matched regular HTML and Struts
tags, like this:
<html:form action="lotFind.do" name="text" type="java.lang.String">
Word Search: <input name="text" size="12"><input type="submit"
value="GO" name="submit">
</html:form>
Which manages to resolve the mappings and retain the session information
with or without cookies.
The action expects text={word}
Jim Crossley wrote:
>
> So what would the value of your 'property' attribute be???
>
> <html:form action="lot.do" name="id" type="java.lang.String">
> <html:text property="??????"/>
> </html:form>
>
> Ted Husted wrote:
> >
> > > I'm curious...
> > > For that to work, what property of java.lang.String should the
> > > <html:text> tag reference? I'm assuming the single field would use an
> > > <html:text> tag, right?
> >
> > Mine do, but I don't think it would matter, since all the HTML form
> > fields resolve to strings so they can be transmitted by HTTP.
> >
> > > Ted Husted wrote:
> > > >
> > > > For a simple form with a single field that doesn't need validation you
> > > > can specify a name and type, e.g.
> > > >
> > > > <html:form action="lot.do" name="id" type="java.lang.String">
> > >
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/