struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei, Mei" <>
Subject question about struts 2 <s:textfield> and table layout
Date Wed, 16 Jan 2008 21:43:03 GMT


I am wondering in the Validation example quiz-ajax.jsp (which is in the
struts 2.0's tutorial showcase, is there
a way to arrange the table into two columns. That means to make field
"name" and "age" on the same row.


Here is the snippet from quiz-ajax.jsp

<%@ taglib prefix="s" uri="/struts-tags" %>


<!-- START SNIPPET: ajaxValidation -->




    <title>Validation - Basic</title>

    <s:head theme="ajax"/>





<s:form method="post" validate="true" theme="ajax">

    <s:textfield label="Name" name="name"/>

    <s:textfield label="Age" name="age"/>

    <s:textfield label="Favorite color" name="answer"/>







<!-- END SNIPPET: ajaxValidation -->


Any help is appreciated.



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