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.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class SendEmail
{
 public static void main(String[] args)
 {
  if (args.length != 6)
  {
   System.out.println("usage: sendmessage   
  ");
   System.exit(1);
  }
  SendMessage(args[0],args[1], args[2], args[3], args[4], args[5]);
 }

public static String SendMessage(String emailto, String emailfrom, String
smtphost, String emailmultipart, String msgSubject, String msgText)
  {
boolean debug = false; // change to get more information
String msgText2 = "multipart message";
boolean sendmultipart = Boolean.valueOf(emailmultipart).booleanValue();
// set the host
Properties props = new Properties();
props.put("mail.smtp.host", smtphost);
// create some properties and get the default Session
Session session = Session.getInstance(props, null);
session.setDebug(debug);
try
{
  // create a message
  Message msg = new MimeMessage(session);
  // set the from
  InternetAddress from = new InternetAddress(emailfrom);
  msg.setFrom(from);
  InternetAddress[] address =
  {
new InternetAddress(emailto)
  };
  msg.setRecipients(Message.RecipientType.TO, address);
  msg.setSubject(msgSubject);
  if(!sendmultipart)
  {
// send a plain text message
msg.setContent(msgText, "text/plain");
  }
  else
  {
// send a multipart message// create and fill the first message part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setContent(msgText, "text/plain");
// create and fill the second message part
MimeBodyPart mbp2 = new MimeBodyPart();
mbp2.setContent(msgText2, "text/plain");
// create the Multipart and its parts to it
Multipart mp = new MimeMultipart();
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
// add the Multipart to the message
msg.setContent(mp);
  }
  Transport.send(msg);
}
catch(Exception e)
{ System.out.println(e);
  e.printStackTrace();
}
return "Email sent to " + emailto;
  }

}

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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.Noclassdeffounderror
> com/sun/mail/utilMailDateFormat.
> I am sending the code also
>
> import javax.mail.*;
> import javax.mail.internet.*;
> import java.util.*;
>
> public class SendEmail
> {
>  public static void main(String[] args)
>  {
>   if (args.length != 6)
>   {
>System.out.println("usage: sendmessage   
>   ");
>System.exit(1);
>   }
>   SendMessage(args[0],args[1], args[2], args[3], args[4], args[5]);
>  }
>
> public static String SendMessage(String emailto, String emailfrom, String
> smtphost, String emailmultipart, String msgSubject, String msgText)
>   {
> boolean debug = false; // change to get more information
> String msgText2 = "multipart message";
> boolean sendmultipart = Boolean.valueOf(emailmultipart).booleanValue();
> // set the host
> Properties props = new Properties();
> props.put("mail.smtp.host", smtphost);
> // create some properties and get the default Session
> Session session = Session.getInstance(props, null);
> session.setDebug(debug);
> try
> {
>   // create a message
>   Message msg = new MimeMessage(session);
>   // set the from
>   InternetAddress from = new InternetAddress(emailfrom);
>   msg.setFrom(from);
>   InternetAddress[] address =
>   {
> new InternetAddress(emailto)
>   };
>   msg.setRecipients(Message.RecipientType.TO, address);
>   msg.setSubject(msgSubject);
>   if(!sendmultipart)
>   {
> // send a plain text message
> msg.setContent(msgText, "text/plain");
>   }
>   else
>   {
> // send a multipart message// create and fill the first message part
> MimeBodyPart mbp1 = new MimeBodyPart();
> mbp1.setContent(msgText, "text/plain");
> // create and fill the second message part
> MimeBodyPart mbp2 = new MimeBodyPart();
> mbp2.setContent(msgText2, "text/plain");
> // create the Multipart and its parts to it
> Multipart mp = new MimeMultipart();
> mp.addBodyPart(mbp1);
> mp.addBodyPart(mbp2);
> // add the Multipart to the message
> msg.setContent(mp);
>   }
>   Transport.send(msg);
> }
> catch(Exception e)
> { System.out.println(e);
>   e.printStackTrace();
> }
> return "Email sent to " + emailto;
>   }
>
> }
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
__
Andreas Hausleitner[+43] -1-522 48 30 -27 (Office)
Caramba Labs Software AG   [+43] -1-718 61 70 (Fax)
Vorstand, Head of Engineering  [+43] -(0)699-19435167 (Mobile)
Lindengasse 43/19  [EMAIL PROTECTED]
A-1070 Vienna  http://www.CarambaLabs.com
Austria-Europe
__
Empfehlung:
Last Thursday - http://www.lastthursday.org
Plattform zum Erfahrungsaustausch fuer die Bereiche
Software Technologien, Internet und New Media
__

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 javamail


> 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.mail.*;
> import javax.mail.internet.*;
> import java.util.*;
>
> public class SendEmail
> {
>  public static void main(String[] args)
>  {
>   if (args.length != 6)
>   {
>System.out.println("usage: sendmessage   
>   ");
>System.exit(1);
>   }
>   SendMessage(args[0],args[1], args[2], args[3], args[4], args[5]);
>  }
>
> public static String SendMessage(String emailto, String emailfrom, String
> smtphost, String emailmultipart, String msgSubject, String msgText)
>   {
> boolean debug = false; // change to get more information
> String msgText2 = "multipart message";
> boolean sendmultipart =
Boolean.valueOf(emailmultipart).booleanValue();
> // set the host
> Properties props = new Properties();
> props.put("mail.smtp.host", smtphost);
> // create some properties and get the default Session
> Session session = Session.getInstance(props, null);
> session.setDebug(debug);
> try
> {
>   // create a message
>   Message msg = new MimeMessage(session);
>   // set the from
>   InternetAddress from = new InternetAddress(emailfrom);
>   msg.setFrom(from);
>   InternetAddress[] address =
>   {
> new InternetAddress(emailto)
>   };
>   msg.setRecipients(Message.RecipientType.TO, address);
>   msg.setSubject(msgSubject);
>   if(!sendmultipart)
>   {
> // send a plain text message
> msg.setContent(msgText, "text/plain");
>   }
>   else
>   {
> // send a multipart message// create and fill the first message
part
> MimeBodyPart mbp1 = new MimeBodyPart();
> mbp1.setContent(msgText, "text/plain");
> // create and fill the second message part
> MimeBodyPart mbp2 = new MimeBodyPart();
> mbp2.setContent(msgText2, "text/plain");
> // create the Multipart and its parts to it
> Multipart mp = new MimeMultipart();
> mp.addBodyPart(mbp1);
> mp.addBodyPart(mbp2);
> // add the Multipart to the message
> msg.setContent(mp);
>   }
>   Transport.send(msg);
> }
> catch(Exception e)
> { System.out.println(e);
>   e.printStackTrace();
> }
> return "Email sent to " + emailto;
>   }
>
> }
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 this message, help me?
>
>   Thanks in advance,
>
>   Ali ASLAN
>
>
>
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: jdbc taglib question ?
>Date: Tue, 17 Apr 2001 13:26:57 -0700
>
>Sufi,
>You need single quotes around the string in your like clause.
>select * from description where name like '<%= request.getParameter("name")
>%>'
>
>If that doesn't work you might have to do
>select * from description where name like <%= "'" +
>request.getParameter("name") + "'" %>
>
>
>-Richard
>
>-Original Message-
>From: sufi malak [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 17, 2001 1:16 PM
>To: [EMAIL PROTECTED]
>Subject: jdbc taglib question ?
>
>
>could you please tell me what's wrong in this line:
>select * from description where name like <%= request.getParameter("name")
>%>
>
>
>the file is like this :
>..
><%@ 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
>
>
>
>   
> select * from description where name like <%=
>request.getParameter("name") %>
>   
>   
>
>   
>   
>..
>_
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 content of the page containing the form (i.e. form-data) comes
from a custom tag-library. now i'd have to know, what information has
already been given correctly as to output it to the form-elements, but how
can i retrieve the bean-reference from the session?

thanks a lot in advance!

greetings

steffen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 box to the
user. But required to display alert even when browser is minimized.
2.  Another way is to write an application and insatll on client machine
which will keep on monitoring database updataion and inturnns display
Message box. But this requires seperate login. Can i call application in jsp
page so that i can pic up sesion value from the same and can eliminate the
login screen

Any suggestion/modification or advise  will of great help

Thankx in advance


Balkrishna R Parab
Global TeleSystems Ltd

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 browser.  What you asking for is an "active listener" that will always
maintain an open connection to the server.  Not sure the web is the best way
to set this kind of architecture up given how web apps are "normally"
architected.


-Original Message-
From: Balkrishna R.Parab [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 10:22 AM
To: [EMAIL PROTECTED]
Subject: Displying Alert


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 box to the
user. But required to display alert even when browser is minimized.
2.  Another way is to write an application and insatll on client machine
which will keep on monitoring database updataion and inturnns display
Message box. But this requires seperate login. Can i call application in jsp
page so that i can pic up sesion value from the same and can eliminate the
login screen

Any suggestion/modification or advise  will of great help

Thankx in advance


Balkrishna R Parab
Global TeleSystems Ltd

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 Development
825 N.Broadway
Oklahoma City
73102
Phone: (405) 232-4545 x231
Fax: (405) 232-4550
http:\\www.phase2online.com




"Balkrishna
R.Parab" To: [EMAIL PROTECTED]
   Subject: Displying Alert
Sent by: A
mailing list
about Java Server
Pages
specification and
reference



04/18/01 09:21 AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference






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 box to the
user. But required to display alert even when browser is minimized.
2.  Another way is to write an application and insatll on client
machine
which will keep on monitoring database updataion and inturnns display
Message box. But this requires seperate login. Can i call application in
jsp
page so that i can pic up sesion value from the same and can eliminate the
login screen

Any suggestion/modification or advise  will of great help

Thankx in advance


Balkrishna R Parab
Global TeleSystems Ltd

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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.




>From: sufi malak <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: jdbc taglib question ???
>Date: Wed, 18 Apr 2001 12:59:47 -
>
>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 Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: jdbc taglib question ?
>>Date: Tue, 17 Apr 2001 13:26:57 -0700
>>
>>Sufi,
>>You need single quotes around the string in your like clause.
>>select * from description where name like '<%=
>>request.getParameter("name")
>>%>'
>>
>>If that doesn't work you might have to do
>>select * from description where name like <%= "'" +
>>request.getParameter("name") + "'" %>
>>
>>
>>-Richard
>>
>>-Original Message-
>>From: sufi malak [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, April 17, 2001 1:16 PM
>>To: [EMAIL PROTECTED]
>>Subject: jdbc taglib question ?
>>
>>
>>could you please tell me what's wrong in this line:
>>select * from description where name like <%= request.getParameter("name")
>>%>
>>
>>
>>the file is like this :
>>..
>><%@ 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
>>
>>
>>
>>   
>> select * from description where name like <%=
>>request.getParameter("name") %>
>>   
>>   
>>
>>   
>>   
>>..
>>_
>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>
>>===
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>
>>===
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>_
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.html
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 an attribute to the session object pertaining to the user. The
result is another page with links to various modules in my
application.
 However when an inactive timeout occurs (i've set it to 600) and
when the user clicks any of the links it brings the login page because
i check for the session.getValue() .  When the timeout occurs the
session is invalidated, but the user object remains in the
application_scope object. The user object is removed from the
application_scope object only when he logs out.On successful login of
the same user again i want to display the module he tried to view by
clicking the link.
Can anyone give suggestions on this

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 which tracks the users. The result is a page with links to
various modules in my application.

The problem is this:
when an inactive timeout occurs (i've put it as 600) and the user
clicks any of the links the login page is shown because of the
session.getValue function. Say he clicked 'Create Employee ' link ,
the login screen appeared. He loggs in again successfully but then i
want to show him the 'Create Employee' module he had tried to view
when he clicked the link, rather than going to the page with links as
before. Is this possible?

N.B
When a timeout occurs the session is invalidated fine, but the user
object is not removed from the application scope object. The user
object is removed from it only when he logs out.

Merrill

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 spell that
word :)) the changes I made to the page.

The problem started when I changed my OS from win 98 to win 2000 pro. Never
had that problem before. I use tomcat 3.2 (copied the entire folder from win
98 system) and java 1.3.0 on a PIII 550 128MB.

Anyone had the same problem? Any suggestions?

Regards

/Martin


Martin Kjellqvist
cellular: +46 (0)705 - 72 01 87

Teknik i Media Phone: +46 (0)40 97 33 10
Per Weijersgatan 4   Fax: +46 (0)40 97 95 93
S-211 34 Malmö
Webb: http://www.tim.se
E-mail: [EMAIL PROTECTED]


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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, Koustubh [mailto:[EMAIL PROTECTED]]
|Sent: woensdag 18 april 2001 17:39
|To: [EMAIL PROTECTED]
|Subject: HTTPS ??
|
|
| 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".
|For digest: mailto [EMAIL PROTECTED] with body: "set
|JSP-INTEREST DIGEST".
|Some relevant FAQs on JSP/Servlets can be found at:
|
| http://java.sun.com/products/jsp/faq.html
| http://www.esperanto.org.nz/jsp/jspfaq.html
| http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
| http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
|
|===
|
|To unsubscribe: mailto [EMAIL PROTECTED] with body:
|"signoff JSP-INTEREST".
|For digest: mailto [EMAIL PROTECTED] with body: "set
|JSP-INTEREST DIGEST".
|Some relevant FAQs on JSP/Servlets can be found at:
|
| http://java.sun.com/products/jsp/faq.html
| http://www.esperanto.org.nz/jsp/jspfaq.html
| http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
| http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
|

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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("name")
%>
  

Thanks


>From: sufi malak <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: jdbc taglib question ?? No rows selected
>Date: Wed, 18 Apr 2001 14:52:58 -
>
>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.
>
>
>
>
>>From: sufi malak <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: jdbc taglib question ???
>>Date: Wed, 18 Apr 2001 12:59:47 -
>>
>>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 Java Server Pages specification and
>>> reference <[EMAIL PROTECTED]>
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: jdbc taglib question ?
>>>Date: Tue, 17 Apr 2001 13:26:57 -0700
>>>
>>>Sufi,
>>>You need single quotes around the string in your like clause.
>>>select * from description where name like '<%=
>>>request.getParameter("name")
>>>%>'
>>>
>>>If that doesn't work you might have to do
>>>select * from description where name like <%= "'" +
>>>request.getParameter("name") + "'" %>
>>>
>>>
>>>-Richard
>>>
>>>-Original Message-
>>>From: sufi malak [mailto:[EMAIL PROTECTED]]
>>>Sent: Tuesday, April 17, 2001 1:16 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: jdbc taglib question ?
>>>
>>>
>>>could you please tell me what's wrong in this line:
>>>select * from description where name like <%=
>>>request.getParameter("name")
>>>%>
>>>
>>>
>>>the file is like this :
>>>..
>>><%@ 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
>>>
>>>
>>>
>>>   
>>> select * from description where name like <%=
>>>request.getParameter("name") %>
>>>   
>>>   
>>>
>>>   
>>>   
>>>..
>>>_
>>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>>
>>>===
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>>DIGEST".
>>>Some relevant FAQs on JSP/Servlets can be found at:
>>>
>>>  http://java.sun.com/products/jsp/faq.html
>>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>>
>>>===
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>>DIGEST".
>>>Some relevant FAQs on JSP/Servlets can be found at:
>>>
>>>  http://java.sun.com/products/jsp/faq.html
>>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>
>>_
>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>
>>===
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>_
>Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".

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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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é : mercredi 18 avril 2001 17:56
À : [EMAIL PROTECTED]
Objet : jsp tomcat reloading problems...


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 spell that
word :)) the changes I made to the page.

The problem started when I changed my OS from win 98 to win 2000 pro. Never
had that problem before. I use tomcat 3.2 (copied the entire folder from win
98 system) and java 1.3.0 on a PIII 550 128MB.

Anyone had the same problem? Any suggestions?

Regards

/Martin


Martin Kjellqvist
cellular: +46 (0)705 - 72 01 87

Teknik i Media Phone: +46 (0)40 97 33 10
Per Weijersgatan 4   Fax: +46 (0)40 97 95 93
S-211 34 Malmö
Webb: http://www.tim.se
E-mail: [EMAIL PROTECTED]


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 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("name")
>%>
> 
>
>Thanks

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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: [EMAIL PROTECTED]
Subject: Unknown column ??


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("name")
%>
  

Thanks


>From: sufi malak <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: jdbc taglib question ?? No rows selected
>Date: Wed, 18 Apr 2001 14:52:58 -
>
>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.
>
>
>
>
>>From: sufi malak <[EMAIL PROTECTED]>
>>Reply-To: A mailing list about Java Server Pages specification and
>> reference <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: jdbc taglib question ???
>>Date: Wed, 18 Apr 2001 12:59:47 -
>>
>>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 Java Server Pages specification and
>>> reference <[EMAIL PROTECTED]>
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: jdbc taglib question ?
>>>Date: Tue, 17 Apr 2001 13:26:57 -0700
>>>
>>>Sufi,
>>>You need single quotes around the string in your like clause.
>>>select * from description where name like '<%=
>>>request.getParameter("name")
>>>%>'
>>>
>>>If that doesn't work you might have to do
>>>select * from description where name like <%= "'" +
>>>request.getParameter("name") + "'" %>
>>>
>>>
>>>-Richard
>>>
>>>-Original Message-
>>>From: sufi malak [mailto:[EMAIL PROTECTED]]
>>>Sent: Tuesday, April 17, 2001 1:16 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: jdbc taglib question ?
>>>
>>>
>>>could you please tell me what's wrong in this line:
>>>select * from description where name like <%=
>>>request.getParameter("name")
>>>%>
>>>
>>>
>>>the file is like this :
>>>..
>>><%@ 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
>>>
>>>
>>>
>>>   
>>> select * from description where name like <%=
>>>request.getParameter("name") %>
>>>   
>>>   
>>>
>>>   
>>>   
>>>..
>>>_
>>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>>
>>>=
==
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>>DIGEST".
>>>Some relevant FAQs on JSP/Servlets can be found at:
>>>
>>>  http://java.sun.com/products/jsp/faq.html
>>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>>
>>>=
==
>>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>>JSP-INTEREST".
>>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>>DIGEST".
>>>Some relevant FAQs on JSP/Servlets can be found at:
>>>
>>>  http://java.sun.com/products/jsp/faq.html
>>>  http://www.esperanto.org.nz/jsp/jspfaq.html
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>>
>>_
>>Get your FREE download of MSN Explorer at http://explorer.msn.com
>>
>>==
=
>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>>JSP-INTEREST".
>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>>DIGEST".
>>Some relevant FAQs on JSP/Servlets can be found at:
>>
>>http://java.sun.com/products/jsp/faq.html
>>http://www.esperanto.org.nz/jsp/jspfaq.html
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>>http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>___

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.setString(2,lName);
prStmt.executeUpdate();
-
PreparedStatement will take care of all single quotes in varibles..
you don't have to bother...

Nishit

-Original Message-
From: Narayan, Karthik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: single quotes and other special characters


> 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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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\default\pagecompile\jsp\_list.java:99: Method
iterator() not found in class java.util.Vector.
Iterator i = v.iterator();
   ^
2 errors


-Message d'origine-
De : Anis Kasmani [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 9 avril 2001 21:01
À : [EMAIL PROTECTED]
Objet : Re: Running dos native commands from java application...


Commands such as dir, copy etc would need to be executed as

rt.exec("cmd /c dir");

do let me know if it worked for u.

Anis



- Original Message -
From: "Padmakar Neelapareddy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 08, 2001 11:28 PM
Subject: Running dos native commands from java application...


> Dear All,
>
> I need to execute DOS native commnads such as "dir","copy","copy x.txt >
> prn"...etc
> from inside a java application.
>
> I tried them using following code
>
> Runtime rt = Runtime.getRuntime();
>  rt.exec("dir");
>  rt.exec("copy x.txt > prn");
>
> But I got following exception
>
> java.io.IOException: CreateProcess: dir error=2
> at java.lang.Win32Process.create(Native Method)
> at java.lang.Win32Process.(Unknown Source)
> at java.lang.Runtime.execInternal(Native Method)
>
> Can any one help me regarding this please ? I want it
> urgently...!
>
> Waiting for your valuable replies
>
> Rgds
> padmakar neelapareddy
>
>
> The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorized. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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
>
>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: [EMAIL PROTECTED]
>Subject: Unknown column ??
>
>
>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("name")
>%>
>   
>
>Thanks
>
>
> >From: sufi malak <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: jdbc taglib question ?? No rows selected
> >Date: Wed, 18 Apr 2001 14:52:58 -
> >
> >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.
> >
> >
> >
> >
> >>From: sufi malak <[EMAIL PROTECTED]>
> >>Reply-To: A mailing list about Java Server Pages specification and
> >> reference <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: jdbc taglib question ???
> >>Date: Wed, 18 Apr 2001 12:59:47 -
> >>
> >>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 Java Server Pages specification and
> >>> reference <[EMAIL PROTECTED]>
> >>>To: [EMAIL PROTECTED]
> >>>Subject: Re: jdbc taglib question ?
> >>>Date: Tue, 17 Apr 2001 13:26:57 -0700
> >>>
> >>>Sufi,
> >>>You need single quotes around the string in your like clause.
> >>>select * from description where name like '<%=
> >>>request.getParameter("name")
> >>>%>'
> >>>
> >>>If that doesn't work you might have to do
> >>>select * from description where name like <%= "'" +
> >>>request.getParameter("name") + "'" %>
> >>>
> >>>
> >>>-Richard
> >>>
> >>>-Original Message-
> >>>From: sufi malak [mailto:[EMAIL PROTECTED]]
> >>>Sent: Tuesday, April 17, 2001 1:16 PM
> >>>To: [EMAIL PROTECTED]
> >>>Subject: jdbc taglib question ?
> >>>
> >>>
> >>>could you please tell me what's wrong in this line:
> >>>select * from description where name like <%=
> >>>request.getParameter("name")
> >>>%>
> >>>
> >>>
> >>>the file is like this :
> >>>..
> >>><%@ 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
> >>>
> >>>
> >>>
> >>>   
> >>> select * from description where name like <%=
> >>>request.getParameter("name") %>
> >>>   
> >>>   
> >>>
> >>>   
> >>>   
> >>>..
> >>>_
> >>>Get your FREE download of MSN Explorer at http://explorer.msn.com
> >>>
> >>>=
>==
> >>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >>>JSP-INTEREST".
> >>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >>>DIGEST".
> >>>Some relevant FAQs on JSP/Servlets can be found at:
> >>>
> >>>  http://java.sun.com/products/jsp/faq.html
> >>>  http://www.esperanto.org.nz/jsp/jspfaq.html
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >>>
> >>>=
>==
> >>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >>>JSP-INTEREST".
> >>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >>>DIGEST".
> >>>Some relevant FAQs on JSP/Servlets can be found at:
> >>>
> >>>  http://java.sun.com/products/jsp/faq.html
> >>>  http://www.esperanto.org.nz/jsp/jspfaq.html
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >>
> >>_
> >>Get y

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 table where name=big
when it should be
select * from table where name='big'

Clayton


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak
Sent: 18 April 2001 17:46
To: [EMAIL PROTECTED]
Subject: Re: Unknown column ??


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
>
>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: [EMAIL PROTECTED]
>Subject: Unknown column ??
>
>
>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("name")
>%>
>   
>
>Thanks
>
>
> >From: sufi malak <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: jdbc taglib question ?? No rows selected
> >Date: Wed, 18 Apr 2001 14:52:58 -
> >
> >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.
> >
> >
> >
> >
> >>From: sufi malak <[EMAIL PROTECTED]>
> >>Reply-To: A mailing list about Java Server Pages specification and
> >> reference <[EMAIL PROTECTED]>
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: jdbc taglib question ???
> >>Date: Wed, 18 Apr 2001 12:59:47 -
> >>
> >>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 Java Server Pages specification and
> >>> reference <[EMAIL PROTECTED]>
> >>>To: [EMAIL PROTECTED]
> >>>Subject: Re: jdbc taglib question ?
> >>>Date: Tue, 17 Apr 2001 13:26:57 -0700
> >>>
> >>>Sufi,
> >>>You need single quotes around the string in your like clause.
> >>>select * from description where name like '<%=
> >>>request.getParameter("name")
> >>>%>'
> >>>
> >>>If that doesn't work you might have to do
> >>>select * from description where name like <%= "'" +
> >>>request.getParameter("name") + "'" %>
> >>>
> >>>
> >>>-Richard
> >>>
> >>>-Original Message-
> >>>From: sufi malak [mailto:[EMAIL PROTECTED]]
> >>>Sent: Tuesday, April 17, 2001 1:16 PM
> >>>To: [EMAIL PROTECTED]
> >>>Subject: jdbc taglib question ?
> >>>
> >>>
> >>>could you please tell me what's wrong in this line:
> >>>select * from description where name like <%=
> >>>request.getParameter("name")
> >>>%>
> >>>
> >>>
> >>>the file is like this :
> >>>..
> >>><%@ 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
> >>>
> >>>
> >>>
> >>>   
> >>> select * from description where name like <%=
> >>>request.getParameter("name") %>
> >>>   
> >>>   
> >>>
> >>>   
> >>>   
> >>>..
> >>>_
> >>>Get your FREE download of MSN Explorer at http://explorer.msn.com
> >>>
>
>>>=
>==
> >>>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >>>JSP-INTEREST".
> >>>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >>>DIGEST".
> >>>Some relevant FAQs on JSP/Servlets can be found at:
> >>>
> >>>  http://java.sun.com/products/jsp/faq.html
> >>>  http://www.esperanto.org.nz/jsp/jspfaq.html
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >>>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >>>
>

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 problems...
>
>
> 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é : mercredi 18 avril 2001 17:56
> À : [EMAIL PROTECTED]
> Objet : jsp tomcat reloading problems...
>
>
> 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 spell that
> word :)) the changes I made to the page.
>
> The problem started when I changed my OS from win 98 to win 2000
> pro. Never
> had that problem before. I use tomcat 3.2 (copied the entire
> folder from win
> 98 system) and java 1.3.0 on a PIII 550 128MB.
>
> Anyone had the same problem? Any suggestions?
>
> Regards
>
> /Martin
>
> 
> Martin Kjellqvist
> cellular: +46 (0)705 - 72 01 87
>
> Teknik i Media Phone: +46 (0)40 97 33 10
> Per Weijersgatan 4   Fax: +46 (0)40 97 95 93
> S-211 34 Malmö
> Webb: http://www.tim.se
> E-mail: [EMAIL PROTECTED]
> 
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Balkrishna R.Parab
> Sent: Wednesday, April 18, 2001 10:22 AM
> To: [EMAIL PROTECTED]
> Subject: Displying Alert
>
>
> 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 box to the
> user. But required to display alert even when browser is minimized.
> 2.  Another way is to write an application and insatll on
> client machine
> which will keep on monitoring database updataion and inturnns display
> Message box. But this requires seperate login. Can i call
> application in jsp
> page so that i can pic up sesion value from the same and can eliminate the
> login screen
>
> Any suggestion/modification or advise  will of great help
>
> Thankx in advance
>
>
> Balkrishna R Parab
> Global TeleSystems Ltd
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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



  
select * from description where name = <%= request.getParameter("name")
%>
  
  
   
  
  
  
  
  
  
  

  
  No rows retrieved.
 rows retrieved.


I am calling this file  from another jsp file called pager-jdbc.jsp:
..

   
..

This file is sending correctly whatever name I click in it to
viewprogram.jsp .

NOW FOR EXAMPLE :
When I click in the link that has the text : Big Picture Training
I got error saying :
javax.servlet.ServletException: java.sql.SQLException: Syntax error or
access violation: You have an error in your SQL syntax near 'Picture
Training' at line 1

When I click to another one, for example : Business Writting
I got this error :
javax.servlet.ServletException: java.sql.SQLException: Syntax error or
access violation: You have an error in your SQL syntax near 'Writting' at
line 1

IT LOOKS LIKE THE FIRST WORD IN THE STRING IS TRUNCATED, I don't understand
why ??




>From: Clayton Nash <[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 18:09:37 +0100
>
>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 table where name=big
>when it should be
> select * from table where name='big'
>
>Clayton
>
>
>-Original Message-
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak
>Sent: 18 April 2001 17:46
>To: [EMAIL PROTECTED]
>Subject: Re: Unknown column ??
>
>
>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
> >
> >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: [EMAIL PROTECTED]
> >Subject: Unknown column ??
> >
> >
> >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("name")
> >%>
> >   
> >
> >Thanks
> >
> >
> > >From: sufi malak <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: jdbc taglib question ?? No rows selected
> > >Date: Wed, 18 Apr 2001 14:52:58 -
> > >
> > >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.
> > >
> > >
> > >
> > >
> > >>From: sufi malak <[EMAIL PROTECTED]>
> > >>Reply-To: A mailing list about Java Server Pages specification and
> > >> reference <[EMAIL PROTECTED]>
> > >>To: [EMAIL PROTECTED]
> > >>Subject: Re: jdbc taglib question ???
> > >>Date: Wed, 18 Apr 2001 12:59:47 -
> > >>
> > >>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 Java Server Pages specification and
> > >>> reference <[EMAIL PROTECTED]>
> > >>>To: [EMAIL PROTECTED]
> > >>>Subject: Re: jdbc taglib question ?
> > >>>Date: Tue, 17 Apr 2001 13:26:57 -0700
> > >>>
> > >>>Sufi,
> > >>>You need single quotes around the string in your like clause.
> > >>>select * from description where name like '<%=
> > >>>request.getParameter("name")
> > >>>%>'
> > >>>
> > >>>If

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 certain point?

Thanks

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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:service,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=1,\
maxCapacity=30,\
   props=user=username;password=password,\
 allow=guest

What would the DB connection object be equal to in this case.

Thanks

Karthik


-Original Message-
From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: single quotes and other special characters


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.setString(2,lName);
prStmt.executeUpdate();
-
PreparedStatement will take care of all single quotes in varibles..
you don't have to bother...

Nishit

-Original Message-
From: Narayan, Karthik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: single quotes and other special characters


> 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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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)
>
> HTH
>
>
> At 02:50 PM 4/17/2001 -0400, Paul Meshkovsky wrote:
>
>
>   java:64: Method qetParameter(java.lang.String) not found in interface
>   javax.servlet.http.HttpServletRequest.
>  String search = request.qetParameter("searchString");
>
> === To
> unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 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: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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());
}
---

Nishit
-Original Message-
From: Tinou Bao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: execute .bat/.exe file with Servlets


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 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: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 temporary files in the hard disk, that leads us to my next
question...

2) How do I store the names of the files I've just created for that
particular user for future processing? Can this be done passing an array or
Vector through the session?? How is this done?

