Re: getSession() and getSession(true)

2000-11-23 Thread wensj

request.getSession(false),return a null value when there is no current session.
request.getSession(true),is same as request.getSession().
return current session or a new session.
- Original Message -
From: "Micha Trojanowski" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 5:07 PM
Subject: getSession() and getSession(true)


 Hi. I've got a question:
 what is the difference between calling:
 request.getSession();
 and
 request.getSession(true);

 Their descriptions in javadoc are unclear for me.
 Thanks a lot for any responses

 Regards

 Michal

 ===
 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: JSP in Apache

2000-11-23 Thread wensj

you must install gnujsp engineer or some jsp engineer else.
- Original Message -
From: "Marcos" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 23, 2000 7:50 PM
Subject: JSP in Apache


 hi,

 i am running servlets over Apache with JServ.
 i would like to know how is the easiest way to run JSP over Apache?
 i am not talking about tomcat.

 any suggestion will be pleased,

 thanks in advance,

 marcos

 --
 m a r c o s @ i v a l . e s

 ===
 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: JSP to HTML call

2000-09-22 Thread wensj

hi:
i try this:
   %
String htmName="some.htm";
   %
jsp:include page="%=htmName%" flush="true"/

it works fine.

- Original Message -
From: "Shibu Up" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 22, 2000 12:11 PM
Subject: JSP to HTML call


 Hello everybody ,
I have a trouble while including HTML page in JSP.I cannot put @include
 tag, because the name of HTML is
 changes dynamically.  The main JSP is thrown to the front end on HTTP POST
 request.This prevents me  from using
 jsp:include also.RequestDispatcher(htmlpage).include(request,response) also
 is not working.
 If I change the HTML  to jsp everything works fine.  Changing to Frames also
 will work.   I don't want to do this.  Can anybody suggest an alternative?

 Regards
 Shibu

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: Urgent please help!

2000-09-19 Thread wensj

hi:
you can try
%
String tmpb=request.getParameter("txt1");
int Tmpb1=0;
 //define variant who equals the part of integer
int Tmpb2=0;
// define variant who equals the part of decimal

