Andy Lileston

Greenhorn
+ Follow
since Nov 03, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andy Lileston

You're right Tom. I'm not iterating through them, but if I have to, that just seems like bonehead design. I would think that Struts would be able to handle it all transparently. I guess not.

Does anyone have some sample code of a Collection property iteration? I played around with it a bit, but the 'indexed' attribute kept giving me trouble.
13 years ago
You could also do it very easily in JSTL
13 years ago
Assuming you want to send them back to where they came from and display the errors:

Use saveErrors and make sure you have an "input" attribute set in your struts-config.xml for that action so that Struts knows where to send them back to.
13 years ago
13 years ago
I would recommend looking into the Apache Commons Upload utility. Some Struts distros come with it as an example webapp.
13 years ago
Hey guys,

I'm using a the struts select tag for use with multiple select. Like so:



The corresponding bean property is a . I'm submitting that form and on the other side, I am wanting to put that data into a hidden field. Right now, it just puts the object.toString() gobbledygook in for the value. It seems that struts should be able to handle this transparently.
13 years ago
Hey Bear.

So would there be any other methodology in which I could get a particular property rather than having to iterate over them until I find the requested one? Using JSTL of course.
13 years ago
JSP
I've kinda got the same issue. I have my props in application scope and I'm trying to write a tag to get a certain property from the java.util.Properties.

JSTL is a bit new to me. I guess I could use a scriptlet but I wouldn't know how to transpose the incoming "key" variable into the scriptlet.
13 years ago
JSP
Well, it seems like there should be some sort of methodology for converting XXXX to UTF-8, no matter what the input is.
13 years ago
To make a long story short, I've been generating html web pages from various sources on the net using some mashup libraries. The data comes mostly from XML feeds and the like and get returned to me as a regular . I've been running into issues that seem to be related to having characters that aren't being recognized by the browser and therefore get rendered as either question marks or black diamonds with a question mark inside them. Sound familiar?

My question is, how do I filter non-conforming characters to my webpage? The pages are declared as UTF-8.
13 years ago