Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: 1.2.9 html:action

Jim Reynolds

2007-02-27

Replies:

I guess when I was working with 1.2.4 a while back, I did things like
document.form.element.name.submit, etc. Not using the dom.

I was trying to convert to 1.2.9 and I guess I ended up with xhtml type.

Makes sense, thanks for the info.



On 2/26/07, Laurie Harper <laurie@(protected):
> Jim Reynolds wrote:
> > Hello,
> >
> > I am using the following in a jsp view:
> >  <html:form name="GalleryForm" action="galleries">
> >   <html:hidden property="onPage" />
> >
> > And the source renders:
> >  <form id="GalleryForm" method="post" action="/galleries.html">
> >   <input type="hidden" name="onPage" value="1" />
> >
> > Which works, but the source no longer gives me a <form
> > name="GalleryForm" element> like the 1.2.4 that I was used to using.
> >
> > If there anyway I can get that to work?
> >
> > Thanks,
>
> I believe that's a function of whether you're in XHTML mode or not. In
> XHTML mode, the 'name' attribute is omitted in accordance with the
> recommendations of the specification. Why do you need it?
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.