struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Labey Sébastien <sla...@sopragroup.com>
Subject [Struts 2] <s:form> and <s:textfield> tags adding unwanted HTML code
Date Fri, 15 Sep 2006 09:34:08 GMT
Hi,
 
I was using Struts 1.2.8 and I'm now discovering Struts 2 and some new tags.
I'm transforming an .html page designed with CSS only (no <table>, <tr>, <td>)
to an .jsp page with Struts tags and I'm surprised to see that the source code generated when
using <s:form>, <s:textfield> and <s:submit> contains some html code with
<table>, <tr>, <td> around the divs of my form.
Is there the source code :
 
<s:form action="userConnect">
     <div id="userForm">
     <fieldset id="login">
     <legend>Connectez vous :</legend>
     <p>
      <label for="login">login : </label>
      <s:textfield name="login" id="login" size="20" />
     </p>
     <p>
      <label for="password">mot de passe : </label>
      <s:password name="password" id="password" size="20" />
     </p>
     <p>
      <s:submit type="image" id="imgSubmit" src="www/tortue_contour_noire_20_16.jpg" />
     
     </p>
     </fieldset>     
     </div>
    </s:form>
 
Is there an option to deactivate this? Or maybe I'm wrong in using these tags.
For my test I'm using the "struts-blank" app (found in Struts 2), with jre1.5 and Tomcat 5.5.12.
Thank you in advance for your help.
 
Sébastien
 
Sébastien LABEY
 
Division Immobilier
R&D IKOS
 
04.72.18.47.07
 <mailto:slabey@sopragroup.com> slabey@sopragroup.com
20, chemin du Randin - B1 - 69130 Ecully
P Avant d'imprimer, ayez une pensée pour notre environnement

*

 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message