You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vu Hong Thuan <th...@gmail.com> on 2010/01/24 08:14:10 UTC

How to remove layout of tags in form

Hi all.
I want to custom the layout of my form which use struts tags.
I insertet html tags into form as the following code. But when I view 
the result final. All html tags is pulled out of the form.
How i can insert html code inside a struts form?
Thanks.

<s:form action="loadgraph">
<div>
<div>
<s:text name="xinchao" id="abx" ></s:text>
<s:textfield id="formuleExp0" label="Expression 1" name="formuleExp0"/>
<s:div id="formuleColor0" cssClass="colorselect"><s:hidden
                                         
id="formuleColorHid0"></s:hidden></s:div>
<div>
                             xin chao
</div>
<s:textfield id="formuleExp1" label="Expression 2" name="formuleExp1"/>
<s:textfield id="width" label="Width" name="width"/>
<s:textfield id="height" label="Height" name="height"/>
<s:submit/>
</s:form>

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


Re: How to remove layout of tags in form

Posted by Vu Hong Thuan <th...@gmail.com>.
Thank a lot. It works.

2010/1/24 Gustavo Felisberto <gu...@wit-software.com>

> Add theme="simple" to the s:form tag.
>
> Sent from my iPhone
>
>
> On 2010/01/24, at 07:14, Vu Hong Thuan <th...@gmail.com> wrote:
>
>  Hi all.
>> I want to custom the layout of my form which use struts tags.
>> I insertet html tags into form as the following code. But when I view the
>> result final. All html tags is pulled out of the form.
>> How i can insert html code inside a struts form?
>> Thanks.
>>
>> <s:form action="loadgraph">
>> <div>
>> <div>
>> <s:text name="xinchao" id="abx" ></s:text>
>> <s:textfield id="formuleExp0" label="Expression 1" name="formuleExp0"/>
>> <s:div id="formuleColor0" cssClass="colorselect"><s:hidden
>>
>> id="formuleColorHid0"></s:hidden></s:div>
>> <div>
>>                           xin chao
>> </div>
>> <s:textfield id="formuleExp1" label="Expression 2" name="formuleExp1"/>
>> <s:textfield id="width" label="Width" name="width"/>
>> <s:textfield id="height" label="Height" name="height"/>
>> <s:submit/>
>> </s:form>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: How to remove layout of tags in form

Posted by Gustavo Felisberto <gu...@wit-software.com>.
Add theme="simple" to the s:form tag.

Sent from my iPhone

On 2010/01/24, at 07:14, Vu Hong Thuan <th...@gmail.com> wrote:

> Hi all.
> I want to custom the layout of my form which use struts tags.
> I insertet html tags into form as the following code. But when I  
> view the result final. All html tags is pulled out of the form.
> How i can insert html code inside a struts form?
> Thanks.
>
> <s:form action="loadgraph">
> <div>
> <div>
> <s:text name="xinchao" id="abx" ></s:text>
> <s:textfield id="formuleExp0" label="Expression 1"  
> name="formuleExp0"/>
> <s:div id="formuleColor0" cssClass="colorselect"><s:hidden
>                                        id="formuleColorHid0"></ 
> s:hidden></s:div>
> <div>
>                            xin chao
> </div>
> <s:textfield id="formuleExp1" label="Expression 2"  
> name="formuleExp1"/>
> <s:textfield id="width" label="Width" name="width"/>
> <s:textfield id="height" label="Height" name="height"/>
> <s:submit/>
> </s:form>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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