Re: using corba from servlets

2000-08-14 Thread TODD HARNEY
Your classpath is different when you run the application from the command line than when you run the servlet through the webserver. Make sure your web server's classpath has the CORBA classes in it. >>> [EMAIL PROTECTED] 8/11/00 4:45 >>> dear Members, If anyone over there knows y I get clas

Re: JSP Error Page with a servlet

2000-08-09 Thread TODD HARNEY
You are exactly right...from your servlet you forward to the JSP error page...storing the exception as an attribute...which your JSP error page can pull out of the request object it receives and then display that error. >>> [EMAIL PROTECTED] 8/9/00 9:10 >>> I sent this out yesterday without a s

Re: static initialiser block in JSP page

2000-08-03 Thread TODD HARNEY
Or you could just do what you are currently doing, but not define Hashtable instead the static initializer, but define it as public static Hashtable at the class level and then simply initialize it in the static initializer...much more simple and straightforward >>> [EMAIL PROTECTED] 8/3/00 1:

Re: static initialiser block in JSP page

2000-08-03 Thread TODD HARNEY
The code is correct...I think you just need to define your hashtable to be static as well. >>> [EMAIL PROTECTED] 8/3/00 12:12 >>> HI All, I'm trying to get a static initializer in my JSP page (such that it will only ever populate a hashtable once in the java file generated). Something *like*

Re: date formate fectching??dd/mm/yyyyy

2000-08-03 Thread TODD HARNEY
Use the JDK APIs for date formattingDateFormat, Calendar, etc. >>> [EMAIL PROTECTED] 8/3/00 7:49 >>> hi how can i fetch date formate like mm/dd/yy in jsp page. here i am using java.util.date df=rs.getDate(1); it will be displaying 2000-08-03 i want to display 03-08-2000 how can i do it th

Re: JSP:foward

2000-08-03 Thread TODD HARNEY
You are sending output to the browser somewhere before this call to jsp:forward and once you send output to the browser, you can't send more HTTP headers which is what happens once the jsp:forward method is called >>> [EMAIL PROTECTED] 6/17/00 3:14 >>> hi all, whenever I use then it gives fol

Re: How can I schedule a Job in JSP or servlet...

