Re: putting breakpoints in jsp code

2001-04-18 Thread Anabathula Jagadeesh
Just put <% return; %> where ever you want to stop the processing Jagadeesh -Original Message- From: charu gupta [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: putting breakpoints in jsp code Hi, I am working on an application

Antwort: Syntax error or access violation (sql)

2001-04-18 Thread Steffen Morawietz
hi. seems rather trivial: try putting the name in single quotes like select * from description where name = '<%= request.getParameter ("name")' suppose your searchstring sholdn't be truncated anymore... greetings sufi malak <[EMAIL PROTECTED]

How do I get Content-Length ?

2001-04-18 Thread Yasuo Itoh
Hello, I needs Content-Length for the i-Mode of NTT-DOCOM. I tried as follows at the last line in a JSP file. <% response.setContentLength(out.getBufferSize() - out.getRemaining()); %> I got the length however the length was little bit smaller than correct length. Apche_1_3_14_WIN, jakart

Auto-login thorugh web.xml

2001-04-18 Thread Raja Nagendra Kumar
Hi! Is there any tags defined in web.xml for auto-login feature? Presently web.xml is written to provide OS level security. If there are no standards in this direction, can any one point me to the location of auto-login example code. Regards, Nagendra ==

Re: Whick is the best choice?

2001-04-18 Thread Hari Damera
Its always better to call EJB from Servlet according to MVC design pattern. Always, better give control to the Controller(Servlet) and use JSP just as Presentation layer. Hope this helps.. - Original Message - From: "Eunum Listener" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thurs

Re: Whick is the best choice?

2001-04-18 Thread Tinou Bao
If you mean directly invoking EJBs from your JSPs I would not do that -- too much code in your JSP. On the other had if you encapsulate this in ordinary JavaBeans then this is fine. --tinou.com - Original Message - From: "Eunum Listener" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

Re: Displying Alert

2001-04-18 Thread Balkrishna R.Parab
Displaying alert by refreshing the pasge is one of the simplest way and i guess its best possible way. But we need to display alert in all possible situatation, browser minimize is also included. I guess I need to write seprate application and that will keep on monitoring the database updatation.

File Upload from HTML form

2001-04-18 Thread Patrice Descorps
Hi everybody, I'm just trying to get an attached file from an HTML form (POST method) that the use as sent. How can I do this? What can of code should I use? Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "

Tomcat --> WebLogic

2001-04-18 Thread Erwin
Hi people, I wanted to know about the differences between Tomcat and WebLogic, and how it affects coding. I'm designing a j2ee application, using Tomcat server for testing. After I'm done, I need to port it to WebLogic, which is what my client is using. It would be nice if someone could point out

Whick is the best choice?

2001-04-18 Thread Eunum Listener
Which is better, invoke EJB(session bean) from JSP or servlet? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some re

Re: single quotes and other special characters

2001-04-18 Thread Rishabh Agarwal
Hi Karthik, U have to get the connection object in the code like follows. Driver myDriver = (Driver) Class.forName("weblogic.jdbc.pool.Driver").newInstance(); Connection conn = myDriver.connect("jdbc:weblogic:pool:sfdmPool ", props); Rishabh. -Original Message-

Re: single quotes and other special characters

2001-04-18 Thread Venkat
Use PreparedStatement to insert data into a table which enables you to include any special characters regards venkat - Original Message - From: "Narayan, Karthik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 19, 2001 12:06 AM Subject: single quotes and other special

applet and servlet

2001-04-18 Thread Yan Zhu
hey guys, I am trying to dynamically update a page content based on server response. basically, I need javascript function access server side code. I know I can get javascript to talk to applet, so can I stick a invisible applet in the page, and make it talk to servl

Re: Is it possible to call a bean method via an HTML button onClick?

2001-04-18 Thread Bob Carpenter
Hi John, I like this idea... I think we'll give it a shot! Thanks, --BobC On Mon, 16 Apr 2001, John Thomas wrote: > Hi, > I do this in a round about manner, > onClick(), I do a form submit to another jsp page where i call the > bean method, after calling the bean methd I do a jsp:forward

Re: Is it possible to call a bean method via an HTML button onClick?

2001-04-18 Thread Bob Carpenter
On Mon, 16 Apr 2001, John Thomas wrote: > Hi, > I do this in a round about manner, > onClick(), I do a form submit to another jsp page where i call the > bean method, after calling the bean methd I do a jsp:forward back to > the bean method. > > Hope this will help. > > Regards > John > > >

file uploads

2001-04-18 Thread Luis Javier Beltran
Hi all, I want to do something like the hotmail and yahoo mail file attachment (browsing the file, then sending it to the server, repeating those steps and then hitting OK), and I wanted some suggestions. 1) How do I store the files that the client sends? I was thinking of storing them as tempor