or

Should I create a temporal session-scoped bean to store the names and other
information, and then destroy it after the process is finished??

Thanks a lot in advance!!!

Luis Javier

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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.  I 
have a class called MenuItem which has two properties, a menu title and an action to 
call when that menu item is selected.  In my servlet init method I create an array of 
MenuItem objects and put that array in a HashMap object, which contains multiple 
menus.  I then have one JSP file that is included in other JSP pages that takes 2 
parameters, menu you want and current page.  The JSP then generates the menu.  All my 
java classes are put in a JAR file and placed in the /WEB-INF/lib 
directory.  the JSP files are in the  directory.  If I recreate my JAR 
file and overwrite the existing file, I get a ClassCastException when trying to cast 
the return from the HashMap get command to my MenuItem array.  I understand that the 
problem has to do with a classloader and I can solve the problem by restarting Tomcat. 
 This is fairly easy with WinNT and the remote Server Manager.  !
NOTE:  All development is on NT workstations and servers.  Production is on a RS/6000.

This is not a problem when there is one developer working on a web server, but in the 
near future our organization will have multiple developers working on various systems. 
(One to three developers per system.)  I could see potential problems with restarting 
Tomcat time after time and from the archive that seemed to be the easiest solution.  
So . . .

1)  Is there something I can do different in my webapp code to avoid the 
ClassCastException?

