File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: S2 Tags with arbitrary attribute
It's not a secret anymore!