aspose file tools*
The moose likes Struts and the fly likes Apply css style to a <s:property/> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Apply css style to a <s:property/>" Watch "Apply css style to a <s:property/>" New topic
Author

Apply css style to a <s:property/>

Americo Perez
Greenhorn

Joined: Mar 13, 2009
Posts: 3
Hi
I have a question about styling in Struts 2.
I have this code:



The div is a box with 100px width which contains a text. and the p-tag contain css properties for style the text.
the css for this tags looks like this:



but it seems like the browser doesn't care about the width of the div. You can see how it looks on the attached image.

How can i force the text to make line brake whe it is to long using <s:property/>?

Thanks very much










[Thumbnail for printscreen.gif]

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

AFAIK the property tag doesn't emit any markup--it's up to the HTML/CSS/etc. to handle styling.
Americo Perez
Greenhorn

Joined: Mar 13, 2009
Posts: 3
Hi!

Ok, so the problem should be the css. I'm gonna take a look to it.

Thanks!

Americo Perez
Greenhorn

Joined: Mar 13, 2009
Posts: 3
Ok, i solved the problem. It wasn't css nor html but the text in self. There is no way to break a line if there is no some white space in the text. After 2 glas wine i got that revelation

Thanks.

Pd. There is some good site for read about struts 2 tags and work with them as a front-end programmer?


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The S2 documentation wiki has some documentation here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apply css style to a <s:property/>