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
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.
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo