Problem with ResultSet

2001-06-19 Thread Huynh Tin

Hi All
I have some problem when i use Connection, ResultSet objects.
I can not move to first ResultSet when cusor is being at the end of
ResultSet
I used con.createStatement method with some parameters to allow to do this
problem, but i still can not...
For detail, i can not use some methods like ResultSet.first() or
ResultSet.beforeFirst()

!--
Statement stmt = con.createStatement(
  ResultSet.TYPE_SCROLL_INSENSITIVE,
  ResultSet.CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery(SELECT a, b FROM TABLE2);
--

Anybody help me how i can do this... or any example about this ...
Thank you !
Best Regards !
Huynh Tin

===
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



No Subject

2001-06-19 Thread John Neil N. Sangalang

Hi,

Do you know where I can find a JSP site offering free quick poll? or anyone
of you knows how to build or has a code in creating a quick/web poll in JSP?

Thanks in advance.

===
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: how to display a string with white space and double quotes in text box

2001-06-19 Thread Charles Luo

in your test1.jsp

you should use
input type=text name=txttest1 value='%=test%'

then you will see the difference.

charles
-Original Message-
From: Juan Fu [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2001 17:40
To: [EMAIL PROTECTED]
Subject: how to display a string with white space and double quotes in
text box


Hi,

   I am currently using JSP to write a HTML page. I am encountering a string
problem. Here is my code.

test.htm 
   !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleUntitled/title
/head

body
form name=test method=post action=test1.jsp
input type=text name=txt
input type=submit value=Submit
/form
/body
/html


-- test1.jsp --

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleUntitled/title
/head

body
% String test=request.getParameter(txt);
   System.out.println(test);

   %
form name=test1
input type=text name=txttest1 value=%=test%
/form


/body
/html


If user entered a string like this:
   He said:I saw you yesterday.

Then when user clicks the submit button, only He said: is displayed in the
test1.jsp page. Can anyone tell me how to make the string contains with
white space, double quote and single quote work?
Thank you in advance.

Juan


_
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



Encrypting sound fils

2001-06-19 Thread Vinay Talwar

Hello Every body,
 We are building a application, in which we want to encrpt the sound
files i.e. (.wav) files initially. When we are going to play those files we
will decrypt it and play.any suggestion how is it possible
in as best as possible.

Thanks in advance


Vinay Kumar Talwar

JIL Information Technology Ltd.
(JaiPrakash Group of Companies)
Sahibabad India
Tel : +91-120-4777881 # 2393/2400
[EMAIL PROTECTED], [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



Entry/Controller Servlet Problem

2001-06-19 Thread Philip Weaver

Hi -

I'm trying to configure a controller servlet to handle *any* and every
request sent to the web server. Inside the servlet, when I use
RequestDispatcher to forward to a JSP page, my servlet continually gets
called until I get the error, too many servlet includes. Essentially, it
seems as though the controlling servlet is being called again and again upon
this forwarding action. How should I resolve this and still have the ability
to have the controller servlet at the top level?

Here's part of the config file:

servlet-mapping url-pattern='/*' servlet-name='entry'/
servlet servlet-name='entry' servlet-class='ControllerServlet'/

Thanks,
Philip



Philip Weaver, maker
http://www.philmaker.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



properties in web.xml ??

2001-06-19 Thread sufi malak

Hi, I am still have the same error :
Error: 503
Location: /fvote/servlet/fastvote
java.io.FileNotFoundException: /WEB-INF/fv.properties (The system cannot
find the path specified)

Service is permanently unavailable


the web.xml  is like this :
.
servlet
servlet-namefastvote/servlet-name
servlet-classcom.virtua.fv.FastVoteServlet/servlet-class
init-param
param-nameconfig.file/param-name
param-value/WEB-INF/fv.properties/param-value

/init-param
  /servlet
...
_
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: properties in web.xml ??

2001-06-19 Thread Brad Cox

Put fv.properties in your classpath; e.g. the WEB-INF/classes that contains
the referencing class. WEB-INF is not in your classpath.

On Tuesday, June 19, 2001, at 09:51 AM, sufi malak wrote:

 properties
---
For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
Brad Cox [EMAIL PROTECTED] 703 361 4751

===
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: properties in web.xml ??

2001-06-19 Thread sufi malak

it still does not work.

From: Brad Cox [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: properties in web.xml ??
Date: Tue, 19 Jun 2001 10:05:38 -0400

Put fv.properties in your classpath; e.g. the WEB-INF/classes that contains
the referencing class. WEB-INF is not in your classpath.

On Tuesday, June 19, 2001, at 09:51 AM, sufi malak wrote:

properties
---
For industrial age goods there were checks and credit cards.
For everything else there is http://virtualschool.edu/mybank
Brad Cox [EMAIL PROTECTED] 703 361 4751

===
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



Access

2001-06-19 Thread Gemma Montero

Hi, I am new with JSP and I am trying to connect with Access and my
problem is that i have a record of type Memo and I don`t
Know how to get it
If it was String,  I will have to use resultset.getString(name)
and with Memo?  resultset.getXXX

thanks and sorry for my english
Gemma

===
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



Setting Locale

2001-06-19 Thread Dharmalingam, Hariharalingam (CTS)

HI all

Can some one help me in solving the follwoing problem. I am developing an
internationalization tag. I have two tags(main tag and message tag). Messag
tag is to retrive the message form a .properties file.

main tag has attributes lang and country, this will create the Locale
object. The message tag is an inner tag. will take the locale object from
the main tag and will retrive the message.

I have the following lines of code in my jsp.


i18n:main language=ja country=JP
 i18n:message baseName=loginbundle key=prompt/
/i18n:main

i18n:main language=fr country=FR
 i18n:message baseName=loginbundle key=user/
/i18n:main

I am setting the locale inside the main tag's doStartTag() method .
HttpServletResponse response = null;
 response = (HttpServletResponse)pageContext.getResponse();
response.setLocale(locale);

During the display I can see the values for French only. The japanese values
are displayed in the form of  '?' marks.

If I use the following code only in my JSP

i18n:main language=ja country=JP
 i18n:message baseName=loginbundle key=prompt/
/i18n:main

The Japanese characters are displayed properly, the output is perfect.



If I use the following code in my JSP, the ouput is perfect .

%
Locale locale1 = new Locale(fr, FR);
  ResourceBundle bundleObject1 =
ResourceBundle.getBundle(loginbundle, locale1);
  response.setLocale(locale1);
  out.println(bundleObject1.getString(user));

%
 br
 hr

%

 Locale locale = new Locale(ja, JP);
 ResourceBundle bundleObject =
ResourceBundle.getBundle(loginbundle, locale);
 response.setLocale(locale);
 out.println(bundleObject.getString(greeting));
%

Can any one tell me what the exactt problem is when I use the Tag.



Regards,
Harry.

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.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: Access

2001-06-19 Thread King Maurice

Don't use accesss alot of bugs..use something else, like oracle or sql7

- Original Message -
From: Gemma Montero [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 11:08 AM
Subject: Access


 Hi, I am new with JSP and I am trying to connect with Access and my
 problem is that i have a record of type Memo and I don`t
 Know how to get it
 If it was String,  I will have to use resultset.getString(name)
 and with Memo?  resultset.getXXX

 thanks and sorry for my english
 Gemma


===
 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: Setting Locale

2001-06-19 Thread Lance Lavandowska

Why re-invent the wheel?

http://jakarta.apache.org/taglibs/doc/i18n-doc/intro.html

Lance

- Original Message -
From: Dharmalingam, Hariharalingam (CTS) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 9:54 AM
Subject: Setting Locale


 HI all

 Can some one help me in solving the follwoing problem. I am developing an
 internationalization tag. I have two tags(main tag and message tag).
Messag
 tag is to retrive the message form a .properties file.

===
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: Access

2001-06-19 Thread Oleg V Alexeev

Hello Gemma,

Tuesday, June 19, 2001, 7:08:13 PM, you wrote:

GM Hi, I am new with JSP and I am trying to connect with Access and my
GM problem is that i have a record of type Memo and I don`t
GM Know how to get it
GM If it was String,  I will have to use resultset.getString(name)
GM and with Memo?  resultset.getXXX

Access is not good way..  Just as odbc bridge from sun.

I think that memo mapped to the java.sql.Clob - use this class to work
with it.

Clob clob = (Clob)rs.getObject( document_text );
InputStream is = clob.getAsciiStream();
byte[] result = new byte[ is.available() ];
is.read( result, 0, is.available() );
text = new String( result );

--
Best regards,
 Olegmailto:[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



struts1.0 does not work

2001-06-19 Thread sufi malak

Hi, I have just installed struts-1.0 in tomcat321 in windows2000,
in tomcat\lib I have the following jar files :
ant.jat jasper.jar jaxp.jar log4j.jar mail.jar mm.mysql-2.0.4-bin.jar
parser.jar servlet.jar  webserver.jar

I put struts-example.jar in tomcat\webapps , and I added in server.xml a
context called struts-example and restart tomcat.

I went to : http://mil2wwds10/struts-example/
and  there I can see two links :
Register with the MailReader Demonstration Application
Log on to the MailReader Demonstration Application

But when clicking on them, it said The page cannot be found

Please help.
Sufi
_
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



path

2001-06-19 Thread Duc Nguyen
Hi,
I am new with JSP, I am trying to set up JRUN3.1 Developer Edition to learn Servlet and JSP. I don't know how to set the path for the servlet.jar so what when I compile servlet I don't have to type in the whole path. Can anyone help me please.

Thanks,
DucGet 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: struts1.0 does not work

2001-06-19 Thread M. Simms

UhDoesn't Tomcat's built-in HTTP server listen on port 8080 ?

http://mil2wwds10:8080/struts-example/

 -Original Message-
 From: A mailing list about Java Server Pages specification and reference
 [mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak
 Sent: Tuesday, June 19, 2001 1:22 PM
 To: [EMAIL PROTECTED]
 Subject: struts1.0 does not work


 Hi, I have just installed struts-1.0 in tomcat321 in windows2000,
 in tomcat\lib I have the following jar files :
 ant.jat jasper.jar jaxp.jar log4j.jar mail.jar mm.mysql-2.0.4-bin.jar
 parser.jar servlet.jar  webserver.jar

 I put struts-example.jar in tomcat\webapps , and I added in server.xml a
 context called struts-example and restart tomcat.

 I went to : http://mil2wwds10/struts-example/
 and  there I can see two links :
 Register with the MailReader Demonstration Application
 Log on to the MailReader Demonstration Application

 But when clicking on them, it said The page cannot be found

 Please help.
 Sufi
 _
 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



Jsp Form

2001-06-19 Thread King Maurice

I am encoutering a small problem.

I have a jsp page that allows you to enter data then submit the form

Here is the scenario:

When the page is first reendered  it allows you to hit the reset button, and
makes changes to the input fields.
Once you submit it and get a validation page and want to make changes, you
hit a button which redirects you to the begging page,
I have a session that remembers your last input, when hitting the reset
button it doesn't respond clear the fields, it only clears when you first
encounter the page not after you want to make changes,

===
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



request.getInputStream()

2001-06-19 Thread Abhijeet Surve

guys..

i am using request.getInputStream() in one of my jsp pages. however
if i do so i am not permitted to use any of the getParameter() methods
after the above usage.

is there any other way by which i can accomplish the same?

thanx
abhi
_
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: request.getInputStream()

2001-06-19 Thread Chris Pratt

Nope,
request.getParameter() has to process the same request body that
request.getInputStream() is returning.  So once you call one of those, the
other is invalid.
(*Chris*)

- Original Message -
From: Abhijeet Surve [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 11:56 AM
Subject: [JSP-INTEREST] request.getInputStream()


 guys..

 i am using request.getInputStream() in one of my jsp pages. however
 if i do so i am not permitted to use any of the getParameter() methods
 after the above usage.

 is there any other way by which i can accomplish the same?

 thanx
 abhi
 _
 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


_
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: Jsp Form

2001-06-19 Thread King Maurice

Thanks for the feedback.

- Original Message -
From: Amy Aldredge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 3:18 PM
Subject: Re: Jsp Form


I am assuming that you are writing back the fields into the input boxes.

reset does not necessarily clear fields.  It resets them to their default
values if they are available, hence the behavior you are seeing.

So, unless you want to do some custom javascript with it, that is what you
get.



 [EMAIL PROTECTED] 06/19/01 02:49PM 
I am encoutering a small problem.

I have a jsp page that allows you to enter data then submit the form

Here is the scenario:

When the page is first reendered it allows you to hit the reset button, and
makes changes to the input fields.
Once you submit it and get a validation page and want to make changes, you
hit a button which redirects you to the begging page,
I have a session that remembers your last input, when hitting the reset
button it doesn't respond clear the fields, it only clears when you first
encounter the page not after you want to make changes,

===
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=P
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets

===
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: response.sendRedirect(...) is taking page from cache

2001-06-19 Thread Duane Morse

Try adding a URL variable which has a random number as a value -- that's the
standard way
to get around caching problems (I'm sorry to say).

-Original Message-
From: St. Louis, Thomas (CRD) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: response.sendRedirect(...) is taking page from cache


I have a page that submits a request to a servlet and on certain conditions
the servlet performs a
response.sendRedirect(...) right back to itself.  Is there anyway to force
the browser to not grab
the page from cache.  I have the html tags
   META name=Cachecontrol value=no-cache but this still does not seem
to do anything.  Any
thoughts on how to override taking the page from cache?

Thanks for your help!
 g GE Corporate Research  Development
 __
  Tom St.Louis
  GE Corporate Research  Development
  One Research Circle, K1-5C39C
  Schenectady, NY  12309
  Phone: (518) 387-4900  Dial Comm: 8*833-4900
  Email: [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



XML Equivalent Tags - are they recommended ?

2001-06-19 Thread Tarun Ramakrishna Elankath

Hi all,
   I apologize if anybody gets miffed at this pedantic question.
  Is it recommended to use the alternate XML based syntax for directives,
scriptlets  declarations ? For example is it okay to use
jsp:declaration.../jsp:declaration within a jsp:root/jsp:root
element  instead of a %! ... %. What are the pros / cons (if any) of
adopting the XML based syntax ?

Thank you,
Tarun

===
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: XML Equivalent Tags - are they recommended ?

2001-06-19 Thread Hans Bergsten

Tarun Ramakrishna Elankath wrote:

 Hi all,
I apologize if anybody gets miffed at this pedantic question.
   Is it recommended to use the alternate XML based syntax for directives,
 scriptlets  declarations ? For example is it okay to use
 jsp:declaration.../jsp:declaration within a jsp:root/jsp:root
 element  instead of a %! ... %. What are the pros / cons (if any) of
 adopting the XML based syntax ?

The XML equivalents were not completely defined in JSP 1.1, and many
containers (notably the reference implementation, Tomcat 3.x) doesn't
support them. So I suggest that you don't use them.

JSP 1.2 is a different story, though. The complete XML representation
of a JSP page is defined in this spec. But the XML format is much
more verbose than the current format, and requires all template data
to be within CDATA blocks, etc. If you write JSP by hand, you'll
probably want to stick to the current syntax even with JSP 1.2. The
XML representation is primarily intended for tools.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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



No Subject

2001-06-19 Thread Hans Bergsten

John Neil N. Sangalang wrote:

 Hi,

 Do you know where I can find a JSP site offering free quick poll? or anyone
 of you knows how to build or has a code in creating a quick/web poll in JSP?

http://TheJSPBook.com/examples/ch11/poll.jsp

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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: XML Equivalent Tags - are they recommended ?

2001-06-19 Thread Tarun Ramakrishna Elankath

Thanks for the info,
Writing template data within CDATA blocks doesnt particularly appeal to
me :-) . I guess I will sacrifice the benefit of manipulating my JSP as an
XML document, and stick to the tried  tested approach.
By the way I found your tips at
http://java.oreilly.com/news/jsptips_1100.html to be very good 
interesting. Its a great condensed version that answers many of the
questions that have been posted on this list. I just stumbled across it a
bit late.

Tarun.
- Original Message -
From: Hans Bergsten [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 3:19 AM
Subject: Re: XML Equivalent Tags - are they recommended ?


 Tarun Ramakrishna Elankath wrote:
 
  Hi all,
 I apologize if anybody gets miffed at this pedantic question.
Is it recommended to use the alternate XML based syntax for
directives,
  scriptlets  declarations ? For example is it okay to use
  jsp:declaration.../jsp:declaration within a jsp:root/jsp:root
  element  instead of a %! ... %. What are the pros / cons (if any) of
  adopting the XML based syntax ?

 The XML equivalents were not completely defined in JSP 1.1, and many
 containers (notably the reference implementation, Tomcat 3.x) doesn't
 support them. So I suggest that you don't use them.

 JSP 1.2 is a different story, though. The complete XML representation
 of a JSP page is defined in this spec. But the XML format is much
 more verbose than the current format, and requires all template data
 to be within CDATA blocks, etc. If you write JSP by hand, you'll
 probably want to stick to the current syntax even with JSP 1.2. The
 XML representation is primarily intended for tools.

 Hans
 --
 Hans Bergsten   [EMAIL PROTECTED]
 Gefion Software http://www.gefionsoftware.com
 Author of JavaServer Pages (O'Reilly), http://TheJSPBook.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



return carriage in jsp

2001-06-19 Thread King Maurice

does anyone know of any return carriage in jsp
esp some inline code

===
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: return carriage in jsp

2001-06-19 Thread Carol Geng

try this: PRE%= jspvaiable  % /PRE

Carol

At 06:31 PM 6/19/2001 -0400, you wrote:
does anyone know of any return carriage in jsp
esp some inline code

===
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: path

2001-06-19 Thread Lester June Cabrera

set in classpath

set CLASSPATH=c:\jdk1.3\lib\servlet.jar;%CLASSPATH%

At 01:57 PM 6/19/01 -0400, you wrote:
Hi,
I am new with JSP, I am trying to set up JRUN3.1 Developer Edition to
learn Servlet and JSP.  I don't know how to set the path for the
servlet.jar so what when I compile servlet I don't have to type in the
whole path.  Can anyone help me please.

Thanks,
Duc


--
Get your FREE download of MSN Explorer at
http://explorer.msn.comhttp://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



-
Lester June Cabrera
Chief Web Programmer
I-Quest Corporation

Tel: (632) 867 8150 local 302 or 309
Fax: (63 2) 867 8077
E-mail: [EMAIL PROTECTED]

Visit the most comprehensive on-line business travel resource at
http://www.worldroom.com

Successful events start here. Visit http://www.worldroomevents.com .
The one-stop online exchange for event planners and suppliers to the MICE
industry.

===
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: response.sendRedirect(...) is taking page from cache

2001-06-19 Thread S.Niranjan Kumar

Hi,
Try adding this code. Please note that the following 3 lines are added
before using
any  out.println() statements.
res.addHeader(Pragma, No-cache);
res.addHeader(Cache-control, no-cache);
res.addDateHeader(Expires, 1);


And the HTML's Head part should include the following 2 meta tags
  out.println(htmlhead);
out.println(meta http-equiv=\pragma\ content=\no-cache\);
out.println(meta http-equiv=\cache-control\ 
content=\no-cache\);
out.println(titleCache Control/title);
out.println(/headbody);

Regards,
Niranjan.

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Duane Morse
Sent: Wednesday, June 20, 2001 12:49 AM
To: [EMAIL PROTECTED]
Subject: Re: response.sendRedirect(...) is taking page from cache


Try adding a URL variable which has a random number as a value -- that's the
standard way
to get around caching problems (I'm sorry to say).

-Original Message-
From: St. Louis, Thomas (CRD) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: response.sendRedirect(...) is taking page from cache


I have a page that submits a request to a servlet and on certain conditions
the servlet performs a
response.sendRedirect(...) right back to itself.  Is there anyway to force
the browser to not grab
the page from cache.  I have the html tags
   META name=Cachecontrol value=no-cache but this still does not seem
to do anything.  Any
thoughts on how to override taking the page from cache?

Thanks for your help!
 g GE Corporate Research  Development
 __
  Tom St.Louis
  GE Corporate Research  Development
  One Research Circle, K1-5C39C
  Schenectady, NY  12309
  Phone: (518) 387-4900  Dial Comm: 8*833-4900
  Email: [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: SQL server database insert

2001-06-19 Thread Sharath Paul

Hi,

While inserting a record from my JSP page into SQL table, the same record
gets inserted twice.  I am using a prepared statement.  Why is that second
record inserting by itself autonomously, can anybody please advise me ASAP.

Thanks
Sharath

===
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



No Subject

2001-06-19 Thread Dmitry Namiot

 or anyone of you knows how to build or has a code in creating a
 quick/web poll in JSP?

check out Vote on
http://www.servletsuite.com

--
Coldjava - server-side Java components
http://www.servletsuite.com
__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.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



Installation

2001-06-19 Thread xin_kang

Hi, All

Is here anyone installed JSP enviroment on the BSDI? I CAN NOT!! Please help me!!
Thanks alots!!


xin_kang
[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



Please Help ME!!

2001-06-19 Thread xin_kang

JSP-INTEREST

Is here anybody knows how to install JSP enviroment on BSDI or FreeBSD? I'm crazy!!!

xin_kang
[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