How to escape {1} that it appears in the text?

2004-09-26 Thread Axel Seinsche
Hi all, How can I escape curly brackets in my message bundle so that I can display {1} in my JSP? I already tried with \ or \\ but whenever I don't receive an error {1} is replaced by 'null' in the text. Hope someone can help me. TIA, Axel

How to iterate forEach in reverse order?

2004-09-05 Thread Axel Seinsche
Hi all, I have a forEach loop which iterates from startValue to endValue, which works fine. But forEach wants me that startValue is smaller than endValue. If I want to iterate from a bigger value down to a smaller it's not possible. I tried to switch start and end value but without success.

Re: Error loading Applet in IE within Struts application (fixed)

2004-08-22 Thread Axel Seinsche
The problem seems to be fixed. The codebase was missing. Firefox and Mozilla didn't care about, but IE. Nevertheless the applet runs if it is executed on the same server but outside the Struts application. Axel - To

errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Hi all, in my struts application I have 4 forms which have to be filled to store an item in the database. All 4 forms are inherited from one abstract form class. As form 3 depends on data from 1 I didn't find a better solution, but it works. The problem is the following. When I submit form 4 I

Re: errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Bill Siggelkow schrieb: I don't understand exactly why you are doing the redirect? Why not just set the input attribute to be the page you are redirecting to ... then Struts will forward to it when validation fails. Can I set the input attribute in my Java Code? I thought I have to define it

Re: errors get lost on redirect

2004-08-20 Thread Axel Seinsche
Hubert Rabago schrieb: Well, not really set the input, but you can direct the request to the correct one in your java code. First off, set validate=false on the action. Then, in your action, call the form's validate() yourself. Lastly, if there are validation errors, call saveErrors() to save

How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Hi all, I have an application where the user should be allowed to use text formatting tags as b or li (and so on). To avoid that tags like html oder body (and so on) are used I check the for these tags before it's stored in the DB. When the text is read from the DB my tags are encoded to

Re: How to avoid character encoding for html tags

2004-06-11 Thread Axel Seinsche
Vclavk Radek wrote: Hi Axel, don't know if I understood your problem well, but i have such text in db and when printing it in jsp using bean:write i use this parameter: bean:write name=foo property=fooo filter=false/ Hope this helps. Hi Radek, thanks your very much. As I used c:out the filter

Re: validation for optional fields

2004-06-11 Thread Axel Seinsche
Kalra, Ashwani wrote: hi, how can I validate an optional field. ie validate only if there is some value in it. For example. I want to validate a field which should of type int.But it should be validated only if use has entered some value in it. hi, if you are validating in your form or action

Re: Best way to connect to Database in struts

2004-05-27 Thread Axel Seinsche
Zaid wrote: Dear Friends, I am new to struts, so I was confused in choosing the best way to make connection to Database, whether data-resources or Plugin or any other method, however, if any suggested way to connect, please inform me. Baring in mind that I am using MySQL server. As the Struts

Re: Multiple validation.xml

2004-05-26 Thread Axel Seinsche
Linus Nikander wrote: Is it possible to use multiple validation.xml files concurrently ? We're about to launch a fairly large projetct and I see issues where one developer has validation.xml checked out when another one needs to edit it as a possible problem. //Linus Nikander - If you use CVS

[JSTL] accessing rows by index

2004-05-26 Thread Axel Seinsche
Hi all, in my Struts application I can access result collection from sql:query with the forEach loop. When I try access one single row by index, it fails. Right now I solved this with defining a forEach loop where begin and end are the index I want to access. This looks like this: c:forEach

Re: From bean into for loop

2004-05-24 Thread Axel Seinsche
Andy Engle wrote: Hi all, I am trying to do something as simple as writing a FOR loop with some information that I have in a bean, but this is proving to be quite a bit more cumbersome and difficult than I thought it would be. For some reason, everything I try seems to fail. Here is a short