aspose file tools*
The moose likes Struts and the fly likes my custom tag inside struts tag. 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 "my custom tag inside struts tag. " Watch "my custom tag inside struts tag. " New topic
Author

my custom tag inside struts tag.

Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
I made a simple tag to format dates and tried to incorporate this tag inside of a <html:text > tag. It does not render my custom jstl tag?
Is there a solution to this?


Thanks,<br />Keith
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
This probably isn't the solution you're looking for...but
I tried to set the value of a html:text tag,

but the value was not rendered, or, most likely, it was, but when struts populated the form, it overwrote the value with the one from the bean (an empty String in my case).
A possible solution: format your date on the servlet side rather than the display side, such that it's ready to be displayed when it gets there.
Maybe not as cool as a custom tag, but it'll work.
[ January 12, 2004: Message edited by: Ray Stojonic ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my custom tag inside struts tag.