Re: Problem with session variable

2002-05-20 Thread Adrian Janssen

The problem would seem to be that the IE6 users are not sending the session
ID through with every request, check by dumping out the seesion id. It
should stay the same for every page for the 5.5 users and differ for every
page for the 6 users (and even accross different requests of the same page).

If this is the case (it probably is from the symptoms) then it means that
the IE6 users have some persimission problems regarding cookies. In IE6 this
is all tied up with the new P3P stuff (yumie!).

I have run into the exact same problem myself with IE6,. but only after
after I "auto-updated" it from the M$ site. Only way back in the end was to
re-install the O.S. (XP in that case). Note this P3P stuff should not apply
to INTRANET sites, but after the "auto-up$#@%" it seems to treat them the
same as any site on the net. Another way around might be to deploy a P3P
policy file on your web server (enjoy! - search the net for tools).

Good Luck!

> -Original Message-
> From: David Cate [SMTP:[EMAIL PROTECTED]]
> Sent: 20 May 2002 07:23
> To:   [EMAIL PROTECTED]
> Subject:  Problem with session variable
>
> Normally I don't keep sensitive data inside of session variables but in
> this
> case it was just simple. I needed a way of trapping the user name and some
> statitistical information for the duration of the session. So I started
> placing variables in the session object like this:
>
> session.putValue("StTime",time);
>
> time being a local String that contains the starting time for the request.
> On the next page, I wanted to access the variable, so I perform:
>
> String time = (String)session.getValue("StTime");
>
> This works well in IE 5.5 but in IE6, the variable is ALWAYS null. I've
> tried several different machine with several settings including allowing
> allo cookies and setting the security to the lowest possible. I set up a
> machine next to me and in IE5.5 the page displays fine and the variable is
> set. in IE 6, no such luck.
>
> Anyone have any advice or run into this before?
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: newbie

2002-05-20 Thread Adrian Janssen

you need to connect to the postgresql port 5432 NOT 8080 (the tomcat
port).


> -Original Message-
> From: Sagine E.Ferrus [SMTP:[EMAIL PROTECTED]]
> Sent: 20 May 2002 04:16
> To:   [EMAIL PROTECTED]
> Subject:  newbie
>
> I'm trying to have my jsp page connect to a postgresql database.  But when
> i try to view the page it stalls basically time's out, at this line
> Connection
> myConn=DriverManager.getConnection("jdbc:postgresql://192.168.1.30:8080/da
> tabaseName?user=postgres&password=postgres");
> is it the port? cause obviously 8080 is the tomcat port and it wont work
> at all if i put 5432 which is the postgresql port.
> Help
> Sagine
>
> _
> Visit our Caribbean Community at http://www.islanderonline.com
>
> _
> Promote your group and strengthen ties to your members with
> [EMAIL PROTECTED] by Everyone.net  http://www.everyone.net/?btn=tag
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



[no subject]

2002-05-20 Thread [Vaishali S. Pandya]

sudhir i can not get ur que axactly
where is your bat file?
on web page?
and where your application will run?
i mean if u r using jsp or what?
can u write me something more?

Vaishali
RIL
Ahm'd



 hi,
i have a an application which runs when i click on a batch file.
But my
problem is, once i click on the batch file and the application starts
running, the user can come back and click on this batch file again to
create
another instance of this application. How can i stop this ??

Thanks in advance.
SKN

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: showing a looping in JSP with arrays

2002-05-20 Thread Pete Freitag

When you do it that way your not storing it as an array, you just storing
one element of the array. You probably want to store the Entire bookmark
array in the session variable not just one element in it.

session.setAttribute("myBookmarkArray", MyBookMarkArray);

And to loop through your array try something like this...

<% for(int i=0;i < MyBookMarkArray.length;i++) { %>
<%= MyBookMarkArray[i].toString()%> 
<% } %>


_
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM
Web Developer Resources
http://www.cfdev.com/
 Check out ActivEdit a WYSIWYG HTML Editor that works like a Textarea
 http://www.cfdev.com/activedit/




-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter Dolukhanov
Sent: Monday, May 20, 2002 8:34 PM
To: [EMAIL PROTECTED]
Subject: Re: showing a looping in JSP with arrays


You have to use session.getVariable to initialize the said variable on a
different page. Also, can anyone verify that you can save arrays this
way?

Regards,
Pete Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Richard Diaz
Sent: 20 May 2002 21:35
To: [EMAIL PROTECTED]
Subject: showing a looping in JSP with arrays

in my JSP page I get a NULL POINTER EXCEPTION...

<%=MyBookmarkArray[1].getpk() %> 

I have verified there are 3 bookmarks created in my
servlet they are session variables using:
session.setAttribute("MyBookmarkArray[" + i + "]",
MyBookmarkArray[i]);

also I can see all my non array session variables just
not this array one... a scope problem?

it would be great if someone could point me to an
example of looping through an array and rendering it
in my jsp page.


Also, anyone know of a good JSP Forum? I need to also
figure out how to loop output of the above array
inside the JSP.

thanks in advance.
Rich


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JDBC Connection!

2002-05-20 Thread Mark Stray

Hi,

Can anyone explain this intermittent error please.

regards, Mark


Root cause:
java.lang.NullPointerException
at
mesgmgr._0002fmesgmgr_0002fmsglist_0002ejspmsglist_jsp_0._jspService(_0002fm
esgmgr_0002fmsglist_0002ejspmsglist_jsp_0.java, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)














**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: showing a looping in JSP with arrays

2002-05-20 Thread Peter Dolukhanov

You have to use session.getVariable to initialize the said variable on a
different page. Also, can anyone verify that you can save arrays this
way?

Regards,
Pete Dolukhanov

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Richard Diaz
Sent: 20 May 2002 21:35
To: [EMAIL PROTECTED]
Subject: showing a looping in JSP with arrays

in my JSP page I get a NULL POINTER EXCEPTION...

<%=MyBookmarkArray[1].getpk() %> 

I have verified there are 3 bookmarks created in my
servlet they are session variables using:
session.setAttribute("MyBookmarkArray[" + i + "]",
MyBookmarkArray[i]);

also I can see all my non array session variables just
not this array one... a scope problem?

it would be great if someone could point me to an
example of looping through an array and rendering it
in my jsp page.


Also, anyone know of a good JSP Forum? I need to also
figure out how to loop output of the above array
inside the JSP.

thanks in advance.
Rich


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



showing a looping in JSP with arrays

2002-05-20 Thread Richard Diaz

in my JSP page I get a NULL POINTER EXCEPTION...

<%=MyBookmarkArray[1].getpk() %> 

I have verified there are 3 bookmarks created in my
servlet they are session variables using:
session.setAttribute("MyBookmarkArray[" + i + "]",
MyBookmarkArray[i]);

also I can see all my non array session variables just
not this array one... a scope problem?

it would be great if someone could point me to an
example of looping through an array and rendering it
in my jsp page.


Also, anyone know of a good JSP Forum? I need to also
figure out how to loop output of the above array
inside the JSP.

thanks in advance.
Rich


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Please help with email attachment

2002-05-20 Thread Roland Dong

Richard,

Thanks for your reply.

Actually, it is ONE jsp handles both upload and email attachment.


//upload.jsp
..
..
//upload file
 
 File is: 
 <% name="test/test1/"+A; %>


.
.
//attache file

<%=name%>

.
.

I was told by our IT department user will not be able to upload file from
local machine because the servers are clustered. In other words, I will not
be able to have local file uploaded to test/testdir directory. Not even a
tmp or shared directory.

So I am wondering if there is a work around?

Thanks a lot.

RD

On 5/20/02 12:02 PM, "Richard Yee" <[EMAIL PROTECTED]> wrote:

> RD,
> Do you know why you can't upload files anymore? Are you uploading and
> sending on two different JSP pages? If that is the case, the requests might
> be going to different servers in the cluster and the uploaded temporary
> file is not on the same machine as the request for sending the mail. One
> thing you can try is to use a shared directory that is accessible to all of
> the servers to store the file.
> 
> Regards,
> 
> Richard
> 
> At 11:31 AM 5/20/2002 -0500, you wrote:
>> I am using two taglibs to handle sending an email attachment.
>> 
>> One taglib handles uploading the file to the server.  The other handles
>> sending out the file as email attachment.
>> 
>> So I need first upload the file from local disk to the server.  My problem
>> is that with new clustered server configuration in our company, it is
>> impossible for a user to upload local file to the  server.
>> 
>> Is there a way I could bypass the uploading part? Basically,  send out the
>> attachment file directly without the need to upload the file to the server
>> first?
>> 
>> Please help.
>> 
>> RD
>> 
>> ===
>> 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://archives.java.sun.com/jsp-interest.html
>>  http://java.sun.com/products/jsp/faq.html
>>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>>  http://www.jguru.com/faq/index.jsp
>>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Joseph Ottinger

Ah, good deal. Not only did I not realise it was in an included page (for
some reason, the relevance just didn't sink in), but I didn't know that
about the spec, partly because I've not tried to include pages that
redirect, so had no need to know. :) Good call, Hans.


>From: Jay Burgess <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: sendRedirect() from within a ?
>Date: Mon, 20 May 2002 13:26:05 -0500
>
>Thank you!  Your explanation about setting headers is exactly what I was
>running up against.  I went back to the spec, and section JSP.4.4 calls it
>out very clearly:
>
>"An included page only has access to the JspWriter object and it cannot set
>headers. This precludes invoking methods like setCookie(). Attempts to
>invoke these methods will be ignored."
>
>In my attempt to find other reasons for my problem, I missed this very
>obvious cause.  I'll have to look now for another solution to the problem
>I'm trying to solve.
>
>Thanks again.
>
>Jay
>
> > -Original Message-
> > From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 20, 2002 11:53 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: sendRedirect() from within a ?
> >
> >
> > Sorry if I'm missing something, but I believe this thread started with
> > a quetsion about why  of a page that does a redirect
> > doesn't cause the request to be redirected. The answer to this is that
> > an included page (using  or pageContext.include()) is not
> > allowed to set headers. If it does, the headers are silently ignored.
> > The include mechanism is only for including the body content produced
> > by the included page.
> >
> > If you want to redirect from a JSP page, use this code in the
> > main page:
> >
> >response.sendRedirect("nextPage.jsp");
> >
> > either in a scriptlet or in a simple custom action.
> >
> > Hans



_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Jay Burgess

Thank you!  Your explanation about setting headers is exactly what I was
running up against.  I went back to the spec, and section JSP.4.4 calls it
out very clearly:

"An included page only has access to the JspWriter object and it cannot set
headers. This precludes invoking methods like setCookie(). Attempts to
invoke these methods will be ignored."

In my attempt to find other reasons for my problem, I missed this very
obvious cause.  I'll have to look now for another solution to the problem
I'm trying to solve.

Thanks again.

Jay

 > -Original Message-
 > From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, May 20, 2002 11:53 AM
 > To: [EMAIL PROTECTED]
 > Subject: Re: sendRedirect() from within a ?
 >
 >
 > Sorry if I'm missing something, but I believe this thread started with
 > a quetsion about why  of a page that does a redirect
 > doesn't cause the request to be redirected. The answer to this is that
 > an included page (using  or pageContext.include()) is not
 > allowed to set headers. If it does, the headers are silently ignored.
 > The include mechanism is only for including the body content produced
 > by the included page.
 >
 > If you want to redirect from a JSP page, use this code in the
 > main page:
 >
 >response.sendRedirect("nextPage.jsp");
 >
 > either in a scriptlet or in a simple custom action.
 >
 > Hans
 >

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Problem with session variable

2002-05-20 Thread Dasti, Hassan

I don't know how that is going to make a difference, But the current version of JSP , 
JSP 1.2 uses setAttribute and getAttribute instead of putValue and getValue

So, try using the following To set the information:
session.setAttribute("StTime", time);
and to get the information on different page
String time = (String)earsSession.getAttribute("StTime").toString();

I am using this way and it is not giving me any trouble.  Maybe it depends on what 
type of JSP structure you have.

Thanks


-Original Message-
From: David Cate [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 1:23 PM
To: [EMAIL PROTECTED]
Subject: Problem with session variable


Normally I don't keep sensitive data inside of session variables but in this
case it was just simple. I needed a way of trapping the user name and some
statitistical information for the duration of the session. So I started
placing variables in the session object like this:

session.putValue("StTime",time);

time being a local String that contains the starting time for the request.
On the next page, I wanted to access the variable, so I perform:

String time = (String)session.getValue("StTime");

This works well in IE 5.5 but in IE6, the variable is ALWAYS null. I've
tried several different machine with several settings including allowing
allo cookies and setting the security to the lowest possible. I set up a
machine next to me and in IE5.5 the page displays fine and the variable is
set. in IE 6, no such luck.

Anyone have any advice or run into this before?

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Problem with session variable

2002-05-20 Thread Haseltine, Celeste

David,

The putValue and getValue methods of the session object have been deprecated
as of JSP standard 1.2 (if my memory serves me correctly).  If you are using
a JSP 1.2 or greater compliant container (servelet/JSP compiler), try the
session.getAttribute() and Session.setAttribute methods.

Celeste

-Original Message-
From: David Cate [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Problem with session variable


Normally I don't keep sensitive data inside of session variables but in this
case it was just simple. I needed a way of trapping the user name and some
statitistical information for the duration of the session. So I started
placing variables in the session object like this:

session.putValue("StTime",time);

time being a local String that contains the starting time for the request.
On the next page, I wanted to access the variable, so I perform:

String time = (String)session.getValue("StTime");

This works well in IE 5.5 but in IE6, the variable is ALWAYS null. I've
tried several different machine with several settings including allowing
allo cookies and setting the security to the lowest possible. I set up a
machine next to me and in IE5.5 the page displays fine and the variable is
set. in IE 6, no such luck.

Anyone have any advice or run into this before?

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Problem with session variable

2002-05-20 Thread David Cate

Normally I don't keep sensitive data inside of session variables but in this
case it was just simple. I needed a way of trapping the user name and some
statitistical information for the duration of the session. So I started
placing variables in the session object like this:

session.putValue("StTime",time);

time being a local String that contains the starting time for the request.
On the next page, I wanted to access the variable, so I perform:

String time = (String)session.getValue("StTime");

This works well in IE 5.5 but in IE6, the variable is ALWAYS null. I've
tried several different machine with several settings including allowing
allo cookies and setting the security to the lowest possible. I set up a
machine next to me and in IE5.5 the page displays fine and the variable is
set. in IE 6, no such luck.

Anyone have any advice or run into this before?

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Please help with email attachment

2002-05-20 Thread Richard Yee

RD,
Do you know why you can't upload files anymore? Are you uploading and
sending on two different JSP pages? If that is the case, the requests might
be going to different servers in the cluster and the uploaded temporary
file is not on the same machine as the request for sending the mail. One
thing you can try is to use a shared directory that is accessible to all of
the servers to store the file.

Regards,

Richard

At 11:31 AM 5/20/2002 -0500, you wrote:
>I am using two taglibs to handle sending an email attachment.
>
>One taglib handles uploading the file to the server.  The other handles
>sending out the file as email attachment.
>
>So I need first upload the file from local disk to the server.  My problem
>is that with new clustered server configuration in our company, it is
>impossible for a user to upload local file to the  server.
>
>Is there a way I could bypass the uploading part? Basically,  send out the
>attachment file directly without the need to upload the file to the server
>first?
>
>Please help.
>
>RD
>
>===
>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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Hans Bergsten

Sorry if I'm missing something, but I believe this thread started with
a quetsion about why  of a page that does a redirect
doesn't cause the request to be redirected. The answer to this is that
an included page (using  or pageContext.include()) is not
allowed to set headers. If it does, the headers are silently ignored.
The include mechanism is only for including the body content produced
by the included page.

If you want to redirect from a JSP page, use this code in the main page:

   response.sendRedirect("nextPage.jsp");

either in a scriptlet or in a simple custom action.

Hans

Jay Burgess wrote:
> O.K., I'm off to the Tomcat list to pursue this further.  I found the
> following function in the Tomcat source, and am wondering whether it's the
> root of my problem, and if so, why it's written this way.
>
> /**
>  * Disallow sendRedirect() calls on an included response.
>  *
>  * @param location The new location
>  *
>  * @exception IOException if an input/output error occurs
>  */
> public void sendRedirect(String location) throws IOException {
> if (!included)
> ((HttpServletResponse) getResponse()).sendRedirect(location);
> }
>
> BTW, Telnet simply showed what we expected--status 200, no Location header
> set, and nothing where the  should have been.
>
> Thanks again.
>
> Jay
>
>  > -Original Message-
>  > From: Jay Burgess [mailto:[EMAIL PROTECTED]]
>  > Sent: Monday, May 20, 2002 10:32 AM
>  > To: [EMAIL PROTECTED]
>  > Subject: Re: sendRedirect() from within a ?
>  >
>  >
>  > The mystery thickens. I just added "res.isCommitted()" right before my
>  > sendRedirect(), and it returns false.  So it appears that the
>  > response is
>  > not being committed (which is what we expect), yet the
>  > sendRedirect() is
>  > simply being ignored.
>  >
>  > I'll try your Telnet suggestion now and see what comes back.  I'm also
>  > going to try mimic'ing sendRedirect() by setting the headers
>  > by hand, and
>  > see if there's any difference.
>  >
>  > Thanks for the input.
>  >
>  > Jay
>  >
>  >  > -Original Message-
>  >  > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
>  >  > Sent: Monday, May 20, 2002 10:16 AM
>  >  > To: [EMAIL PROTECTED]
>  >  > Subject: Re: sendRedirect() from within a ?
>  >  >
>  >  >
>  >  > It wouldn't surprise me to see a bug in Tomcat, since I run
>  >  > up against a few
>  >  > of them all the time. :)
>  >  >
>  >  > Anyway, it's easy to figure out what's happening: telnet to
>  >  > the server/port,
>  >  > do a simple GET on your page that has the redirect, and read
>  >  > the headers.
>  >  > You'd expect the buffering to work, yes. (I certainly would.)
>  >  > You should
>  >  > also be pessimistic as to whether it does or not, esp. if
>  >  > what you expect
>  >  > isn't happening when you know it should.
>  >  >
>  >  > As far as the clue level... well, you're in JSP-I, where the
>  >  > clues are few
>  >  > and far between. If you make an assumption that everyone who
>  >  > posts anything
>  >  > is generally clueless, nineteen times out of twenty, you're
>  >  > likely to be
>  >  > right. :)
>  >  >
>  >  > >From: Jay Burgess <[EMAIL PROTECTED]>
>  >  >
>  >  > >Gah!?  You seem to imply that I don't understand the how
>  > the redirect
>  >  > >actually works.  I do. But my understanding from the JSP
>  >  > spec is that the
>  >  > >container is supposed to provide an 8kb buffer by default (Section
>  >  > >JSP.2.10.1), so the six bytes that make up the string
>  >  > "" should not
>  >  > >be sent down the line.  I'm supposed to have the ability to do a
>  >  > >sendRedirect() in this case.
>  >  > >
>  >  > >I'm using Tomcat 4.0.3, by the way, and since it's
>  > supposed to be the
>  >  > >Reference Implementation, I assumed it would work.  I
>  > find it hard to
>  >  > >believe that this is a bug in Tomcat, as it's such base
>  >  > functionality.
>  >  > >
>  >  > >Other ideas?
>  >  > >
>  >  > >Jay
>  >  > >
>  >  > > > -Original Message-
>  >  > > > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
>  >  > > > Sent: Monday, May 20, 2002 5:50 AM
>  >  > > > To: [EMAIL PROTECTED]
>  >  > > > Subject: Re: sendRedirect() from within a ?
>  >  > > >
>  >  > > >
>  >  > > > Gah! The problem is that sendRedirects have to take place
>  >  > > > before any output
>  >  > > > is spooled to the client. It's a HEADER. One would hope your
>  >  > > > container would
>  >  > > > massage the output and cache the body content until it needs
>  >  > > > to send it down
>  >  > > > the line, but apparently it's not doing that.
>  >  > > >
>  >  > > > Thus, the  is the problem.
>  >  > > >
>  >  > > >
>  >  > > > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
>  >  > > > >Reply-To: A mailing list about Java Server Pages
>  >  > specification and
>  >  > > > >reference <[EMAIL PROTECTED]>
>  >  > > > >To: [EMAIL PROTECTED]
>  >  > > > >Subject: Re: sendRedirect() from within a ?
>  >  > > 

Please help with email attachment

2002-05-20 Thread Roland Dong

I am using two taglibs to handle sending an email attachment.

One taglib handles uploading the file to the server.  The other handles
sending out the file as email attachment.

So I need first upload the file from local disk to the server.  My problem
is that with new clustered server configuration in our company, it is
impossible for a user to upload local file to the  server.

Is there a way I could bypass the uploading part? Basically,  send out the
attachment file directly without the need to upload the file to the server
first?

Please help.

RD

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Please help with email an attachment

2002-05-20 Thread Roland Dong

On 4/16/02 3:14 PM, "Richard Yee" <[EMAIL PROTECTED]> wrote:

> SC,
> Look at the web.xml file in your Apache Tomcat 4.0 conf directory.
> The 'listings' init-param of the default servlet entry controls whether
> directory listing is allowed. The welcome-file-list parameter entry
> controls what files are used as welcome files.
>
>  
>index.html
>index.htm
>index.jsp
>  
>
> There's also documentation in the web.xml file itself.
>
> Regards,
>
> Richard
>
> At 03:05 PM 4/16/2002 -0500, you wrote:
>> Hi all,
>>
>> does anyone know how I can prevent tomcat from listing the contents of the
>> directories? Is it an attribute of the  tag in the server.xml?
>> also, how do I tell it which is the welcome page of every directory (I mean
>> index.jsp or whatever)
>>
>> Best regards,
>> SC
>>
>>
>> _
>> 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://archives.java.sun.com/jsp-interest.html
I am using two taglibs to handle sending an email attachment.

One taglib handles uploading the file to the server.  The other handles
sending out the file as email attachment.

So I need first upload the file from local disk to the server.  My problem
is that with new clustered server configuration in our company, it is
impossible for a user to upload local file to the  server.

Is there a way I could bypass the uploading part? Basically,  send out the
attachment file directly without the need to upload the file to the server
first?

Please help.

RD

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Jay Burgess

O.K., I'm off to the Tomcat list to pursue this further.  I found the
following function in the Tomcat source, and am wondering whether it's the
root of my problem, and if so, why it's written this way.

 /**
  * Disallow sendRedirect() calls on an included response.
  *
  * @param location The new location
  *
  * @exception IOException if an input/output error occurs
  */
 public void sendRedirect(String location) throws IOException {
 if (!included)
 ((HttpServletResponse) getResponse()).sendRedirect(location);
 }

BTW, Telnet simply showed what we expected--status 200, no Location header
set, and nothing where the  should have been.

Thanks again.

Jay

 > -Original Message-
 > From: Jay Burgess [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, May 20, 2002 10:32 AM
 > To: [EMAIL PROTECTED]
 > Subject: Re: sendRedirect() from within a ?
 >
 >
 > The mystery thickens. I just added "res.isCommitted()" right before my
 > sendRedirect(), and it returns false.  So it appears that the
 > response is
 > not being committed (which is what we expect), yet the
 > sendRedirect() is
 > simply being ignored.
 >
 > I'll try your Telnet suggestion now and see what comes back.  I'm also
 > going to try mimic'ing sendRedirect() by setting the headers
 > by hand, and
 > see if there's any difference.
 >
 > Thanks for the input.
 >
 > Jay
 >
 >  > -Original Message-
 >  > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
 >  > Sent: Monday, May 20, 2002 10:16 AM
 >  > To: [EMAIL PROTECTED]
 >  > Subject: Re: sendRedirect() from within a ?
 >  >
 >  >
 >  > It wouldn't surprise me to see a bug in Tomcat, since I run
 >  > up against a few
 >  > of them all the time. :)
 >  >
 >  > Anyway, it's easy to figure out what's happening: telnet to
 >  > the server/port,
 >  > do a simple GET on your page that has the redirect, and read
 >  > the headers.
 >  > You'd expect the buffering to work, yes. (I certainly would.)
 >  > You should
 >  > also be pessimistic as to whether it does or not, esp. if
 >  > what you expect
 >  > isn't happening when you know it should.
 >  >
 >  > As far as the clue level... well, you're in JSP-I, where the
 >  > clues are few
 >  > and far between. If you make an assumption that everyone who
 >  > posts anything
 >  > is generally clueless, nineteen times out of twenty, you're
 >  > likely to be
 >  > right. :)
 >  >
 >  > >From: Jay Burgess <[EMAIL PROTECTED]>
 >  >
 >  > >Gah!?  You seem to imply that I don't understand the how
 > the redirect
 >  > >actually works.  I do. But my understanding from the JSP
 >  > spec is that the
 >  > >container is supposed to provide an 8kb buffer by default (Section
 >  > >JSP.2.10.1), so the six bytes that make up the string
 >  > "" should not
 >  > >be sent down the line.  I'm supposed to have the ability to do a
 >  > >sendRedirect() in this case.
 >  > >
 >  > >I'm using Tomcat 4.0.3, by the way, and since it's
 > supposed to be the
 >  > >Reference Implementation, I assumed it would work.  I
 > find it hard to
 >  > >believe that this is a bug in Tomcat, as it's such base
 >  > functionality.
 >  > >
 >  > >Other ideas?
 >  > >
 >  > >Jay
 >  > >
 >  > > > -Original Message-
 >  > > > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
 >  > > > Sent: Monday, May 20, 2002 5:50 AM
 >  > > > To: [EMAIL PROTECTED]
 >  > > > Subject: Re: sendRedirect() from within a ?
 >  > > >
 >  > > >
 >  > > > Gah! The problem is that sendRedirects have to take place
 >  > > > before any output
 >  > > > is spooled to the client. It's a HEADER. One would hope your
 >  > > > container would
 >  > > > massage the output and cache the body content until it needs
 >  > > > to send it down
 >  > > > the line, but apparently it's not doing that.
 >  > > >
 >  > > > Thus, the  is the problem.
 >  > > >
 >  > > >
 >  > > > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
 >  > > > >Reply-To: A mailing list about Java Server Pages
 >  > specification and
 >  > > > >reference <[EMAIL PROTECTED]>
 >  > > > >To: [EMAIL PROTECTED]
 >  > > > >Subject: Re: sendRedirect() from within a ?
 >  > > > >Date: Mon, 20 May 2002 15:40:23 +0530
 >  > > > >
 >  > > > >Before the forward call you should not write anything to
 >  > the response
 >  > > > >object. If you will write anything to response object and
 >  > > > then you will
 >  > > > >forward to some other URL then you will always get the error.
 >  > > > >
 >  > > > >-Original Message-
 >  > > > >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
 >  > > > >Sent: Friday, May 17, 2002 9:57 PM
 >  > > > >To: [EMAIL PROTECTED]
 >  > > > >Subject: sendRedirect() from within a ?
 >  > > > >
 >  > > > >
 >  > > > >Obviously I'm missing some important detail about the
 >  > > > mechanics of using
 >  > > > >.
 >  > > > >
 >  > > > >I've got a JSP with nothing in it but a
 >  > > > >",,,".  The
 >  > "page" for the
 >  > > > > is a direct call to my servlet.  The only
 >  > >

Still the Newbie

2002-05-20 Thread Sagine E.Ferrus

Thanks for trying to help but
1. I am not using Oracle, I am using PostgreSQL.
2. Changing the tomcat port from 8080 to something else has nothing to do with Tomcat 
not beeing able to connect to the database.

I need to connect tomcat to PostgreSQL database, i have to write Jdbc driver and in 
the proper location. the jsp page does pickup the postgresql jdbc drivers, but when my 
jsp page tries to open a connection with the database it "timed out"
thanks

_
Visit our Caribbean Community at http://www.islanderonline.com

_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Jay Burgess

The mystery thickens. I just added "res.isCommitted()" right before my
sendRedirect(), and it returns false.  So it appears that the response is
not being committed (which is what we expect), yet the sendRedirect() is
simply being ignored.

I'll try your Telnet suggestion now and see what comes back.  I'm also
going to try mimic'ing sendRedirect() by setting the headers by hand, and
see if there's any difference.

Thanks for the input.

Jay

 > -Original Message-
 > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, May 20, 2002 10:16 AM
 > To: [EMAIL PROTECTED]
 > Subject: Re: sendRedirect() from within a ?
 >
 >
 > It wouldn't surprise me to see a bug in Tomcat, since I run
 > up against a few
 > of them all the time. :)
 >
 > Anyway, it's easy to figure out what's happening: telnet to
 > the server/port,
 > do a simple GET on your page that has the redirect, and read
 > the headers.
 > You'd expect the buffering to work, yes. (I certainly would.)
 > You should
 > also be pessimistic as to whether it does or not, esp. if
 > what you expect
 > isn't happening when you know it should.
 >
 > As far as the clue level... well, you're in JSP-I, where the
 > clues are few
 > and far between. If you make an assumption that everyone who
 > posts anything
 > is generally clueless, nineteen times out of twenty, you're
 > likely to be
 > right. :)
 >
 > >From: Jay Burgess <[EMAIL PROTECTED]>
 >
 > >Gah!?  You seem to imply that I don't understand the how the redirect
 > >actually works.  I do. But my understanding from the JSP
 > spec is that the
 > >container is supposed to provide an 8kb buffer by default (Section
 > >JSP.2.10.1), so the six bytes that make up the string
 > "" should not
 > >be sent down the line.  I'm supposed to have the ability to do a
 > >sendRedirect() in this case.
 > >
 > >I'm using Tomcat 4.0.3, by the way, and since it's supposed to be the
 > >Reference Implementation, I assumed it would work.  I find it hard to
 > >believe that this is a bug in Tomcat, as it's such base
 > functionality.
 > >
 > >Other ideas?
 > >
 > >Jay
 > >
 > > > -Original Message-
 > > > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
 > > > Sent: Monday, May 20, 2002 5:50 AM
 > > > To: [EMAIL PROTECTED]
 > > > Subject: Re: sendRedirect() from within a ?
 > > >
 > > >
 > > > Gah! The problem is that sendRedirects have to take place
 > > > before any output
 > > > is spooled to the client. It's a HEADER. One would hope your
 > > > container would
 > > > massage the output and cache the body content until it needs
 > > > to send it down
 > > > the line, but apparently it's not doing that.
 > > >
 > > > Thus, the  is the problem.
 > > >
 > > >
 > > > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
 > > > >Reply-To: A mailing list about Java Server Pages
 > specification and
 > > > >reference <[EMAIL PROTECTED]>
 > > > >To: [EMAIL PROTECTED]
 > > > >Subject: Re: sendRedirect() from within a ?
 > > > >Date: Mon, 20 May 2002 15:40:23 +0530
 > > > >
 > > > >Before the forward call you should not write anything to
 > the response
 > > > >object. If you will write anything to response object and
 > > > then you will
 > > > >forward to some other URL then you will always get the error.
 > > > >
 > > > >-Original Message-
 > > > >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
 > > > >Sent: Friday, May 17, 2002 9:57 PM
 > > > >To: [EMAIL PROTECTED]
 > > > >Subject: sendRedirect() from within a ?
 > > > >
 > > > >
 > > > >Obviously I'm missing some important detail about the
 > > > mechanics of using
 > > > >.
 > > > >
 > > > >I've got a JSP with nothing in it but a
 > > > >",,,".  The
 > "page" for the
 > > > > is a direct call to my servlet.  The only
 > > > thing my servlet
 > > > >does is a sendRedirect() to another page.
 > > > >
 > > > >When I request my JSP, I get back just "",
 > > > which means the
 > > > >redirect failed, the  did nothing, and I
 > didn't get any
 > > > >exceptions (like an IllegalStateException showing the
 > > > response was already
 > > > >committed).
 > > > >
 > > > >What am I missing about trying to do things this way?
 > BTW, I'm using
 > > > >Tomcat 4.0.3.
 > > > >
 > > > >Jay
 > > > >
 > > > >=
 > > > ==
 > > > >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://archives.java.sun.com/jsp-interest.html
 > > > >  http://java.sun.com/products/jsp/faq.html
 > > > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
 > > > >  http://www.jguru.com/faq/index.jsp
 > > > >  http://www.jspinsider.com
 > > > >
 > > > >=
 > > > =To
 > > > >unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
 > > > >JSP-INTEREST".
 > > > >F

Re: sendRedirect() from within a ?

2002-05-20 Thread Joseph Ottinger

I shall? Why? I don't have any problems with redirects... :)


>From: Elango Palani <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: sendRedirect() from within a ?
>Date: Mon, 20 May 2002 19:12:19 +0530
>
>Hai Joseph Ottinger,
>
>You shall try with > syntax. Hope this will solve your issue.
>
>.---
>
>-.
>
> (),,,()
>( (.  .) .-''-.
>   (o  ) ) ('o'   )
>=(,,)=(,,)=(,,)==(,,)=
>
>Achievement don't have any boundaries  ... Even sky is not the limit,
>there are many more things even beyond the sky.
>
>Keep going on ..Keep Smiling too also
>Make others to Smile.
>
>Regards
>
>Elango Palani.
>- Original Message -
>From: Joseph Ottinger <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, May 20, 2002 4:19 PM
>Subject: Re: sendRedirect() from within a ?
>
>
> > Gah! The problem is that sendRedirects have to take place before any
>output
> > is spooled to the client. It's a HEADER. One would hope your container
>would
> > massage the output and cache the body content until it needs to send it
>down
> > the line, but apparently it's not doing that.
> >
> > Thus, the  is the problem.
> >
> >
> > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > >reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: sendRedirect() from within a ?
> > >Date: Mon, 20 May 2002 15:40:23 +0530
> > >
> > >Before the forward call you should not write anything to the response
> > >object. If you will write anything to response object and then you will
> > >forward to some other URL then you will always get the error.
> > >
> > >-Original Message-
> > >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
> > >Sent: Friday, May 17, 2002 9:57 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: sendRedirect() from within a ?
> > >
> > >
> > >Obviously I'm missing some important detail about the mechanics of
>using
> > >.
> > >
> > >I've got a JSP with nothing in it but a
> > >",,,".  The "page" for the
> > > is a direct call to my servlet.  The only thing my
>servlet
> > >does is a sendRedirect() to another page.
> > >
> > >When I request my JSP, I get back just "", which means the
> > >redirect failed, the  did nothing, and I didn't get any
> > >exceptions (like an IllegalStateException showing the response was
>already
> > >committed).
> > >
> > >What am I missing about trying to do things this way?  BTW, I'm using
> > >Tomcat 4.0.3.
> > >
> > >Jay
> > >
> >
> >===
> > >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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.com
> > >
> >
> >==T
>o
> > >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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.com
> >
> >
> >
> >
> > ---
> > Joseph B. Ottinger   [EMAIL PROTECTED]
> > http://enigmastation.com  IT Consultant
> >
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
>DIGEST".
>So

Re: sendRedirect() from within a ?

2002-05-20 Thread Joseph Ottinger

It wouldn't surprise me to see a bug in Tomcat, since I run up against a few
of them all the time. :)

Anyway, it's easy to figure out what's happening: telnet to the server/port,
do a simple GET on your page that has the redirect, and read the headers.
You'd expect the buffering to work, yes. (I certainly would.) You should
also be pessimistic as to whether it does or not, esp. if what you expect
isn't happening when you know it should.

As far as the clue level... well, you're in JSP-I, where the clues are few
and far between. If you make an assumption that everyone who posts anything
is generally clueless, nineteen times out of twenty, you're likely to be
right. :)

>From: Jay Burgess <[EMAIL PROTECTED]>

>Gah!?  You seem to imply that I don't understand the how the redirect
>actually works.  I do. But my understanding from the JSP spec is that the
>container is supposed to provide an 8kb buffer by default (Section
>JSP.2.10.1), so the six bytes that make up the string "" should not
>be sent down the line.  I'm supposed to have the ability to do a
>sendRedirect() in this case.
>
>I'm using Tomcat 4.0.3, by the way, and since it's supposed to be the
>Reference Implementation, I assumed it would work.  I find it hard to
>believe that this is a bug in Tomcat, as it's such base functionality.
>
>Other ideas?
>
>Jay
>
> > -Original Message-
> > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 20, 2002 5:50 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: sendRedirect() from within a ?
> >
> >
> > Gah! The problem is that sendRedirects have to take place
> > before any output
> > is spooled to the client. It's a HEADER. One would hope your
> > container would
> > massage the output and cache the body content until it needs
> > to send it down
> > the line, but apparently it's not doing that.
> >
> > Thus, the  is the problem.
> >
> >
> > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
> > >Reply-To: A mailing list about Java Server Pages specification and
> > >reference <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: Re: sendRedirect() from within a ?
> > >Date: Mon, 20 May 2002 15:40:23 +0530
> > >
> > >Before the forward call you should not write anything to the response
> > >object. If you will write anything to response object and
> > then you will
> > >forward to some other URL then you will always get the error.
> > >
> > >-Original Message-
> > >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
> > >Sent: Friday, May 17, 2002 9:57 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: sendRedirect() from within a ?
> > >
> > >
> > >Obviously I'm missing some important detail about the
> > mechanics of using
> > >.
> > >
> > >I've got a JSP with nothing in it but a
> > >",,,".  The "page" for the
> > > is a direct call to my servlet.  The only
> > thing my servlet
> > >does is a sendRedirect() to another page.
> > >
> > >When I request my JSP, I get back just "",
> > which means the
> > >redirect failed, the  did nothing, and I didn't get any
> > >exceptions (like an IllegalStateException showing the
> > response was already
> > >committed).
> > >
> > >What am I missing about trying to do things this way?  BTW, I'm using
> > >Tomcat 4.0.3.
> > >
> > >Jay
> > >
> > >=
> > ==
> > >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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.com
> >
> >
> >
> >
> > ---
> > Joseph B. Ottinger   [EMAIL PROTECTED]
> > http://enigmastation.com  IT Consultant
> >
>
>===
>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://archives.java.sun.com/jsp-interest.html
>http://java.sun.com/products/jsp/faq.html
>http://www.esperanto.org.nz/jsp/jspfaq.jsp
>http://www.jguru.com/faq/index.jsp
>http://www.jspin

Re: newbie

2002-05-20 Thread Madhan M.Srinivasan

U can change the tomcat port no  in the server.xml file

Imagination is More Important than Knowledge
Cheers !!!
MSM


-Original Message-
From: Sagine E.Ferrus [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 7:46 PM
To: [EMAIL PROTECTED]
Subject: newbie


I'm trying to have my jsp page connect to a postgresql database.  But when i
try to view the page it stalls basically time's out, at this line
Connection
myConn=DriverManager.getConnection("jdbc:postgresql://192.168.1.30:8080/data
baseName?user=postgres&password=postgres");
is it the port? cause obviously 8080 is the tomcat port and it wont work at
all if i put 5432 which is the postgresql port.
Help
Sagine

_
Visit our Caribbean Community at http://www.islanderonline.com

_
Promote your group and strengthen ties to your members with
[EMAIL PROTECTED] by Everyone.net  http://www.everyone.net/?btn=tag

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com
**
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: newbie

2002-05-20 Thread Isidoros Vacropoulos

the default port for oracle database is 1521.

-Original Message-
From: Sagine E.Ferrus [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 5:16 PM
To: [EMAIL PROTECTED]
Subject: newbie


I'm trying to have my jsp page connect to a postgresql database.  But when i try to 
view the page it stalls basically time's out, at this line
Connection 
myConn=DriverManager.getConnection("jdbc:postgresql://192.168.1.30:8080/databaseName?user=postgres&password=postgres");
is it the port? cause obviously 8080 is the tomcat port and it wont work at all if i 
put 5432 which is the postgresql port.
Help
Sagine

_
Visit our Caribbean Community at http://www.islanderonline.com

_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



newbie

2002-05-20 Thread Sagine E.Ferrus

I'm trying to have my jsp page connect to a postgresql database.  But when i try to 
view the page it stalls basically time's out, at this line
Connection 
myConn=DriverManager.getConnection("jdbc:postgresql://192.168.1.30:8080/databaseName?user=postgres&password=postgres");
is it the port? cause obviously 8080 is the tomcat port and it wont work at all if i 
put 5432 which is the postgresql port.
Help
Sagine

_
Visit our Caribbean Community at http://www.islanderonline.com

_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: off topic ( javascript question ??

2002-05-20 Thread Emmanuel Eze

Rewrite the faction function as follows:
function faction(target)
{
  if(target == 0)
document.form.action="insertOutdate.jsp?" + gotoFunction();
  if(target == 1)
document.form.action="insertIndate.jsp?" + gotoFunction()";
}

OR

function faction(target)
{
  var employee=gotoFunction();
  if(target == 0)
document.form.action="insertOutdate.jsp?" + employee;
  if(target == 1)
document.form.action="insertIndate.jsp?" + employee;
}

Hope this helps.

Emma
-Original Message-
From: sufi malak [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 3:54 PM
To: [EMAIL PROTECTED]
Subject: off topic ( javascript question ??


How to call a function in a function in javascripts :
Here is what I did, but it does not work :


function gotoFunction() {
var parameter =
form.emplyee.options[form.employee.selectedIndex].value;
return parameter;
}
function faction(target)
{
  if(target == 0)
document.form.action="insertOutdate.jsp?employee=gotoFunction()";
  if(target == 1)
document.form.action="insertIndate.jsp?employee=gotoFunction()";
}


_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



off topic ( javascript question ??

2002-05-20 Thread sufi malak

How to call a function in a function in javascripts :
Here is what I did, but it does not work :


function gotoFunction() {
var parameter = form.emplyee.options[form.employee.selectedIndex].value;
return parameter;
}
function faction(target)
{
  if(target == 0)
document.form.action="insertOutdate.jsp?employee=gotoFunction()";
  if(target == 1)
document.form.action="insertIndate.jsp?employee=gotoFunction()";
}


_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Jay Burgess

Gah!?  You seem to imply that I don't understand the how the redirect
actually works.  I do. But my understanding from the JSP spec is that the
container is supposed to provide an 8kb buffer by default (Section
JSP.2.10.1), so the six bytes that make up the string "" should not
be sent down the line.  I'm supposed to have the ability to do a
sendRedirect() in this case.

I'm using Tomcat 4.0.3, by the way, and since it's supposed to be the
Reference Implementation, I assumed it would work.  I find it hard to
believe that this is a bug in Tomcat, as it's such base functionality.

Other ideas?

Jay

 > -Original Message-
 > From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
 > Sent: Monday, May 20, 2002 5:50 AM
 > To: [EMAIL PROTECTED]
 > Subject: Re: sendRedirect() from within a ?
 >
 >
 > Gah! The problem is that sendRedirects have to take place
 > before any output
 > is spooled to the client. It's a HEADER. One would hope your
 > container would
 > massage the output and cache the body content until it needs
 > to send it down
 > the line, but apparently it's not doing that.
 >
 > Thus, the  is the problem.
 >
 >
 > >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
 > >Reply-To: A mailing list about Java Server Pages specification and
 > >reference <[EMAIL PROTECTED]>
 > >To: [EMAIL PROTECTED]
 > >Subject: Re: sendRedirect() from within a ?
 > >Date: Mon, 20 May 2002 15:40:23 +0530
 > >
 > >Before the forward call you should not write anything to the response
 > >object. If you will write anything to response object and
 > then you will
 > >forward to some other URL then you will always get the error.
 > >
 > >-Original Message-
 > >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
 > >Sent: Friday, May 17, 2002 9:57 PM
 > >To: [EMAIL PROTECTED]
 > >Subject: sendRedirect() from within a ?
 > >
 > >
 > >Obviously I'm missing some important detail about the
 > mechanics of using
 > >.
 > >
 > >I've got a JSP with nothing in it but a
 > >",,,".  The "page" for the
 > > is a direct call to my servlet.  The only
 > thing my servlet
 > >does is a sendRedirect() to another page.
 > >
 > >When I request my JSP, I get back just "",
 > which means the
 > >redirect failed, the  did nothing, and I didn't get any
 > >exceptions (like an IllegalStateException showing the
 > response was already
 > >committed).
 > >
 > >What am I missing about trying to do things this way?  BTW, I'm using
 > >Tomcat 4.0.3.
 > >
 > >Jay
 > >
 > >=
 > ==
 > >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://archives.java.sun.com/jsp-interest.html
 > >  http://java.sun.com/products/jsp/faq.html
 > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
 > >  http://www.jguru.com/faq/index.jsp
 > >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 > >  http://java.sun.com/products/jsp/faq.html
 > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
 > >  http://www.jguru.com/faq/index.jsp
 > >  http://www.jspinsider.com
 >
 >
 >
 >
 > ---
 > Joseph B. Ottinger   [EMAIL PROTECTED]
 > http://enigmastation.com  IT Consultant
 >

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Elango Palani

Hai Joseph Ottinger,

You shall try with > syntax. Hope this will solve your issue.

.---

-.

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

Achievement don't have any boundaries  ... Even sky is not the limit,
there are many more things even beyond the sky.

Keep going on ..Keep Smiling too also
Make others to Smile.

Regards

Elango Palani.
- Original Message -
From: Joseph Ottinger <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 4:19 PM
Subject: Re: sendRedirect() from within a ?


> Gah! The problem is that sendRedirects have to take place before any
output
> is spooled to the client. It's a HEADER. One would hope your container
would
> massage the output and cache the body content until it needs to send it
down
> the line, but apparently it's not doing that.
>
> Thus, the  is the problem.
>
>
> >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: sendRedirect() from within a ?
> >Date: Mon, 20 May 2002 15:40:23 +0530
> >
> >Before the forward call you should not write anything to the response
> >object. If you will write anything to response object and then you will
> >forward to some other URL then you will always get the error.
> >
> >-Original Message-
> >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, May 17, 2002 9:57 PM
> >To: [EMAIL PROTECTED]
> >Subject: sendRedirect() from within a ?
> >
> >
> >Obviously I'm missing some important detail about the mechanics of using
> >.
> >
> >I've got a JSP with nothing in it but a
> >",,,".  The "page" for the
> > is a direct call to my servlet.  The only thing my servlet
> >does is a sendRedirect() to another page.
> >
> >When I request my JSP, I get back just "", which means the
> >redirect failed, the  did nothing, and I didn't get any
> >exceptions (like an IllegalStateException showing the response was
already
> >committed).
> >
> >What am I missing about trying to do things this way?  BTW, I'm using
> >Tomcat 4.0.3.
> >
> >Jay
> >
>
>===
> >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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
> >
>
>==T
o
> >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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
>
>
> ---
> Joseph B. Ottinger   [EMAIL PROTECTED]
> http://enigmastation.com  IT Consultant
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Edit ans Save on browser/JSP

2002-05-20 Thread Madhan M.Srinivasan

Hi daniel

 Do u have any solution for the question asked by Chal Mal in the page
http://members.rogers.com/liu8189/

Imagination is More Important than Knowledge
Cheers !!!
MSM


-Original Message-
From: Daniel Liu [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 6:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Edit ans Save on browser/JSP


Thanks please take a look my page http://members.rogers.com/liu8189/
Daniel
- Original Message -
From: "Chan Mal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 9:02 AM
Subject: Edit ans Save on browser/JSP


> In my web application .User needs to edit word
> document on browser  which is residing in Server and
> user has to save the document in Server it self that
> means at same URL(not on Local PC)...
>
>  Is there any mechanism for this to handle either
> Server side or client side
>
>
> if you people know any thing on this please let me know.
>
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com
**
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Edit ans Save on browser/JSP

2002-05-20 Thread Daniel Liu

Thanks please take a look my page http://members.rogers.com/liu8189/
Daniel
- Original Message -
From: "Chan Mal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 9:02 AM
Subject: Edit ans Save on browser/JSP


> In my web application .User needs to edit word
> document on browser  which is residing in Server and
> user has to save the document in Server it self that
> means at same URL(not on Local PC)...
>
>  Is there any mechanism for this to handle either
> Server side or client side
>
>
> if you people know any thing on this please let me know.
>
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Edit ans Save on browser/JSP

2002-05-20 Thread Chan Mal

In my web application …User needs to edit word
document on browser  which is residing in Server and
user has to save the document in Server it self that
means at same URL(not on Local PC)...

 Is there any mechanism for this to handle either
Server side or client side


if you people know any thing on this please let me know.

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread Jiri Chaloupka

Look at www.hyperqbs.org
Jiri


--
Jiri Chaloupka
B2BExpander.com
[EMAIL PROTECTED]
**
Have you visited www.b2bexpander.com today?

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread Ashwani Kalra

> 1. If you have to change common code, you only have to do it in one
place:in
> the bean or servlet, not in all the pages that excute that code.
This can be achieved by including a common jsp.
2 & 3 are more appropriate.

Regds
Ashwani


- Original Message -
From: "Francisco Manuel Martínez Suárez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 5:55 PM
Subject: Re: JSP & Servlets


> I have three answers:
>
> 1. If you have to change common code, you only have to do it in one
place:in
> the bean or servlet, not in all the pages that excute that code.
> 2. The JSPs would handle the HTML code and/or JavaScript code making them
> more clear.
> 3. It is possible then, to have a java team working separately on beans
and
> servlets and a HTML or Web-design team working on the structure and look.
>
> Regards
>
> Fran
>
> > -Mensaje original-
> > De:   GW [SMTP:[EMAIL PROTECTED]]
> > Enviado el:   lunes 20 de mayo de 2002 13:16
> > Para: [EMAIL PROTECTED]
> > Asunto:   JSP & Servlets
> >
> > Hi All
> >
> > As far as possible JSP pages should only contain presentation data
(html)
> > and not embedded java code. Programmatical logic should be handled in
> > beans and servlets and not in jsp pages.
> >
> > Can someone please be kind enough to tell my why this is important?
> >
> > Kind Regards
> > GW
> >
> >
==
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread GW

cool, thanx...
8-)

- Original Message -
From: "Francisco Manuel Martínez Suárez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 2:25 PM
Subject: Re: JSP & Servlets


> I have three answers:
>
> 1. If you have to change common code, you only have to do it in one
place:in
> the bean or servlet, not in all the pages that excute that code.
> 2. The JSPs would handle the HTML code and/or JavaScript code making them
> more clear.
> 3. It is possible then, to have a java team working separately on beans
and
> servlets and a HTML or Web-design team working on the structure and look.
>
> Regards
>
> Fran
>
> > -Mensaje original-
> > De:   GW [SMTP:[EMAIL PROTECTED]]
> > Enviado el:   lunes 20 de mayo de 2002 13:16
> > Para: [EMAIL PROTECTED]
> > Asunto:   JSP & Servlets
> >
> > Hi All
> >
> > As far as possible JSP pages should only contain presentation data
(html)
> > and not embedded java code. Programmatical logic should be handled in
> > beans and servlets and not in jsp pages.
> >
> > Can someone please be kind enough to tell my why this is important?
> >
> > Kind Regards
> > GW
> >
> >
==
> > 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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread Zachary Roberts

Also, we should be able to change the look and feel as much as we want without having 
to worry about messing up the functionality of our program.  Changing/Editing 
presentation layer code should not involve messing with the hard core java 
functionality code that is working on the back end. 

>>> Ashwani Kalra <[EMAIL PROTECTED]> 05/20/02 07:24AM >>>
The key word here is role separation  and avoiding mess when both programmer
and web designer are working on the jsp.

~
Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/ 
~

- Original Message -
From: "GW" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 5:46 PM
Subject: JSP & Servlets


Hi All

As far as possible JSP pages should only contain presentation data (html)
and not embedded java code. Programmatical logic should be handled in beans
and servlets and not in jsp pages.

Can someone please be kind enough to tell my why this is important?

Kind Regards
GW

=
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://archives.java.sun.com/jsp-interest.html 
 http://java.sun.com/products/jsp/faq.html 
 http://www.esperanto.org.nz/jsp/jspfaq.jsp 
 http://www.jguru.com/faq/index.jsp 
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html 
 http://java.sun.com/products/jsp/faq.html 
 http://www.esperanto.org.nz/jsp/jspfaq.jsp 
 http://www.jguru.com/faq/index.jsp 
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread Francisco Manuel Martínez Suárez

I have three answers:

1. If you have to change common code, you only have to do it in one place:in
the bean or servlet, not in all the pages that excute that code.
2. The JSPs would handle the HTML code and/or JavaScript code making them
more clear.
3. It is possible then, to have a java team working separately on beans and
servlets and a HTML or Web-design team working on the structure and look.

Regards

Fran

> -Mensaje original-
> De:   GW [SMTP:[EMAIL PROTECTED]]
> Enviado el:   lunes 20 de mayo de 2002 13:16
> Para: [EMAIL PROTECTED]
> Asunto:   JSP & Servlets
>
> Hi All
>
> As far as possible JSP pages should only contain presentation data (html)
> and not embedded java code. Programmatical logic should be handled in
> beans and servlets and not in jsp pages.
>
> Can someone please be kind enough to tell my why this is important?
>
> Kind Regards
> GW
>
> ==
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP & Servlets

2002-05-20 Thread Ashwani Kalra

The key word here is role separation  and avoiding mess when both programmer
and web designer are working on the jsp.

~
Cheers
Ashwani Kalra
http://www.geocities.com/ashwani_kalra/
~

- Original Message -
From: "GW" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 5:46 PM
Subject: JSP & Servlets


Hi All

As far as possible JSP pages should only contain presentation data (html)
and not embedded java code. Programmatical logic should be handled in beans
and servlets and not in jsp pages.

Can someone please be kind enough to tell my why this is important?

Kind Regards
GW

=
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



JSP & Servlets

2002-05-20 Thread GW

Hi All

As far as possible JSP pages should only contain presentation data (html) and not 
embedded java code. Programmatical logic should be handled in beans and servlets and 
not in jsp pages.

Can someone please be kind enough to tell my why this is important?  

Kind Regards
GW

==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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Adrian Janssen

Also, does anyone know if this is possible within the context of servlets /
JSP?

As pointed out sendRedirect actually just sets a header in the response - as
I then understand things this is then sent to the browser (the response with
just the redirect header and nothing else) and the browser then calls
approriate URL it has been redirected to.

Now in order for senRedirect to work within the context of a 
tag, the servlet / JSP container must be able to handle such redirects
automatically  - are they actually capable of this ? I suspect it would vary
from container to container.

Note that when writing servlets one is obliged to do such including by
opening a URL connection and reading from it - in that case the programmer
would have to read the response header and handle the redirect.





> -Original Message-
> From: Joseph Ottinger [SMTP:[EMAIL PROTECTED]]
> Sent: 20 May 2002 12:50
> To:   [EMAIL PROTECTED]
> Subject:  Re: sendRedirect() from within a ?
>
> Gah! The problem is that sendRedirects have to take place before any
> output
> is spooled to the client. It's a HEADER. One would hope your container
> would
> massage the output and cache the body content until it needs to send it
> down
> the line, but apparently it's not doing that.
>
> Thus, the  is the problem.
>
>
> >From: Bhushan_Bhangale <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: sendRedirect() from within a ?
> >Date: Mon, 20 May 2002 15:40:23 +0530
> >
> >Before the forward call you should not write anything to the response
> >object. If you will write anything to response object and then you will
> >forward to some other URL then you will always get the error.
> >
> >-Original Message-
> >From: Jay Burgess [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, May 17, 2002 9:57 PM
> >To: [EMAIL PROTECTED]
> >Subject: sendRedirect() from within a ?
> >
> >
> >Obviously I'm missing some important detail about the mechanics of using
> >.
> >
> >I've got a JSP with nothing in it but a
> >",,,".  The "page" for the
> > is a direct call to my servlet.  The only thing my servlet
> >does is a sendRedirect() to another page.
> >
> >When I request my JSP, I get back just "", which means the
> >redirect failed, the  did nothing, and I didn't get any
> >exceptions (like an IllegalStateException showing the response was
> already
> >committed).
> >
> >What am I missing about trying to do things this way?  BTW, I'm using
> >Tomcat 4.0.3.
> >
> >Jay
> >
> >=
> ==
> >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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
>
>
> ---
> Joseph B. Ottinger   [EMAIL PROTECTED]
> http://enigmastation.com  IT Consultant
>
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
**
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===
T

[no subject]

2002-05-20 Thread Sudhir Kumar

 hi,
i have a an application which runs when i click on a batch file. But my
problem is, once i click on the batch file and the application starts
running, the user can come back and click on this batch file again to create
another instance of this application. How can i stop this ??

Thanks in advance.
SKN

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Joseph Ottinger

Gah! The problem is that sendRedirects have to take place before any output
is spooled to the client. It's a HEADER. One would hope your container would
massage the output and cache the body content until it needs to send it down
the line, but apparently it's not doing that.

Thus, the  is the problem.


>From: Bhushan_Bhangale <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: sendRedirect() from within a ?
>Date: Mon, 20 May 2002 15:40:23 +0530
>
>Before the forward call you should not write anything to the response
>object. If you will write anything to response object and then you will
>forward to some other URL then you will always get the error.
>
>-Original Message-
>From: Jay Burgess [mailto:[EMAIL PROTECTED]]
>Sent: Friday, May 17, 2002 9:57 PM
>To: [EMAIL PROTECTED]
>Subject: sendRedirect() from within a ?
>
>
>Obviously I'm missing some important detail about the mechanics of using
>.
>
>I've got a JSP with nothing in it but a
>",,,".  The "page" for the
> is a direct call to my servlet.  The only thing my servlet
>does is a sendRedirect() to another page.
>
>When I request my JSP, I get back just "", which means the
>redirect failed, the  did nothing, and I didn't get any
>exceptions (like an IllegalStateException showing the response was already
>committed).
>
>What am I missing about trying to do things this way?  BTW, I'm using
>Tomcat 4.0.3.
>
>Jay
>
>===
>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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com




---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://enigmastation.com  IT Consultant


_
Chat with friends online, try MSN Messenger: http://messenger.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: sendRedirect() from within a ?

2002-05-20 Thread Bhushan_Bhangale

Before the forward call you should not write anything to the response object. If you 
will write anything to response object and then you will forward to some other URL 
then you will always get the error.

-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 9:57 PM
To: [EMAIL PROTECTED]
Subject: sendRedirect() from within a ?


Obviously I'm missing some important detail about the mechanics of using
.

I've got a JSP with nothing in it but a
",,,".  The "page" for the
 is a direct call to my servlet.  The only thing my servlet
does is a sendRedirect() to another page.

When I request my JSP, I get back just "", which means the
redirect failed, the  did nothing, and I didn't get any
exceptions (like an IllegalStateException showing the response was already
committed).

What am I missing about trying to do things this way?  BTW, I'm using
Tomcat 4.0.3.

Jay

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com