This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S2 Tags with arbitrary attribute" Watch "S2 Tags with arbitrary attribute" New topic

S2 Tags with arbitrary attribute

David Zorink

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: S2 Tags with arbitrary attribute
Similar Threads
JSP Exception
strut exception
Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.tiles.UseAttributeTei
Not being able to locate TLD file?
file "/WEB-INF/struts-bean.tld " not found error