2000-08-02 Thread TODD HARNEY
Hello?! ... maybe this person doesn't have/use Unix ? :o >>> [EMAIL PROTECTED] 8/2/00 9:53 >>> Krishnan, Why don't you just convert the servlet into a Java application and set up a cron job (Unix) to run it at the appropriate time? -Richard -Original Message- From: Krishnan [mailto:

Re: Using ClassLoader

2000-08-02 Thread TODD HARNEY
ses in the Jar. Is there any way of doing this? Jimmi Dyson Illy Computer Systems -Original Message- From: TODD HARNEY [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 02, 2000 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Using ClassLoader Make sure the JAR file is located in on

Re: do I need another web server after I install JDK and JSWDK

2000-08-02 Thread TODD HARNEY
JSWDK has its own web server...just run the startserver.bat file in the root directory >>> [EMAIL PROTECTED] 8/1/00 4:43 >>> yes, you need a web server to host the jsp files. try javawebserver >From: Wei Qin <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and

Re: Dynamic population of list box

2000-08-02 Thread TODD HARNEY
Something like: <%! ResultSet rset; %> //logic to get a result set of names from database <% if (rset!=null) { while(rset.next()) { %> "><%= rset.getString("FirstName") + " " + rset.getString("LastName") %> <% } } %> >>> [EMAIL PROTECTED] 8/2/00 4:30 >>> Hi, I

Re: Using ClassLoader

2000-08-02 Thread TODD HARNEY
Make sure the JAR file is located in one of the directories in your classpath and it will work >>> [EMAIL PROTECTED] 8/2/00 4:02 >>> Hi all. I have a JAR file with about a thousand classes in it, contained within different packages. How do I load these classes without having to explicitly go thr

Re: Session ID HELP!!

2000-08-02 Thread TODD HARNEY
utValue() like you said... then when this user keep browsing to the page containing session bean..here is the question.. how would i know that the session.putValue()in the very first page would be bound with the session bean in the later page(i mean, the same session) thank you Chad --- T

Re: time not displaying

2000-08-02 Thread TODD HARNEY
Use the oracle char_to_date function...I believe that is what it is called >>> [EMAIL PROTECTED] 8/2/00 12:30 >>> hi , i want to update using oracel through jap page date and time. and retriving the same. how can i do it. urgent please my code is: java.util.Date datStart,datExpiry,

Re: error 500 when I run my own JSP

2000-08-01 Thread TODD HARNEY
That is not true at all...you can put your JSP pages wherever you want, the stipulation is that you must adjust your URL accordingly including any file aliases setup, etc. You also do not have to restart the JavaWebServer every time you change a JSP file either. The last modified timestamp is c

Re: error 404 when I run my own JSP

2000-08-01 Thread TODD HARNEY
No registration, just placing the bean .class files in a certain directory like Web-Inf or something strange like that. Consult the web server readme files for help. >>> [EMAIL PROTECTED] 8/1/00 2:10 >>> I am having a similar problem, just starting out with JSP. I get an error 500 - internal se

Re: error 404 when I run my own JSP

2000-08-01 Thread TODD HARNEY
Are you entering the correct URL when trying to view the JSPs? Is there an alias setup in jswdk for /examples or /examples/jsp that will affect your URL you use to get to the JSPs you are writing? >>> [EMAIL PROTECTED] 8/1/00 1:16 >>> Hello, I installed JDK 1.2.2 and JSWDK , and now I can run

Re: Session ID HELP!!

2000-08-01 Thread TODD HARNEY
You can explicitly get the session object by calling request.getSession(true) from your JSP code, but I believe there is a page directive that you can set in your JSP page to have that code explicitly generated for you so that you can simply call the implicit session object. I also believe that

Re: Corba and JSP integration

2000-08-01 Thread TODD HARNEY
Again keep in mind that directly binding to corba components from JSP pages are extremely expensive. It is better to have a pool of already established connections to corba components and then just request a connection from the pool so that the expensive bind is avoided. Just FYI >>> [EMAIL P

Re: Corba and JSP integration

2000-08-01 Thread TODD HARNEY
You can get the connection to your Corba object anywhere you want...in the JSP page directly or in another bean or proxy object. What might be best though since Corba binds are so expensive is this...write an object to connection pool for your Corba objects and then from your JSP, just ask the

Re: How to convert javascript variables to Java variables

2000-08-01 Thread TODD HARNEY
Like I said, I haven't done that beofre, but I guarantee that the error you are getting is from the Java compiler because u and p are not Java variables, they are Javascript variables. That much I guarantee. Sorry I couldn't help you more. I will try to code a sample real quick. >>> [EMAIL PRO

Re: How to convert javascript variables to Java variables

2000-08-01 Thread TODD HARNEY
Here is an example that works and may help you... Test Me function go_to(u,p) { var me="<%= "Hello " %>"+p; alert("User: "+u); alert("Password: "+me); } Hope this helps, Todd >>> [EMAIL PROTECTED] 8/1/00 9:07 >>> hi Tod , Like that it is giving error. It is not comi

Re: errors while including jsp with tag

2000-08-01 Thread TODD HARNEY
It seems that you are already sending output back to the browser. Try just saving all of your output to a StringBuffer or something and then send it back when everything is okay. The error message is saying that you have already sent back some output (which includes the HTTP headers) and that i

Re: How to convert javascript variables to Java variables

2000-08-01 Thread TODD HARNEY
That is the Java compiler saying it doesn't understand the variables u and p because they are Javascript variables and not Java variables. You need to somehow split the u and p out of your Java code. Maybe like this... function go_to(u,p) { <% LoginDao logObj = new LoginDao(); userId =

Re: HANDLER THREAD PROBLEM

2000-08-01 Thread TODD HARNEY
Sounds like there might be a problem with your webserver, since it talks on a specific port (socket) and has handler threads that listen on that port to service incoming HTTP requests. Try restarting your webserver on a new port...this should be a configuration item in one of your webserver pro

Re: jsp plugin help

2000-07-31 Thread TODD HARNEY
Is the codebase attribute relative to the web server root? If so, this won't work. >>> [EMAIL PROTECTED] 7/31/00 1:44 >>> I am havaing trouble using the jsp plugin with an applet. I get a class not found error. Test.class in located in C:/programs/Test.class here is (part of) the code I'm using h

Re: jsp:forward

2000-07-31 Thread TODD HARNEY
Sounds like the web server cannot find your User.jsp file and it is forwarding to what it knows...nothing! Is there maybe an issue with where the files are located in relation to each other...same directory, different directory? >>> [EMAIL PROTECTED] 7/31/00 1:31 >>> Hi, I have a jsp that show

Re: Referrer URL

2000-07-31 Thread TODD HARNEY
In Javascript it is like this... window.history.back() Hope this helps... >>> [EMAIL PROTECTED] 7/31/00 7:34 >>> Is it possible to get the url of the referring page, that is, the page before this one ? I thought this was possible when I previously used isapi. What I am trying to do is to put

Re: Connection to a database - failure

2000-07-31 Thread TODD HARNEY
The code needs to be inside of a method...you have no method defined. >>> [EMAIL PROTECTED] 7/31/00 6:02 >>> Hi all, Can somebody please help me with this problem. When I compile this source-code, for making a connection to a database, I'll receive the error "type expected" in the first TRY-stat

Re: Accessing (only) form parameters.

2000-07-31 Thread TODD HARNEY
You could employ a naming convention for your form parameters such that if you have a form named "myForm" and a field named "userName", you could change the field name (ion this example) to "myForm.userName", then call request.getParameterNames() and in your form loop, filter for names beginnin

Re: How to refresh a JSP-Page

2000-07-31 Thread TODD HARNEY
resh if it doesn't exist. The second time around it would see the var is there and NOT return the tag, but remove the session var as well. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf

Re: How to refresh a JSP-Page

2000-07-27 Thread TODD HARNEY
You could try: In Servlets anyway, out.println( "" ); I am sure JSP can do the same thing. The refresh HTTP header will cause the page to reload immediately (due to content=0); >>> [EMAIL PROTECTED] 7/27/00 8:03 >>> Hi All, I have a jsp-page with: <%@ page session="true" import = "x.*" %>