2)  In organizations where there are multiple developers, how do you organize your 
code?  Do you have a central repository where code is checked out and brought down to 
each developers machine?

3)  In organizations where there are multiple developers, how do you organize your 
webserver?  Does everyone test on one web server or does everyone have a web server on 
their individual machine.

4)  In organizations where there are multiple developers, do you have any other advice?

TIA,


Gerry Scheetz
Web Application Development
Global Information Technology Division
TRW - S&ITG
Helena, Montana, USA
[EMAIL PROTECTED]
(406) 594-1878

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 back to
> the bean method.
>
> Hope this will help.
>
> Regards
> John
>
>
>
>
> Bob Carpenter <[EMAIL PROTECTED]>@java.sun.com> on 04/16/2001 12:02:56
> PM
>
> Please respond to A mailing list about Java Server Pages specification
>   and reference <[EMAIL PROTECTED]>
>
> Sent by:  A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Is it possible to call a bean method via an HTML button
>   onClick?
>
>
> Within a JSP file, I'm trying to figure out how to call a
> bean setter method as a result of a button click, like the
> following:
>
>   
>
>   ...
>
>   onClick=" property="foo" value="bar" />">
>
> I've tried several different attempts at this, but no
> success.
>
> Is this possible? Or, is there an alternative that achieves
> the same goal?
>
> Thanks,
>
> --BobC
>
> ===
>
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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
>
>
>
>
> Bob Carpenter <[EMAIL PROTECTED]>@java.sun.com> on 04/16/2001 12:02:56
> PM
>
> Please respond to A mailing list about Java Server Pages specification
>   and reference <[EMAIL PROTECTED]>
>
> Sent by:  A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
>
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  Is it possible to call a bean method via an HTML button
>   onClick?
>
>
> Within a JSP file, I'm trying to figure out how to call a
> bean setter method as a result of a button click, like the
> following:
>
>   
>
>   ...
>
>   onClick=" property="foo" value="bar" />">
>
> I've tried several different attempts at this, but no
> success.
>
> Is this possible? Or, is there an alternative that achieves
> the same goal?
>
> Thanks,
>
> --BobC
>
> ===
>
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 servlet?

