It's not a secret anymore!
The moose likes Struts and the fly likes Removing unwanted UI html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Removing unwanted UI html" Watch "Removing unwanted UI html" New topic

Removing unwanted UI html

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys
When I use the <s:form> tag it adds unwanted html code such as tables etc How can I remove them ?
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 689


When you use Struts tag it add <td> element so always use theme="simple" with struts tag.

Like .

<s:form method="post" action="doLogin" theme="simple" >


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
stef li

Joined: Jan 16, 2006
Posts: 27
add theme="simple" in your form tag

This guy is so lazy!!!<br />There is nothing left!
I agree. Here's the link:
subject: Removing unwanted UI html
It's not a secret anymore!