If it's in a table, you need to place each of those elements in its own
<td>. Here's a version of your code that could work like this:

<s:textfield name="username" label="Username" required="true"/>
<s:password name="password" label="Password" maxlength="15"
required="true"/>

<tr>
        <td><s:submit theme="simple" value="Log in" validate="true"
targets="loginDiv" notifyTopics="/ajaxLogin"/></td>
        <td><s:reset theme="simple" value="clear"/></td>
</tr>

~Jonathan

> -----Original Message-----
> From: Murugesh [mailto:muruges...@gmail.com] 
> Sent: Friday, May 08, 2009 8:26 AM
> To: Struts Users Mailing List
> Subject: Re: Align issues in struts 2 UI atgs
> 
> Thanks
> now it's getting in a row. but the new issue is its coming 
> top of the other fields.
> 
> like we have four fields
> <s:textfield name="username" label="Username" 
> required="true"/> <s:password name="password" 
> label="Password" maxlength="15"
> required="true"/>
> <s:submit theme="simple" align="left" value="Log in" validate="true"
> targets="loginDiv" notifyTopics="/ajaxLogin"/> <s:reset 
> theme="simple" align="right" value="clear"/>
> 
> while running this code snippet , i will get both button on 
> top of username field.
> 
> please suggest me to get it down?
> 
> On Fri, May 8, 2009 at 5:16 PM, Dave Newton 
> <newton.d...@yahoo.com> wrote:
> 
> >  Murugesh wrote:
> >
> >> i have tried out but not getting the solution.
> >>
> >> i need two buttons in a row
> >>
> >> like
> >> <s:submit..../>
> >> <s:reset../>
> >>
> >> please give me a correct way to implemnt to get output in 
> a single row..
> >>
> >
> > Use the "simple" theme?
> >
> > Dave
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to