You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Stan Pinte <st...@wanadoo.be> on 2001/07/24 12:25:47 UTC

JSPServlet worked fine.

hello,

I conducted a simple test on the JspPortlet, and it worked fine.

I also conducted a basic test on ServletInvokerPortlet, and it worked fine 
( I tried a basic "HelloWorld'").

However, as soon as I use RequestDispatcher.include(...) methods in my 
servlet, to redirect the output toward a JSP,
I receive an exception in Jetspeed's log, which is displayed on the 
jetspeed screen...

Is this not permitted in the Jetspeed framework?

I tried to modify the jetspeed code, and commented out the line

data.getResponse().setBufferSize(jsp.getDefaultBufferSize());

in the class JetspeedJspPage. When I do this, my servlet gets called in an 
infinite loop...and of course no output!

Do someone understand what might be happening?

thanks a lot,

Stan.


Stanislas Pinte
Computer Consultant

Sales Director
Alto Software

20 Pl St Jacques
B-4000 Liège
Tel+Fax: +32 -(0)4 221 35 08
GSM: +32 -(0)478 57 61 80
web: http://www.altosw.be
email: stan@altosw.be

RE: JSPServlet worked fine.

Posted by Stan Pinte <st...@wanadoo.be>.
At 09:04 24/07/2001 -0700, you wrote:
> > However, as soon as I use RequestDispatcher.include(...)
> > methods in my
> > servlet, to redirect the output toward a JSP,
> > I receive an exception in Jetspeed's log, which is displayed on the
> > jetspeed screen...
>
>So if I understand you correctly (my apologies if I do not), you have a
>portlet, which includes a servlet, which then includes another another
>servlet (a JSP).


Exactly. The traditionnal servlet-JSP scenario.

>  Jetspeed shouldn't impose any limits there. Could you send
>us some small code examples?


Yes; there you are.

content of the archive:

/src
--> contains the source code of the "faulty" servlet.
/conf
--> contains the local-portlets.xreg file, with an entry for my portlet.
/psml/anon/html
--> contains the "default.psml" file, modified to include my portlet. ( in 
a "tab" called "ProblemPortlet")
/
--> contains a .jsp file, very simple.

>Are you using the cvs head or the 1.3a1 release?

latest CVS ( made an "update" two days ago) ( If my example works in the 
latest stable release (which is?), I would switch with pleasure...

thanks a lot for helping,

NOTE: something amazing: I made the test under Resin, just for the fun, and 
it actually worked!!!!!

May it be a Tomcat-3.2.2 bug???? Or is resin handling badly the servlets 
specs???

I am confused. Tomcat-3.2.2 is supposed to be a stable release, isn't it?

It could be interesting to test that sample with the latest tomcat release...

Stan.


RE: JSPServlet worked fine.

Posted by Stan Pinte <st...@wanadoo.be>.
At 09:04 24/07/2001 -0700, you wrote:
> > However, as soon as I use RequestDispatcher.include(...)
> > methods in my
> > servlet, to redirect the output toward a JSP,
> > I receive an exception in Jetspeed's log, which is displayed on the
> > jetspeed screen...
>
>So if I understand you correctly (my apologies if I do not), you have a
>portlet, which includes a servlet, which then includes another another
>servlet (a JSP). Jetspeed shouldn't impose any limits there. Could you send
>us some small code examples?
>Are you using the cvs head or the 1.3a1 release?


The CVS one. I should have the time today to give you a generic example of 
the problem, with non-application specific code.

Stan.



>-------------------------------------
>David Sean Taylor
>taylor@apache.org
>-------------------------------------
>http://jakarta.apache.org/jetspeed
>-------------------------------------
>
>
>
>
> > -----Original Message-----
> > From: Stan Pinte [mailto:stan.pinte@wanadoo.be]
> > Sent: Tuesday, July 24, 2001 3:26 AM
> > To: jetspeed-dev@jakarta.apache.org; jetspeed-user@jakarta.apache.org
> > Subject: JSPServlet worked fine.
> >
> >
> >
> > hello,
> >
> > I conducted a simple test on the JspPortlet, and it worked fine.
> >
> > I also conducted a basic test on ServletInvokerPortlet, and
> > it worked fine
> > ( I tried a basic "HelloWorld'").
> >
> > However, as soon as I use RequestDispatcher.include(...)
> > methods in my
> > servlet, to redirect the output toward a JSP,
> > I receive an exception in Jetspeed's log, which is displayed on the
> > jetspeed screen...
> >
> > Is this not permitted in the Jetspeed framework?
> >
> > I tried to modify the jetspeed code, and commented out the line
> >
> > data.getResponse().setBufferSize(jsp.getDefaultBufferSize());
> >
> > in the class JetspeedJspPage. When I do this, my servlet gets
> > called in an
> > infinite loop...and of course no output!
> >
> > Do someone understand what might be happening?
> >
> > thanks a lot,
> >
> > Stan.
> >
> >
> > Stanislas Pinte
> > Computer Consultant
> >
> > Sales Director
> > Alto Software
> >
> > 20 Pl St Jacques
> > B-4000 Liège
> > Tel+Fax: +32 -(0)4 221 35 08
> > GSM: +32 -(0)478 57 61 80
> > web: http://www.altosw.be
> > email: stan@altosw.be
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org

Stanislas Pinte
Computer Consultant

Sales Director
Alto Software

20 Pl St Jacques
B-4000 Liège
Tel+Fax: +32 -(0)4 221 35 08
GSM: +32 -(0)478 57 61 80
web: http://www.altosw.be
email: stan@altosw.be

RE: JSPServlet worked fine.

Posted by David Sean Taylor <da...@bluesunrise.com>.
> However, as soon as I use RequestDispatcher.include(...)
> methods in my
> servlet, to redirect the output toward a JSP,
> I receive an exception in Jetspeed's log, which is displayed on the
> jetspeed screen...

So if I understand you correctly (my apologies if I do not), you have a
portlet, which includes a servlet, which then includes another another
servlet (a JSP). Jetspeed shouldn't impose any limits there. Could you send
us some small code examples?
Are you using the cvs head or the 1.3a1 release?


-------------------------------------
David Sean Taylor
taylor@apache.org
-------------------------------------
http://jakarta.apache.org/jetspeed
-------------------------------------




> -----Original Message-----
> From: Stan Pinte [mailto:stan.pinte@wanadoo.be]
> Sent: Tuesday, July 24, 2001 3:26 AM
> To: jetspeed-dev@jakarta.apache.org; jetspeed-user@jakarta.apache.org
> Subject: JSPServlet worked fine.
>
>
>
> hello,
>
> I conducted a simple test on the JspPortlet, and it worked fine.
>
> I also conducted a basic test on ServletInvokerPortlet, and
> it worked fine
> ( I tried a basic "HelloWorld'").
>
> However, as soon as I use RequestDispatcher.include(...)
> methods in my
> servlet, to redirect the output toward a JSP,
> I receive an exception in Jetspeed's log, which is displayed on the
> jetspeed screen...
>
> Is this not permitted in the Jetspeed framework?
>
> I tried to modify the jetspeed code, and commented out the line
>
> data.getResponse().setBufferSize(jsp.getDefaultBufferSize());
>
> in the class JetspeedJspPage. When I do this, my servlet gets
> called in an
> infinite loop...and of course no output!
>
> Do someone understand what might be happening?
>
> thanks a lot,
>
> Stan.
>
>
> Stanislas Pinte
> Computer Consultant
>
> Sales Director
> Alto Software
>
> 20 Pl St Jacques
> B-4000 Liège
> Tel+Fax: +32 -(0)4 221 35 08
> GSM: +32 -(0)478 57 61 80
> web: http://www.altosw.be
> email: stan@altosw.be



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org