struts-user mailing list archives

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

 

I am wondering in the Validation example quiz-ajax.jsp (which is in the
struts 2.0's tutorial showcase
http://www.planetstruts.org/struts2-showcase/showcase.action), 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 -->

 

<html>

<head>

    <title>Validation - Basic</title>

    <s:head theme="ajax"/>

</head>

 

<body>

 

<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"/>

    <s:submit/>

</s:form>

 

</body>

</html>

 

<!-- END SNIPPET: ajaxValidation -->

 

Any help is appreciated.

Thanks,

Mei 


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