Please help with problem with starting JSP server-JSWDK-1.0.1!

2000-08-11 Thread Roland Dong
I have a problem when starting the server. I know I am supposed to have two dos screens when executing startserver.bat, but the second dos window quick disappears before I could even read what on it. It may not be a JSP related problem, but can anybody give a clue? Is this problem related to con

PROBLEM WITH jswdk1.0.1 STOPSERVER! Please help!

2000-08-12 Thread Roland Dong
I installed jdk1.3 first but I could not start the server. Then I installed jdk1.2.2. I coudl start the server but I could not stop the server. When I excute stopserver.bat, it gives me the following error message: Using classpath: .\classes;.\webserver.jar;.\lib\jakarta.jar;.\lib\servlet.jar;. \

Where can I download the example codes for JavaServer Pages by Larene Pekowsky?

2001-01-27 Thread Roland Dong
I have the book in hand but the CD-ROM is missing. Can anyone tell me if there is website I could download the example code for the book: JavaServer Pages by Larne Pekowsky? Thanks a lot, Roland === To unsubscribe: mailto [

How to secure a page?

2001-02-05 Thread Roland Dong
I remember someone posted Login-related question recently. I have a newbie question on this. In my web application, I have login1.jsp which calls login2.jsp to handle the actual login process. I use JDBC-ODBC-Oracle to handle the database connection. If successfully logged in, the user will be

Is there a jsp-job related sites or mailing list?

2001-02-07 Thread Roland Dong
Does anybody know if there is a jsp-job related web sites or mailing list? Roland === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTER

Re: using "like" statement wih preparedStatement

2001-02-08 Thread Roland Dong
Just wondering why EJBs are much preferred to JDBC? Can you give an example? Roland You can use "like" in a prepared statement; as I recall, all you'd need is to make sure the string you're setting has the wildcards. To wit: PreparedStatement ps=connection.createPreparedStatement( "select *

Can anyone direct me to a JDBC or ORACLE related mailing list?

2001-02-09 Thread Roland Dong
Tried to get my JSP connected to the Oracle database via JDBC but could not get JDBC-ODBC bridge work! Could not find a JDBC mailing list either. Can anyone help? Or direct me a related mailing list? Hope this is not too off-topic. I previously installed ORACLE 8 and the JDBC-ODBC driver worked f

Can you help with JSP example?

2001-03-04 Thread Roland Dong
Hi, I am trying to run an examples using beans from the book JavaServr Pages by larne Pekowsky. Could not get it work. I am using Tomcat3.21. Basically, beanexample1.jsp tries to get properties from Bean1.java. When I run it I got Error 500: Internal Servlet Error: org.apache.jasper.JasperExcept

Re: Can you help with JSP example?

2001-03-05 Thread Roland Dong
, but IMHO your package statement should read jspbook.ch04; and not com.awl.jspbook.ch04; Hope this helps. Rohit. - Original Message ----- From: "Roland Dong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, 05 March, 2001 9:09 AM Subject: Can you help with JSP

Re: Can you help with JSP example?

2001-03-06 Thread Roland Dong
, but did you compile the .java file to generate a .class file. Rohit. - Original Message - From: "Roland Dong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 06 March, 2001 4:11 AM Subject: Re: Can you help with JSP example? > Thanks a lot, Rohit, &g

No Subject

2001-03-08 Thread Roland Dong
Hi, I just set up my orion server running in UNIX, but it can not run jsp. I got the following error message Can anyone explain what does the following error mean? Any solutions? Thanks, Roland 500 Internal Server Error Error parsing JSP page /index1.jsp Syntax error in sourcejava.lang.Intern

Can't run JSP, Please help!

2001-03-08 Thread Roland Dong
Hi, I just set up my orion server running in UNIX, but it can not run jsp. Can anyone explain what does the following error mean? Any solutions? Thanks, Roland 500 Internal Server Error Error parsing JSP page /index1.jsp Syntax error in sourcejava.lang.InternalError: jzentry == 0 at java.

No Subject

2001-03-09 Thread Roland Dong
; From: Roland Dong [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 08, 2001 3:08 PM > To: [EMAIL PROTECTED] > Subject: > > > Hi, I just set up my orion server running in UNIX, but it can > not run jsp. I > got the following error message > > Can anyone explain wha

Problem with Welcome.jsp not displaying

2001-04-02 Thread Roland Dong
I am having a problem with Welcome.jsp not showing up. I have a servlet which checks user name and password in database. If validated, user will be allowed to login either as administor or customer. If customer successfully logs in, Welcome.jsp should show up. However, instead of displaying Welc

Question on Redirect and Parameter passing to a jsp page

2001-04-12 Thread Roland Dong
I have a.html calls login.java(servlet) to check user name and password. If user/password is true, login.java will redirect to b.jsp. My question is Question 1: If a.html is a frame, how can I open a new browser window for b.jsp? I have tried this: res.sendRedirect("\"http://localhost:8080/jsp

Re: Question on Redirect and Parameter passing to a jsp page

2001-04-12 Thread Roland Dong
g the password with it (But its not secure.) --- Roland Dong <[EMAIL PROTECTED]> wrote: > I have a.html calls login.java(servlet) to check > user name and password. If > user/password is true, login.java will redirect to > b.jsp. My question is > > Question 1: If a.html is

How to get the Session value and use it for DB access?

2001-04-24 Thread Roland Dong
Please help with the following problem. (I am using Orion 4.7) I am trying to use the value of the session variable for database accesses( I am not concerned about security). First, I tried to get the session value back in b.jsp by: String pwd =(String)session.getAttribute("Login.Password");

JSP Taglibs or Javabean

2001-09-26 Thread Roland Dong
what is the difference between using JSP Taglibs and using Javabeans? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Tomcat and Oracle JDBC-ODBC connection problem. Please help!

2002-01-18 Thread Roland Dong
I have installed tomacat to set up Oracle JDBC-ODBC driver, data source... but ran into some problmes: The database connection with Oracle only works with .java files but does not work with jsp files. For example: test.java would work but test.jsp would not. This is the error message I got when

Is there a way to connect to more than one datasource in a single jsp page?

2002-01-27 Thread Roland Dong
Is there a way to connect to more than one datasource in a single jsp page? I am using mysql.It seems to me no matter what I tried it always sticks to the first datasource. For example: my datasource is String URL="jdbc:mysql://localhost:3306/myDatabase"; query="xxx"; Class.forName(DRIVER)

Please help with email an attachment

2002-05-20 Thread Roland Dong
On 4/16/02 3:14 PM, "Richard Yee" <[EMAIL PROTECTED]> wrote: > SC, > Look at the web.xml file in your Apache Tomcat 4.0 conf directory. > The 'listings' init-param of the default servlet entry controls whether > directory listing is allowed. The welcome-file-list parameter entry > controls what f

Please help with email attachment

2002-05-20 Thread Roland Dong
I am using two taglibs to handle sending an email attachment. One taglib handles uploading the file to the server. The other handles sending out the file as email attachment. So I need first upload the file from local disk to the server. My problem is that with new clustered server configurati

Re: Please help with email attachment

2002-05-20 Thread Roland Dong
Richard, Thanks for your reply. Actually, it is ONE jsp handles both upload and email attachment. //upload.jsp .. .. //upload file  File is: <% name="test/test1/"+A; %> . . //attache file <%=name%> . . I was told by our IT department user will not be able to up

Email attachment without first uploading the file to the server?

2002-05-21 Thread Roland Dong
Hi, I am writing a jsp program in which user can send email attachment. Since users are not allowed to upload file from their local machine to the server. Is there a way to write a jsp program which can send out the email attachment WITHOUT first uploading the file to the sever? It is urgent ,

Re: Email attachment without first uploading the file to the server?

2002-05-22 Thread Roland Dong
codes? Thanks a lot, Roland On 5/21/02 9:39 PM, "Andy Engle" <[EMAIL PROTECTED]> wrote: > On 5/21/02 10:15 AM, "Roland Dong" <[EMAIL PROTECTED]> wrote: > >> I am writing a jsp program in which user can send email attachment. Since >> users are

Re: Email attachment without first uploading the file to the server?

2002-05-22 Thread Roland Dong
Richard, Thank you so much! I will do that. Roland On 5/22/02 12:09 AM, "Richard Yee" <[EMAIL PROTECTED]> wrote: > Roland, > Search the Servlet-Interest archives for messages having the subject of: > Sevlet Upload Question > and > Re: Sevlet Upload Question > > There was a discussion about c

Re: How to keep two sessions with the same browser?

2002-08-09 Thread Roland Dong
Thanks for all your inputs! Ok, is it possible to check if there is a previous session, so that before the second user actually logs in, he would get a warning that a session already exists? Thanks a lot === To unsubscribe:

How to create a session object other than "session"

2002-08-09 Thread Roland Dong
I am testing a session object so I created p1.jsp with the snippets: <% HttpSession currSession = request.getSession(true) currSession.setMaxInactiveInterval(3600); currSession.setAttribute("user", Name); currSession.setAttribute("id", ID); ... %> In P2.jsp <% . currSession.inv

IE5 refresh problem

2002-08-28 Thread Roland Dong
I have a jsp page displaying the data retrieved from database. When database records are updated. I want to click 'refresh' button to update the jsp page. Unfortunately, I get no pointer errors when I do that. This happens only on IE5. It works fine in Netscape and IE5.1. Is there a work around

Orion Mailing list down for ever?

2002-10-09 Thread Roland Dong
Does anyone on this list know what is the problem with the orion mailing list? Is there an alternative mailing list? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PR

Re: How to retrieve jpeg image file from LDAP?

2002-10-23 Thread Roland Dong
ad of the image src making > a direct link to the image it calls the servlet which gets the image and > outputs it in the correct format. > > -Original Message- > From: Roland Dong [mailto:rdong@;CAIT.ORG] > Sent: Tuesday, October 22, 2002 3:54 PM > To: [EMAIL PROTECTED]

How to retrieve jpeg image file from LDAP?

2002-10-22 Thread Roland Dong
I am working on a project which retrieves jpeg image files and heave them displayed in the browser. These jpeg photos are stored as base64 in LDAP server. I am using JSP for this project. My questions are 1. How do I retrieve images from LDAP using jsp? I know how to retrieve any data of string

Re: How to retrieve jpeg image file from LDAP?

2002-10-24 Thread Roland Dong
gt; thus instead of the image src making > a direct link to the image it calls the servlet which gets the image and > outputs it in the correct format. > > -Original Message- > From: Roland Dong [mailto:rdong@;CAIT.ORG] > Sent: Tuesday, October 22, 2002 3:54 PM > To: [EMAI

Re: Vector as a bean property

2002-12-03 Thread Roland Dong
On 11/26/02 1:12 PM, "Hans Bergsten" <[EMAIL PROTECTED]> wrote: > Deepak wrote: >> Hi folks >> >> Can I have a vector as a bean property? >> If so how can i set the property using >> >> for example the property "csvorders" is a vector. >> How can I pass a vector as the value of this property? >>

How to get values of all session variable--application wide?

2002-12-31 Thread Roland Dong
I am trying to implement a admin jsp page which display all ACTIVE users at the moment. Is it possible to somehow use session mechnism to implement that? For example: User A login with the user name "UA" and that user name is stored in a session variable "loginName". the current time is sto

Re: How to get values of all session variable--application wide?

2003-01-08 Thread Roland Dong
you want and > then store the username and timestamp in the ServletContext. > > Ritesh > ----- Original Message - > From: "Roland Dong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 01, 2003 12:32 AM > Subject: How to get values o

Why the user's session id did not get removed from the global hashtable?

2003-02-27 Thread Roland Dong
I want to a jsp program which displays all CURRENTLY loggied on users. So I want to A.jsp to populate login info (basically login names) to a global hashtable. Then I need a bean B.java(NOT jsp) which implements HttpSessionListener to get the login information from A.jsp and process them. If user