Re: Newbie FORM authentication problems with a Struts app - TC 5.0.25

2004-06-15 Thread Victor R. Cardona
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Adam Lipscombe wrote:
| Thanks, but this produces the error message:
| "javax.servlet.ServletException: Cannot retrieve mapping for action
| /j_security_check"
|
| As far as I know TC should treat the "jsecurity_check" action
specially - it
| should know that this is a authentication request. It seems to me that
TC is
| not doing this and passing it onto the Struts libs for  processing.
|
|
| Any ideas?
Don't use the Struts specific  tags. Instead just use the normal
HTML tags.  The Struts taglibs are there for your convenience when using
Struts, but j_security_check is not part of Struts. It is part of the
Servlet Spec, and thus implemented by Tomcat.  Now if you still want to
be able to use the Validator and the conveniences of the Struts tags,
then you could write an action the simply forwards the request to
j_security_check.  I am pretty sure I saw an example somewhere on the
Web.  Perhaps someone else knows the URL.
HTH,
Victor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAzuqN8MW+BaXrmuERAn1gAJ9zGI6zAc9fWk0iSSL1VPNURn2aogCgnxQ5
ytb9Bs7gpfYbo+m2GeG1MnA=
=uOd2
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: html:select - can't display default option

2004-04-23 Thread Victor R. Cardona
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean is null.
| My bean (MyBean) contains the method getMyValue() which returns a
Boolean object.
|
| In the code snippet below, the c:out statement confirms that the value
of the property is 'true'.  I expect that the 'true' option will be
pre-selected (which it is if you add "value='true'" to html:select), but
doing this dynamically with the c:out tag doesn't work - the blank value
is always the
| one pre-selected.
|
| Can someone suggest anything I am doing wrong, or suggest a better
approach (i'm relatively new to Struts).
|
| 
| 
| 
| 
| 
| 
This is just a guess, but you could try writing it like this:

...

I think the problem is the c:out tag in the value attribute. In any
case, you don't need it. You can use EL expressions anywhere if you are
using a container that supports the JSP2.0 specs.
HTH,
Victor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAiSVC8MW+BaXrmuERAtoRAJ4mYhJQUnzUeU6FVIkdHaWPLUaIyACeL4sk
uZyNMxCBOt/0QnSq9nVwJNo=
=9qXm
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]