how to get value of select

2006-03-24 Thread Prashant Saraf
Hello all,
can some one tell me how to get value of select if it is multipal
selected.
like this
select name=txtrole size=2 multiple=multiple

--
Cup of Java + Suger of XML = Secure WebApp


Re: how to get value of select

2006-03-24 Thread Prashant Saraf
ok thanks

On 3/24/06, Alexander Panzhin [EMAIL PROTECTED] wrote:

 But note that it returns an array.
  Hi
 
  use
 
  request.getParameterValues(String paramName)
 
  HTH
  Vinu
 
  Prashant Saraf wrote:
 
  Hello all,
  can some one tell me how to get value of select if it is multipal
  selected.
  like this
  select name=txtrole size=2 multiple=multiple
 
  --
  Cup of Java + Suger of XML = Secure WebApp
 
 
 
 


 --
Su pagarba,
   Aleksandr Panzin
   IT sistemu architektas.

With best regards,
   Alexander Panzhin
   IT systems architect






--
Cup of Java + Suger of XML = Secure WebApp


unable to find package

2006-03-24 Thread Prashant Saraf
Hello all,
I have a Apache web server Install on my server with jk_mod
my web application give following error
java.lang.NoClassDefFoundError: Publish/Connect (wrong name:
Publish/Publish/Connect)
I had a package call Publish which is jar file , i coppied that file in
mywebapp/WEB-IN/lib and WEB-INF/classes
why this is o plz help me.

--
Cup of Java + Suger of XML = Secure WebApp


Re: how to get users from tomcat-users.xml

2006-03-10 Thread Prashant Saraf
you can prefer admin package for this.

On 3/10/06, Hiroshi Iwatani [EMAIL PROTECTED] wrote:

 Srivani Ausula wrote:
 
  Hi,
 
  How can I get list of users from tomcat-users.xml? Is there any API
  provided for this purpose?
 
  Thanks in advance,
  A Srivani.
 
 You should use FORM based authentication and some web.xml entries for
 it. Read an appropriate text book or online documentation.

 --
 Hiroshi Iwatani: http://homepage1.nifty.com/algafield/

 *stop cruelty* Annual number of institutionally euthanized cats and dogs
 including kittens and puppies: US 5 million, JP 500 thousand. How about
 your country? *for our better karma*
 -

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Cup of Java + Suger of XML = Secure WebApp


Re: User authentication

2006-03-09 Thread Prashant Saraf
i had a  webapps but different role of user,
n another webapp users same user from fist webapp but a specifc role user.


On 3/9/06, Alex Jalali [EMAIL PROTECTED] wrote:


 Hello all,
 Whatr is best way to create loging authentication if u had multipal login
 form/pages.
 please help me out.

 When you say multiple form pages, are they all the same? Or do they login
 to
 different webapps? If different webapps, you could use the SingleSignOn
 Valve className=org.apache.catalina.authenticator.SingleSignOn/

 Can you explain more about your login form(s)?

 --
 Cup of Java + Suger of XML = Secure WebApp

 XML makes me nauseous. I guess I must me diabetic :)



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Cup of Java + Suger of XML = Secure WebApp


User authentication

2006-03-08 Thread Prashant Saraf
Hello all,
Whatr is best way to create loging authentication if u had multipal login
form/pages.
please help me out.

--
Cup of Java + Suger of XML = Secure WebApp


User authentication

2006-03-08 Thread Prashant Saraf
Hello all,
What is best way to create loging authentication if I had multipal login
form/pages.
please help me out.

--
Cup of Java + Suger of XML = Secure WebApp


Re: Reading Data Form MS -execel 2003- in java

2006-02-24 Thread Prashant Saraf
it does using xml and java
there are some ocx and dll are there which u add to ur excel file,



