Re: Form based authentication problem

2001-03-01 Thread Jonathan James



I get a 405 error. "The method POST is not 
supported by this URL"

Jonathan

  - Original Message - 
  From: 
  cybermaster 
  To: Orion-Interest 
  Sent: Wednesday, February 28, 2001 10:22 
  AM
  Subject: RE: Form based authentication 
  problem
  
  
  Post 
  works for me in my test code  what error do you get? 
  --peter
  
  -Original 
  Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan JamesSent: Tuesday, February 27, 2001 9:50 
  AMTo: 
  Orion-InterestSubject: Form 
  based authentication problem
  
  I'm trying to get 
  the Java Petstore 1.1.1 (the new one) working with Orion. I've read some 
  previous posts and the docs and everything is working except that on my 
  login.jsp I have to use form action="j_security_check" method=GET 
  instead of form action="j_security_check" method=POST as it is 
  supposed to be. This ends up putting the password in the URL. Why doesn't POST 
  work with with j_security_check?
  
  Thanks
  
  Jonathan


Re: In Orion, are tag handler instances reused or reinstantiated?

2001-03-01 Thread Jonathan James

Actually it's configurable. Just add "-Djsp.reuse.tags=[false|true]" to your
command line when you launch the server.

Jonathan
- Original Message -
From: "Randahl Fink Isaksen" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 2:47 AM
Subject: RE: In Orion, are tag handler instances reused or reinstantiated?


 Experience tells me they are reused in Orion. If I have an optional tag
 attribute on a tag and the tag is used multiple times on a page I have
found
 out that I need to make sure that any contents set in the optional
attribute
 must be cleared manually by me, or I will get whatever contents was set by
a
 previous invokation of the tag.


 Yours
 Randahl

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Blacha, Bart
 Sent: 28. februar 2001 19:27
 To: Orion-Interest
 Subject: In Orion, are tag handler instances reused or reinstantiated?


 We are trying to figure out if tag handler objects are re-used, or
 instantiated-and-destroyed at every request.  This is obviously important
 for performance reasons.

 There is conflicting information in JSP spec and on JGuru (see references
 below).  So maybe it's an implementation-specific issue.   Which brings me
 to the question:

 What does Orion do with tag handler instances?  Reuse or reinstantiate
them?




 JSP spec 1.1, paragraph 5.4.7:

 At execution time the implementation of a JSP page will use an available
Tag
 instance with
 the appropriate prefix and name that is not being used, initialize it, and
 then follow the
 protocol described below. Afterwards, it will release the instance and
make
 it available for
 further use. This approach reduces the number of instances that are needed
 at a time.


 http://www.jguru.com/jguru/faq/view.jsp?EID=337618

 Question  We want to make sure that our JSP development efforts are
 thread-safe. Is it possible that two threads will access one instance of a
 JSP custom tag handler concurrently?

 No it is not possible. There is a defined lifecycle of a custom tag, and
 during this lifecycle, that instance of the tag will only get called once.
 Hopefully in newer implementations of JSP engines, the actual tag object
 will not get reinstantiated each time (as this negatively affects
 performance), but at least during it's use, it will be thread safe.


 --
 Bart Blacha, Software Developer
 NetPerceptions Inc.
 (512) 349-5622
 [EMAIL PROTECTED]










Re: Form based authentication problem

2001-02-28 Thread Jonathan James



FYII came up with something that makes it 
work. I edited the MainServlet.java file and added a doPost method that just 
calls the doGet method already implemented.This makes perfect sense except 
that it worked as it was on the Sun Reference Implemetation, JBoss/Tomcat, 
Weblogic5.1, and Weblogic6.0.

Jonathan

  - Original Message - 
  From: 
  Jonathan James 
  To: Orion-Interest 
  Sent: Tuesday, February 27, 2001 10:49 
  AM
  Subject: Form based authentication 
  problem
  
  I'm trying to get the Java Petstore 1.1.1 (the 
  new one) working with Orion. I've read some previous posts and the docs and 
  everything is working except that on my login.jsp I have to use form 
  action="j_security_check" method=GET instead of form 
  action="j_security_check" method=POST as it is supposed to be. This ends 
  up putting the password in the URL. Why doesn't POST work with with 
  j_security_check?
  
  Thanks
  
  Jonathan


Form based authentication problem

2001-02-27 Thread Jonathan James



I'm trying to get the Java Petstore 1.1.1 (the new 
one) working with Orion. I've read some previous posts and the docs and 
everything is working except that on my login.jsp I have to use form 
action="j_security_check" method=GET instead of  form 
action="j_security_check" method=POST as it is supposed to be. This ends up 
putting the password in the URL. Why doesn't POST work with with 
j_security_check?

Thanks

Jonathan