File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes S2 Tags with arbitrary attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S2 Tags with arbitrary attribute" Watch "S2 Tags with arbitrary attribute" New topic
Author

S2 Tags with arbitrary attribute

David Zorink
Greenhorn

Joined: Sep 26, 2012
Posts: 1
I have an input tag which looks like this:

I would like to convert this to a Struts tag so that Struts can pre-populate the form values. I tried the following tag:

Struts 2 threw the following exception on page load:


I assume that Struts is expecting attributeFlag=x, but I don't want to set the attribute equal to anything.

Can Struts 2 append an arbitrary attribute to a Struts tag?
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Do you want to override struts default tags?
Struts2 TextFiled Usage


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: S2 Tags with arbitrary attribute
 
Similar Threads
Not being able to locate TLD file?
JSP Exception
Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei
file "/WEB-INF/struts-bean.tld " not found error
strut exception