if so , how?

thanks

yan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 characters


> > 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
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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-
From:   Narayan, Karthik [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, April 19, 2001 2:51 AM
To: [EMAIL PROTECTED]
Subject:Re: single quotes and other special
characters

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:service,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=1,\
maxCapacity=30,\
   props=user=username;password=password,\
 allow=guest

What would the DB connection object be equal to in this
case.

Thanks

Karthik


-Original Message-
From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:41 PM
To: [EMAIL PROTECTED]
Subject: Re: single quotes and other special characters


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.setString(2,lName);
prStmt.executeUpdate();
-
PreparedStatement will take care of all single quotes in
varibles..
you don't have to bother...

Nishit

-Original Message-
From: Narayan, Karthik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 12:07 PM
To: [EMAIL PROTECTED]
Subject: single quotes and other special characters


> 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


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsu

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 relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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 to me the major differences,
and the issues I'm going to face when I start porting from Tomcat to WebLogic.
I understand that there are lots of differences in "deployment", but what
about coding? Is it the same?
Thanks a ton.

-Erwin

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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. Like MSN or Yahoo messanger ?

Thankx for respaonse

Have a nice day

Balkrishna R Parab
Global TeleSystems Ltd


-Original Message-
From:   Fetyko Jan [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, April 18, 2001 7:57 PM
To: [EMAIL PROTECTED]
Subject:Re: [JSP-INTEREST] Displying Alert

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 Development
825 N.Broadway
Oklahoma City
73102
Phone: (405) 232-4545 x231
Fax: (405) 232-4550
http:\\www.phase2online.com




"Balkrishna
R.Parab" To:
[EMAIL PROTECTED]
   Subject: Displying
Alert
Sent by: A
mailing list
about Java Server
Pages
specification and
reference



04/18/01 09:21 AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference






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 box
to the
user. But required to display alert even when browser is minimized.
2.  Another way is to write an application and insatll on client
machine
which will keep on monitoring database updataion and inturnns
display
Message box. But this requires seperate login. Can i call
application in
jsp
page so that i can pic up sesion value from the same and can
eliminate the
login screen

Any suggestion/modification or advise  will of great help

Thankx in advance


Balkrishna R Parab
Global TeleSystems Ltd


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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: Thursday, April 19, 2001 2:21 PM
Subject: [JSP-INTEREST] Whick is the best choice?


> 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 relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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: Thursday, April 19, 2001 11:21 AM
Subject: Whick is the best choice?


> 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 relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



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, jakarta-tomcat-3.2.1, jdk1.2.2

 Thank you,

( "Ichiro Suzuki" is No.1 !!)
---
 Yasuo Itoh <[EMAIL PROTECTED]>
 office:Cresc Corporation 
4-5-12-201 Shiba Minato-ku Tokyo Japan 108-0014
TEL/FAX 03-5484-7885
 home:  <[EMAIL PROTECTED]>

---

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


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]An: [EMAIL PROTECTED]
OM>  Kopie:
Gesendet von: A  Thema:  Syntax error or access violation 
(sql)
mailing list
about Java Server
Pages
specification and
reference



18.04.2001 20:01
Bitte antworten
an A mailing list
about Java Server
Pages
specification and
reference






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



  
select * from description where name = <%= request.getParameter("name")
%>
  
  
   
  
  
  
  
  
  
  

  
  No rows retrieved.
 rows retrieved.


I am calling this file  from another jsp file called pager-jdbc.jsp:
..

   
..

This file is sending correctly whatever name I click in it to
viewprogram.jsp .

NOW FOR EXAMPLE :
When I click in the link that has the text : Big Picture Training
I got error saying :
javax.servlet.ServletException: java.sql.SQLException: Syntax error or
access violation: You have an error in your SQL syntax near 'Picture
Training' at line 1

When I click to another one, for example : Business Writting
I got this error :
javax.servlet.ServletException: java.sql.SQLException: Syntax error or
access violation: You have an error in your SQL syntax near 'Writting' at
line 1

IT LOOKS LIKE THE FIRST WORD IN THE STRING IS TRUNCATED, I don't understand
why ??




>From: Clayton Nash <[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 18:09:37 +0100
>
>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 table where name=big
>when it should be
> select * from table where name='big'
>
>Clayton
>
>
>-Original Message-
>From: A mailing list about Java Server Pages specification and reference
>[mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak
>Sent: 18 April 2001 17:46
>To: [EMAIL PROTECTED]
>Subject: Re: Unknown column ??
>
>
>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
> >
> >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: [EMAIL PROTECTED]
> >Subject: Unknown column ??
> >
> >
> >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("name")
> >%>
> >   
> >
> >Thanks
> >
> >
> > >From: sufi malak <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > > reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: jdbc taglib question ?? No rows selected
> > >Date: Wed, 18 Apr 2001 14:52:58 -
> > >
> > >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.
> > >
> > >
> > >
> > >
> > >>From: sufi malak <[EMAIL PROTECTED]>
> > >>Reply-To: A mailing list about Java Server Pages specification and
> > >> reference <[EMAIL PROTECTED]>
> > >>To: [EMAIL PROTE

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 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 certain point?

Thanks

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets