Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
| Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 10th, 2006, 01:26 AM
Registered User
 
Join Date: Nov 2006
Location: Pune, maharashtra, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to virendrapotdar
Default Passing userid & password from URL

Hi all,


My requirement is some what like.

End user will have one link like http://servsername:8080/application name/ (tomcat Url). Instead of passing user name & Password from any JSP page (Using get parameter method) end user want to pass these user name & password from URL like
http://servsername:8080/application name/ user name=xyz? Pass = xxxxx?

Can any one help me to resolve this issue?

Thanks
Virendra P.


Thanks & Regards,
Virendra P.
  #2 (permalink)  
Old November 13th, 2006, 07:49 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sachin.tathod
Default

Pass them as hidden parametet rather than passing it as url

Thanks and Regards,
SACHIN S.TATHOD
Patni Computer System Ltd.
Magarpatta City, Cyber City,
Tower 3,Level I & II,
Hadapsar,Pune - 411028
Mobile No:- +91-9881239401
Email ID:- sachin.tathod@patni.com
  #3 (permalink)  
Old November 14th, 2006, 06:11 AM
Registered User
 
Join Date: Nov 2006
Location: Pune, maharashtra, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to virendrapotdar
Default

Hi Sachin,

Thanks I hard coded the user name & password.
Now I am geeting new exception i.e. class no found exception.
Can you please help me to fix this error.

Thanks
Virendra Potdar
************************************************** ********
************************************************** **********
Following is the exception that I got.
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: com/crystaldecisions/sdk/framework/ISessionMgr
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:244)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


root cause

java.lang.NoClassDefFoundError: com/crystaldecisions/sdk/framework/ISessionMgr
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:1618)
    java.lang.Class.getConstructor0(Class.java:1930)
    java.lang.Class.newInstance0(Class.java:278)
    java.lang.Class.newInstance(Class.java:261)
    org.apache.jasper.servlet.JspServletWrapper.getSer vlet(JspServletWrapper.java:137)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:307)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.27 logs.



Thanks & Regards,
Virendra P.
  #4 (permalink)  
Old November 24th, 2006, 08:05 AM
Authorized User
 
Join Date: Sep 2006
Location: , , .
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

use get() method when u pass uname and password should be there

Regards
Kotaiah.K



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing a password protected URL Tomi Java Basics 2 September 6th, 2007 11:25 AM
UserID Membership & Referential Integrity bkosscus BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 August 28th, 2006 02:35 AM
Simple cookie to remember userid and password Dayzed Classic ASP Basics 1 April 14th, 2004 08:06 AM
pass userid password across pages in ASP rajayak Classic ASP Databases 2 June 23rd, 2003 09:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.