On 2/24/06, Glen Mazza [EMAIL PROTECTED] wrote:

 Really?  I'm seeing SVN commits on its source code still:
 http://marc.theaimsgroup.com/?l=poi-devr=1w=2

 Glen


 David Thielen wrote:

  One note on POI. It is a good product and works but it is also
 abandon-ware
  - there has been no new development on it for years.
 
  Thanks - dave
 
 
  David Thielen
  www.windwardreports.com
  303-499-2544
 
  -Original Message-
  From: Vincent [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 22, 2006 11:00 PM
  To: Tomcat Users List
  Subject: Re: Reading Data Form MS -execel 2003- in java
 
  yeah , definally POI
 
  On 2/23/06, Bill Barker [EMAIL PROTECTED] wrote:
 
 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 ...
 
 Hi Forum,
 Did anyone used java program to read data from microsoft excel ?
 Can any one give me pointers where to look for this ??
 
 http://jakarta.apache.org/poi/
 
 
 thanks
 Birendar Singh Waldiya
 Tata Consultancy Services Limited
 Mailto: [EMAIL PROTECTED]
 Website: http://www.tcs.com
 
 
 Notice: The information contained in this e-mail message and/or
 attachments to it may contain confidential or privileged information.
 
  If
 
 you are not the intended recipient, any dissemination, use, review,
 distribution, printing or copying of the information contained in this
 e-mail message and/or attachments to it are strictly prohibited.   If
 
  you
 
 have received this communication in error, please notify us by reply
 e-mail or telephone and immediately and permanently delete the message
 
  and
 
 any attachments.  Thank you
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Cup of Java + Suger of XML = Secure WebApp


Re: Assistance required

2006-02-15 Thread Prashant Saraf
why u want to configure server.xml and web.xml, jdbc with mysql download
mysql-connector-java respect to your mysql server. flow it's docs.

On 2/16/06, Medha Parathasarathy [EMAIL PROTECTED] wrote:

 Hi,

 I am new to tomcat. I am trying to configure tomcat, jdbc and mysql. I
 am facing problem in the configuration of jdbc. Can some body assist me
 with a prototype of server.xml and web.xml

 environement fedore core4

 regards







--
Cup of Java + Suger of XML = Secure WebApp


Problem in j_security_check

2006-02-03 Thread Prashant Saraf
i have a problem in Tomcat  jsp
when i use j_security_check it gives me following error.
The request sent by the client was syntactically incorrect (Invalid direct
reference to form login page
why this so
my web.xml

?xml version=3D 1.0 encoding=3DISO-8859-1?


web-app xmlns=3Dhttp://java.sun.com/xml/ns/j2ee 
   xmlns:xsi=3Dhttp://www.w3.org/2001/XMLSchema-instance 
   xsi:schemaLocation=3Dhttp://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd

   version=3D 2.4

   description
My first jsp example
   /description
   display-nameWork on Jsp/display-name

   security-constraint
   display-nameTestApp Security Constraint/display-name
   web-resource-collection
web-resource-nameProtected Area/web-resource-name
!-- Define the context-relative URL(s) to be protected --

!-- If you list http methods, only those methods are protecte=
d
--
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
   http-methodPUT/http-method
   url-pattern/saraf/*/url-pattern
   /web-resource-collection
   auth-constraint
   !-- Anyone with one of the listed roles may access this area
--
   role-name*/role-name
   /auth-constraint
   /security-constraint

   !-- Default login configuration uses form-based authentication --
   login-config
 auth-methodFORM/auth-method
 realm-nameForm-Based Authentication/realm-name
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/error.jsp/form-error-page
 /form-login-config
   /login-config
   !-- Security roles referenced by this web application --
/web-app


--
Cup of Java + Suger of XML = Secure WebApp


Re: Problem in j_security_check

2006-02-03 Thread Prashant Saraf
i created a link which connect to login.jsp then also it not works:(

On 2/3/06, David Delbecq [EMAIL PROTECTED] wrote:

 This mean you tried to access login form directly. This is not allowed
 in j2ee specifications.
 Access to login form should only be triggered by server on demand. You
 can't force a login.
 To access login page, simply put a link to saraf/index.html (simple
 example)
 Prashant Saraf a écrit :

 i have a problem in Tomcat  jsp
 when i use j_security_check it gives me following error.
 The request sent by the client was syntactically incorrect (Invalid
 direct
 reference to form login page
 why this so
 my web.xml
 
 ?xml version=3D 1.0 encoding=3DISO-8859-1?
 
 
 web-app xmlns=3Dhttp://java.sun.com/xml/ns/j2ee 
xmlns:xsi=3Dhttp://www.w3.org/2001/XMLSchema-instance 
xsi:schemaLocation=3Dhttp://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
 
version=3D 2.4
 
description
 My first jsp example
/description
display-nameWork on Jsp/display-name
 
security-constraint
display-nameTestApp Security Constraint/display-name
web-resource-collection
 web-resource-nameProtected Area/web-resource-name
 !-- Define the context-relative URL(s) to be protected --
 
 !-- If you list http methods, only those methods are
 protecte=
 d
 --
 http-methodDELETE/http-method
 http-methodGET/http-method
 http-methodPOST/http-method
http-methodPUT/http-method
url-pattern/saraf/*/url-pattern
/web-resource-collection
auth-constraint
!-- Anyone with one of the listed roles may access this area
 --
role-name*/role-name
/auth-constraint
/security-constraint
 
!-- Default login configuration uses form-based authentication --
login-config
  auth-methodFORM/auth-method
  realm-nameForm-Based Authentication/realm-name
  form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/error.jsp/form-error-page
  /form-login-config
/login-config
!-- Security roles referenced by this web application --
 /web-app
 
 
 --
 Cup of Java + Suger of XML = Secure WebApp
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Cup of Java + Suger of XML = Secure WebApp


Re: Problem in j_security_check

2006-02-03 Thread Prashant Saraf
still it not works
it again focous on login page and if i again given detail gives following
error


The requested resource (/saraf/protected/j_security_check) is not available
is this somthig related to web.xml or i have add some in config/server.xml


Re: Problem in j_security_check

2006-02-03 Thread Prashant Saraf
i think problem should be web.xml but still it gives following problem
1)You are logged in as remote user *null* in session *
2AD5AC97008551CE1EDD510E06AE6E1F

*WHICH SHOULD NOT*
* 2)how should tomcat know that  protected is protected


how to use j_username j_password in j_security_cheched

2006-01-27 Thread Prashant Saraf
hello
can any on tell  me how to use  j_username  j_password in
j_security_cheched
thanks