A couple minor points
1) If your validator-rules.xml validation definition has
depends=required,
then you don't need to have it in the validation.xml as well.
2) Where is the form definition from your struts-config.xml?
--
Steve Stair
in the execution,
trying to find where
the code isn't doing what you expect. If you are using IE, you might
want to turn on
the script debugging. You can also try loading the same page in
Netscape, since it has
better integrated script debugging.
--
Steve Stair
in the
struts-config.
--
Steve Stair
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Then, inside tile-1.jsp, where you have
tiles:get name=nav/
instead, put this:
tiles:insert name=nav
tiles:put name=hideButton beanName=hideButton
beanScope=tile /
/tiles:insert
--
Steve Stair
[EMAIL PROTECTED
forward=home/
/rights:notHasRights
/logic:notEqual
I've tried putting the error message in the session, instead of the
request,
and while that works, I'd have to go and remove the error or it sticks
around
to be displayed on every page :P
Is there another way to do this?
--
Steve Stair
I sounds like you WANT to do is redirect to a page that, when reloaded,
will just redisplay the item.
So, you should redirect them to a URL that contains the itemId as a
parameter.
--
Steve Stair
-
To unsubscribe, e-mail
Assuming WebLogic runs under AIX, no reason that it shouldn't work.
Struts is pure Java code.
I'm using Struts / WebLogic on a windows box and a Sun box and both
work just fine.
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL
it there,
is left as an exercise for the reader. :)
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
we don't want the rest of the
methods to get called,
since we'd get a separate alert popup for each method.
The right way to do it is to call one method that gathers ALL the
errors, and presents ONE
alert popup.
--
Steve Stair
as a double
if locale is xx_XX? (Whatever locale you are using).
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:
[ServletException in:/tiles/test.jsp] Error - tag.getAsString :
attribute 'title' not found in context. Check tag syntax'
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the documentation in Struts
in Action,
as well as your Tiles Advanced Features document, and still can't
find this
behavior explained anywhere.
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
You can also use
action path=/someurl
type=org.apache.struts.actions.ForwardAction
parameter=my.default /
As long as you are using Struts 1.1-rc1
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL
by adding required
before mask
in their validation configurations, but for those few who might have
written code
assuming this behavior, I think a note should be added to the release
notes :)
--
Steve Stair
-
To unsubscribe, e-mail
get this error message
Cannot create request dispatcher for path .app.CreateUser
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
=${title} /
put name=header value=/tiles/header.jsp /
put name=nav value=/tiles/nav.jsp /
put name=messages value=/tiles/messages.jsp /
put name=content value=${content} /
put name=footer value=/tiles/footer.jsp /
/definition
--
Steve Stair
up 1/2 the clock cycles waiting for the server to
respond.
I've seen this on *nix and Windows boxes.
--
Steve Stair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You could create your own Validator
It could keep a count of the number of fields that were validated,
as well as whether any of the fields were non-empty.
Then while the last field was being validated, if could add an error
if the all the fields had been empty.
--
Steve Stair
[EMAIL PROTECTED
There is a bug in multipage DynaValidatorForm usage
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg55576.html
--
Steve Stair
[EMAIL PROTECTED]
(512) 463-7991
-
To unsubscribe, e-mail: [EMAIL PROTECTED
There is indeed a bug in multipage DynaValidatorForm usage
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg55576.html
--
Steve Stair
[EMAIL PROTECTED]
(512) 463-7991
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Just as with the struts-config.xml, the best documentation is in the
DTD.
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd
--
Steve Stair
[EMAIL PROTECTED]
(512) 463-7991
-
To unsubscribe, e-mail: [EMAIL PROTECTED
21 matches
Mail list logo