if(tmpb.indexOf(".",0)!=-1)
{
Tmpb1=Integer.parseInt(tmpb.substring(0,tmpb.indexOf(".",0));
Tmpb2=Integer.parseInt(tmpb.substring(tmpb.indexOf(".",0)+1,tmpb.length()));
}else{
Tmpb1=Integer.parseInt(tmpb);

}

   //then you can compare this two parts of B with the same parts of A

%


- Original Message -
From: "Leena Albert" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 19, 2000 8:51 PM
Subject: Urgent please help!


 Hi,
 I have a small problem in using datatype. In a javabean, I am getting a value "A" 
from pl/sql procedure and am comparing it with a value "B" entered in a textbox , 
that is "B" should be greater than or equal to "A". I have declared "B" as double in 
the bean, as i need to use a decimal value like 1234578899.12345678 .

 double B = Double.parseDouble(request.getParameter("txt1"));

 Eventhough if i give value bigger than A, it is giving the value as low. If i get 
less value for "A" and if i give bigger value than that for "B", it works. I feel 
that, the value is getting truncated while getting the parameter from the form .
 What datatype can i use, so that even if i use big values, it should compare?

 Thanks in advance,
 Leena




 _
 Get Your Free Email At, http://www.rediffmail.com

 For fabulous shopping deals visit: http://www.rediff.co.in/shopping/index.html

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: How to display a different language text in the Browser?

2000-09-06 Thread wensj

try:
eg.
%
String aa=request.getParameter("formtag");
aa=new String(aa.getBytes("ISO-8859-1"),unicode);
//replace unicode use your wantting.
out.println(aa);
%

- Original Message -
From: Rathna [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 06, 2000 8:14 PM
Subject: How to display a different language text in the Browser?


 Hi all, How do i display a differnet language string in the
 browser? Our requirement is that we have a HTML page
 which conatins the english text and the particular part of the
 text should be in greek langage.

 It is very urgent,any information or the links will be very
 help full.

 we are using : Jrun 2.1,jws,netscape 4.7.

 --
 Cheers,
 rathna

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: javax.servlet.jsp

2000-09-05 Thread wensj

if you install tomcat,
in tomcat server,in its default URL,you may see it!
- Original Message -
From: Marc Krisjanous [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 06, 2000 1:05 PM
Subject: javax.servlet.jsp


 Hi all,
 does anyone have any links to information about how to use the
 javax.servlet.jsp package? I have never seen it before.

 Best Regards

 Marc

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: Tomcat with IIS

2000-08-31 Thread wensj

it can!
- Original Message -
From: Erwan TROEL [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 31, 2000 4:51 PM
Subject: Tomcat with IIS


 Is It possible to use tomcat with IIS?

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: URGENT!Your kind help is earnestly solicited

2000-06-16 Thread wensj

import jdk api

- Original Message -
From: Sujoy Kumar Bose [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 13, 2000 8:22 PM
Subject: URGENT!Your kind help is earnestly solicited


 Hi All,
 Could anybody kindly tell me why the following error is coming ?

 The scenario is like this :-

 1.Windows 98
 2.GNUJSP
 3.APACHE Jserv
 4. Apache WebServer

 Directory Structure:
 C:\
EcommPkg
Apache
Apache Jserv
GNUJSP
mybean


 The following error is coming when I am trying to access a Database bean
 i.e. DataInsertion.java  file thru the
 Form2.jsp  and I quote the error below as shown in the IE 4.0 browser :-
 ( The bean is kept in a package named as  mybean  which is in mybean
 directory under the EcommPkg directory which is my root directory under
 which I have the above mentioned 2,3,4 )

 M025 /jsp/MyPages/Form2.jsp:

 java.lang.NoClassDefFoundError: mybean/DataInsertion
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Compiled Code)
 at org.gjt.jsp.JspServlet$Page.load(JspServlet.java:929)
 at org.gjt.jsp.JspServlet$Page.needToRecompile(Compiled Code)
 at org.gjt.jsp.JspServlet$Page.process(Compiled Code)
 at org.gjt.jsp.JspServlet.service(JspServlet.java:284)
 at javax.servlet.http.HttpServlet.service(Compiled Code)
 at org.apache.jserv.JServConnection.processRequest(Compiled Code)
 at org.apache.jserv.JServConnection.run(Compiled Code)
 at java.lang.Thread.run(Compiled Code)



 With Regards,

 Sujoy.

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
 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".
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: how to insert a filed consisting of single quote in msaccess?

2000-06-05 Thread wensj

hi:
i'm met this question,this because your text field include character "\'".
in SQL statement,it's look as separater.
   eg: when you insert "b'day" as the third field into table.
SQL statement is:insert into table values('aa','bb','b'day'.)
at this time, it cause SQLException: "comma wanting";
how can we aviod this problem?
i'm througth two ways
one is: not permit input "\'" at text field.
the other is: before insert,use other character replace it.
eg:
   % String tmpstr=request.getParameter("strwithspe");
tmpstr=tmpstr.replace("\'","~");
%
user "~" replace "\'",
when you get data from database,you must replace character "~" with "\'".

ok?

- Original Message -
From: Kotireddy Mutyam [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 05, 2000 3:56 PM
Subject: how to insert a filed consisting of single quote in msaccess?


 hi friends,
 I am working on JSP using JRun with MSAccess as a Database.
 I am not able to insert a field for example if i enter the value in text
   field like "b'day" it is throwing exception. How to overcome the
   error?
 TIA
 kotireddy
 [EMAIL PROTECTED]

 ===
 To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
 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".
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: how to insert a filed consisting of single quote in msaccess?

2000-06-05 Thread wensj

Hi  Kishore Raghavan:
i'm tried the method you offered. it was correct for  a text  tag,
but it wasn't  correct for  a  textarea tag
in a form.how can i  make code for the  textarea tag.
eg:
textarea name=txtquestionsomething with quote/textarea

String getStr=request.getParameter("txtquestion");
String SQLstr="insert into table values('" + getStr +"')";
its get SQLException "comma wanting";
   please help me to solve this question!!

- Original Message -
From: Kishore Raghavan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 05, 2000 5:51 PM
Subject: Re: how to insert a filed consisting of single quote in msaccess?


 Wensj,

 You do lot of effort in getting rid of characters like quotes etc... How
 many such characters will you keep replacing ???

 Use PreparedStatements in your inserts. All your problems will get solved
 automatically. Tap the power of JDBC please

 Kishore Raghavan


 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of wensj
 Sent: Monday, June 05, 2000 2:23 AM
 To: [EMAIL PROTECTED]
 Subject: Re: how to insert a filed consisting of single quote in
 msaccess?


 hi:
 i'm met this question,this because your text field include character
 "\'".
 in SQL statement,it's look as separater.
eg: when you insert "b'day" as the third field into table.
 SQL statement is:insert into table values('aa','bb','b'day'.)
 at this time, it cause SQLException: "comma wanting";
 how can we aviod this problem?
 i'm througth two ways
 one is: not permit input "\'" at text field.
 the other is: before insert,use other character replace it.
 eg:
% String tmpstr=request.getParameter("strwithspe");
 tmpstr=tmpstr.replace("\'","~");
 %
 user "~" replace "\'",
 when you get data from database,you must replace character "~" with
 "\'".

 ok?

 - Original Message -
 From: Kotireddy Mutyam [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 05, 2000 3:56 PM
 Subject: how to insert a filed consisting of single quote in msaccess?


  hi friends,
  I am working on JSP using JRun with MSAccess as a Database.
  I am not able to insert a field for example if i enter the value in text
field like "b'day" it is throwing exception. How to overcome the
error?
  TIA
  kotireddy
  [EMAIL PROTECTED]
 
 
 ===
  To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 JSP-INTEREST".
  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".
 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".
 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".
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