Re: execute .bat/.exe file with Servlets

2001-04-18 Thread Nishit Trivedi
i think you can use this: let's say file name is temp.bat then: --- try{ java.lang.Process p = null; String fileName = "temp"; String command = fileName; p = java.lang.Runtime.getRuntime().exec(command); } catch(Exception e){ log("the exception e is:"+e.getMessage())

Re: execute .bat/.exe file with Servlets

2001-04-18 Thread Tinou Bao
i think there is a process class you can use. - Original Message - From: "Christian Hamann Linares" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 4:16 PM Subject: [JSP-INTEREST] execute .bat/.exe file with Servlets > Hi All > i have problems... about how ca

execute .bat/.exe file with Servlets

2001-04-18 Thread Christian Hamann Linares
Hi All i have problems... about how can i execute .bat file with my servlet.. so i want execute this file when i call my servlet. Can you help me!!! atte Christian === To unsubscribe: mailto [EMAIL PROTECTED] with body: "sign

Re: Help guetParemeter Error

2001-04-18 Thread Paul Meshkovsky
Thanx I fixed it > -Original Message- > From: Maureen Fisher [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, April 17, 2001 3:15 PM > To: [EMAIL PROTECTED] > Subject: Re: Help guetParemeter Error > > it shoud be request.getParameter -- It looks like you use a q (Q) instead of a > g (G) >

Re: single quotes and other special characters

2001-04-18 Thread Narayan, Karthik
Hi, Thanks for the information. I guess the code goes within the "Submit to Save" functionality on the JSP page. I use Weblogic 5.1 . If you have used it, there is a section in weblogic.properties called: weblogic.jdbc.connectionPool.sfdmPool=\ url=jdbc:oracle:thin:@localhost:1537:servi

putting breakpoints in jsp code

2001-04-18 Thread charu gupta
Hi, I am working on an application which consists of jsp, oracle db and iplanet server. i am from ASP background. In ASP we can use"Response.end" to put breakpoints in our code for testing purposes. What can I use in JSP which will give me the same effect? i.e to execute the code only till a ce

Syntax error or access violation (sql)

2001-04-18 Thread sufi malak
Hi, here is what I am trying to do : veiwprogram.jsp : <%@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" %> <% String name = request.getParameter("name"); %> <% out.println(" The name is >:" + name); %> jdbc:mysql://localhost/test org.gjt.mm.mysql.Driver se

Re: Displying Alert

2001-04-18 Thread M. Simms
Best approach would be to create an applet embedded in a JSP that implements a listener for a custom event that is fired from a stored procedure / trigger within the database. other JSP "refresh" approaches may cause too many roundtrips back and forth to the server. > -Original Message---

Re: jsp tomcat reloading problems...

2001-04-18 Thread M. Simms
Did you upgrade to Win2000 SP1 ? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Florian DREVET > Sent: Wednesday, April 18, 2001 12:28 PM > To: [EMAIL PROTECTED] > Subject: Re: jsp tomcat reloading p

Re: Unknown column ??

2001-04-18 Thread Clayton Nash
What's the query you're trying to run -- please print it our from your java app and pass that exactly. Your code below doesn't include any ' marks to delimit the search and is different to code samples further down. It's almost certain you're trying to execute a query like select * from ta

ClassCastException and restarting Tomcat

2001-04-18 Thread Gerry Scheetz
After reading some messages in the archives, I think I have an idea of what is going on and why I am getting a ClassCastException. What I am looking for is how others handle this problem in there organizations. A quick overview of my situation. I am attempting to code a MVC web application.

Re: Unknown column ??

2001-04-18 Thread sufi malak
The same query from the command line is working fine. >From: Nishit Trivedi <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and > reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Unknown column ?? >Date: Wed, 18 Apr 2001 12:36:01 -0400 > >

Re: Running dos native commands from java application...

2001-04-18 Thread CHAKCHOUK, Anis
hi, help please: Java Server Page Translation Error Error during compilation : C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_list.java:99: Class pagecompile.jsp.Iterator not found in type declaration. Iterator i = v.iterator(); ^ C:\JavaWebServer2.0\tmpdir\def

Re: single quotes and other special characters

2001-04-18 Thread Nishit Trivedi
use PreparedStatement here is the example: let's ay your DB connection object is 'dbConn' then: String fName="myFName"; String lName="myLName"; String query = "INSERT INTO (FName,LName) values (?,?)"; PreparedStatement prStmt = dbConn.prepareStatement(query); prStmt.setString(1,fName); prStmt.

Re: Unknown column ??

2001-04-18 Thread Nishit Trivedi
error is EXACTLY as stated... "Unknown column 'Big' in where clause.. Please try to print query before executing it... or try to execute same query through command line.. Nishit -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 12:15 PM To: [

Re: Unknown column ??

2001-04-18 Thread Maureen Fisher
don't you want select * from description where name = "<%= request.getParameter("name") %>" instead? otherwise you are saying you want 2 columns to equal each other. HTH... At 04:15 PM 4/18/2001 +, sufi malak wrote: >I am still struggling with the same problem, could you please tell me wh

Re: jsp tomcat reloading problems...

2001-04-18 Thread Florian DREVET
I've got exactly the same problem with Win2k pro on two machines, so I think : don't worry about this ;-) Wait a fix... ;-) Florian -Message d'origine- De : A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]De la part de Martin Kjellqvist Envoyé

single quotes and other special characters

2001-04-18 Thread Narayan, Karthik
> Hi, > > Is there a way to include single quotes and other special characters in an > input field in a jsp file, > which then gets saved into the database. > > Right now, I get the extra single quote which fails to submit the entries > to the database. > > Thanks > > Karthik

Unknown column ??

2001-04-18 Thread sufi malak
I am still struggling with the same problem, could you please tell me why is this error : javax.servlet.ServletException: java.sql.SQLException: Column not found: Unknown column 'Big' in 'where clause' The code is like this : select * from description where name = <%= request.getParameter("n

single quotes and other special characters

2001-04-18 Thread Narayan, Karthik
Hi, Is there a way to include single quotes and other special characters in an input field in a jsp file, which then gets saved into the database. Right now, I get the extra single quote which fails to submit the entries to the database. Thanks Karthik

Re: HTTPS ??

2001-04-18 Thread Henk Meulekamp
Your code and page will look exactly the same. You have to configure your webserver to use a SSL certificate, and then just in one folder, or subweb where those login pages are located. You will have to look up how to install SSL on your webserver. hjm |-Original Message- |From: Warty,

jsp tomcat reloading problems...

2001-04-18 Thread Martin Kjellqvist
Hi All. I have run into a really anoing problem which I can't seem to fix. When I have done any changing in an existing jsp page tomcat won't reload it. I have to shutdown and restart tomcat, and sometimes I even have to delete the work folder to get tomcat to reconignize (don't know how to spel

HTTPS ??

2001-04-18 Thread Warty, Koustubh
Hello friends, I have to use https for verifying the login process on the login page. Could someone tell me how that is done ?? - Koustubh === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST"

Problem with Login

2001-04-18 Thread Merrill George
Hi all, Scenario is this. I've got a login page 'index.html' to enter the user name and password. This form is submitted to a 'login.jsp' for user authentication. After user authentication is successful i put a User object containing details of the user in Vector object of scope Application w

Problem with Login

2001-04-18 Thread Merrill George
Hi all, The following is the scenario. I have a login page'index.html' to enter the username and password. this form is submitted to a 'login.jsp' for user authentication. If authentication is succesful i put the user data as a User object in to a Vector object of Application scope and i add

Re: jdbc taglib question ?? No rows selected

2001-04-18 Thread sufi malak
Hi, I just read the documentation again, from apache site : http://jakarta.apache.org/taglibs/doc/jdbc-doc/index.html#escapeSql And I changed the sql quer to : select * from description where name = '<%=request.getParameter("name")%>' BUT STILL DOES NOT WORK, ALWAYS I get no rows selected

Re: Displying Alert

2001-04-18 Thread Fetyko Jan
what about refreshing the page ( JSP - that gets the information from your Database ) every couple of minutes/seconds ? This can be done with a simple HTTP Response Header: Something like : HttpServletResponse.setHeader("Refresh", "5; URL=http://host/path") Jano Fetyko Script fighter Phase2 De

Re: Displying Alert

2001-04-18 Thread Martin, Janet
Remember that JSP's are server side processed and then sent to the browser. Using the web browser as your UI delivery framework does limit how much access you have to the servers. "Normally" once the HTML is sent to the browser all contact with the server is broken until the next request from the

Displying Alert

2001-04-18 Thread Balkrishna R.Parab
Hello Everybody I am working on a project which requred to display alert to the user when ever particular table in database without refreshing that page. 1. One way to do this is to write an seperate applet which will keep on monitoring the database updatation and in turns display Message b

referencing a JavaBean (scope="session") from a custom tag

2001-04-18 Thread Steffen Morawietz
hi folks. my problem is as follows: i use a javabean to store values resulting from a post-operation. this bean is put into the session by a controller.jsp. if data are missing or wrong, i'd like to redirect to the previous page as to enforce the user to enter all information needed. the dynamic

Re: jdbc taglib question ???

2001-04-18 Thread sufi malak
Hi, 1) select * from description where name like <%= "'" + request.getParameter("name") + "'"%> 2) select * from description where name like '<%= request.getParameter("name") %>' Both (1) and (2) don't work. >From: Richard Yee <[EMAIL PROTECTED]> >Reply-To: A mailing list about

URGENT About undocumented DB2 JDBC error ...

2001-04-18 Thread Ali ASLAN
> Hi, > > My platform is SunOs 5.8 > App Server is : IBM WebSphere 3.5 > DBMS is : IBM DB2 UDB ver 7.1 > > when I connect to DBMS I take some really strange undocumented error such as, > > [IBM] [JDBC driver] CLI0647E Error handling DB2 environment rc=db2jdbc. > > Can Anyone ,who see t

Re: problem with javamail

2001-04-18 Thread Sachin S. Khanna
There doesn't seem to be any problem with your code.It ran fine. Have a nice day. With regards, Sachin S. Khanna http://www.emailanorder.com - Original Message - From: Raghu Movva <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 18, 2001 2:37 PM Subject: problem with java

Re: problem with javamail

2001-04-18 Thread Andreas Hausleitner
Have you added mail.jar to your classpath? Andreas Raghu Movva wrote: > Hi, > I have written a program using javamail. It is compiling correctly. But > when I am running the code it is giving the following error. Can any body > please figure it out. The error is "java.lang.Noclassdeffound

problem with javamail

2001-04-18 Thread Raghu Movva
Hi, I have written a program using javamail. It is compiling correctly. But when I am running the code it is giving the following error. Can any body please figure it out. The error is "java.lang.Noclassdeffounderror com/sun/mail/utilMailDateFormat. I am sending the code also import javax.