RE: Tomcat 4.0 Beta3 and Request Attributes Error

2001-05-02 Thread Charles Chen

RequestDispatcher.forward() returns immediately BUT the JSP page has not
been processed yet! The JSP page will only be processed after the servlet
finishes the work, i.e., your doGet or doPost returns. Therefore, there is
no way to access attributes in the JSP page inside the calling servlet.



Cheers,



Charles Chen


-Original Message-
From: Ana [mailto:[EMAIL PROTECTED]]
Sent: 02 May 2001 17:23
To: :
Subject: Tomcat 4.0 Beta3 and Request Attributes Error


Hi,
We think we have discovered an error. We call the include method of the
RequestDispatcher from a servlet. Then,  we  call the setAttribute method
of the request object  of the included JSP. If we call the getAttribute
method of the request object in the servlet (after the include call), then
there is not attribute.

Example:

MyServlet.java:

...
public void service(ServletRequest request, ServletResponse response){
...

getServletConfig().getServletContext().getRequestDispatcher(MyJSP.jsp).for
ward(request,
response);
Object obj = request.getAttribute(MyAttribute);
// obj is null 
...
}

MyJSP.jsp:

...
request.setAttribute(MyAttribute, obj);
...

Thank you.


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





Working combination of apache+lservModule+tomcat? or IIS5 + tomcat?

2001-02-04 Thread Charles Chen


Hi,

Sorry if this is not the right list to ask such a simple question. I thought
this list are read by all those tomcat experts and therefore may get this
answer more quickly.

I am on Win2K platform and have been struggling to get the Java web app
running under apache+tomcat. It is all due to choosing the correct version
of the software I guess, but it is also too difficult to find out those
right versions from the web.

Could someone tell me what is the working combination of apache +
JservModule + tomcat? I downloaded all the latestes version (Apache 1.1.13 +
tomcat 3.2.1). It did not work! I managed to get them all installed and
configured. Apache was started with no complains. But I could not request
any jsp or servlet services.

It is a similar problem I have with the IIS 5.0 + tomcat combination. It did
not work on Win2K. Only if I am willing to go back to IIS4 and some older
version of tomcat might I get it working. But I would like to use the latest
servlet API (at least 2.2).

Any help or pointers would be appreciated.


Many thanks and regards,



Charles



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan Milstein
Sent: 04 February 2001 19:18
To: [EMAIL PROTECTED]
Subject: Tomcat 3 Connector Default Bug Owner


Craig (or anyone who has admin control over Bugzilla),

I notice that you're set as the "default owner" for the "connectors"
component for bugs within Tomcat 3.  I'd like to volunteer to take that role
over (for the time being, at least), but I don't know how to reset that.

Can someone set this up / explain to me how to do so?

-Dan

--

Dan Milstein // [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Working combination of apache+lservModule+tomcat? or IIS5 +tomcat?

2001-02-04 Thread Charles Chen

Ok, point taken. I have unsubscribed from this list.

Charles


-Original Message-
From: Jon Stevens [mailto:[EMAIL PROTECTED]]
Sent: 04 February 2001 22:13
To: [EMAIL PROTECTED]
Subject: Re: Working combination of apache+lservModule+tomcat? or IIS5
+tomcat?


on 2/4/01 12:26 PM, "Charles Chen" [EMAIL PROTECTED] wrote:

 Sorry if this is not the right list to ask such a simple question. I
thought
 this list are read by all those tomcat experts and therefore may get this
 answer more quickly.

Totally unacceptable and a complete lack of respect for the resources
provided to you. You should have asked this question on the User list
because it is a User question. I just updated this page (see below) to cover
this little abuse.

"Summary: Do not abuse resources in order to get help. Asking your
configuration or user type of question on the developers list because you
think that you will get help more quickly by going directly to the
developers instead of to the user base is not very nice. Chances are that
doing this will actually prevent people from answering your question because
it is clear that you are trying to abuse resources. "

http://jakarta.apache.org/site/mail.html

-jon

--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
http://jakarta.apache.org/velocity/ | http://java.apache.org/turbine/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Win2K + Apache + JServ + Tomcat

2001-01-23 Thread Charles Chen

Anybody knows a working combination of Win2K + Apache + Jserv + tomcat?

I installed apache 1.3.12 + tomcat 3.2.1 + jserv (come with tomcat 3.2.1) on
win2K but as soon as the jserv was added into the httpd.conf and the the dll
was copied into the right place, the apache refused to start up.

From the web site information I have searched, it seemt to me that only
certain old versions of apache + jserv + tomcat could work together. No
information could be found about Win2K installation. Any hint + reference +
pointer would be greatly appreciated.


Thanks in anticipation.


Charles


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: tomcat+visualage

2001-01-22 Thread Charles Chen

Anybody knows a working combination of Win2K + Apache + Jserv + tomcat?

I installed apache 1.3.12 + tomcat 3.2.1 + jserv (come with tomcat 3.2.1) on
win2K but as soon as the jserv was added into the httpd.conf and the the dll
was copied into the right place, the apache refused to start up.

From the web site information I have searched, it seemt to me that only
certain old versions of apache + jserv + tomcat could work together. No
information could be found about Win2K installation. Any hint + reference +
pointer would be greatly appreciated.


Thanks in anticipation.


Charles


-Original Message-
From: Graham Stewart [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2001 20:32
To: [EMAIL PROTECTED]
Subject: RE: tomcat+visualage


Simi,

As per Dion's posting we could do with some more information.
However if you are using :

Apache Tomcat Test Environment (Sheldon Wosnick)
http://www7.software.ibm.com/vad.nsf/Data/Document2390?OpenDocument

And you're also running Tomcat 3.2.1 there is a small problem you
may come across.

StartTomcat invokes org.apache.tomcat.startup.Tomcat with an argument list
created with
Object[] arguments = new Object[] {new String[] {""}};

This worked fine for 3.2.b7

However processArgs() in org.apache.tomcat.startup.Tomcat changed
in 3.2.1

processArgs() will try to process "", find it doesn't recognise it and
come back with a Usage : report.

I've got round it by passing arguments to set tomcat.home to "."

Object[] arguments = new Object[] {new String[] {"-h", "."}};

cheers

Graham

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
che.org]On Behalf Of simi jose
Sent: 21 January 2001 07:38
To: [EMAIL PROTECTED]
Subject: tomcat+visualage



hi,

 I found following problems while connecting tomcat with visualage. I got
exception as invocation target  exception while running the startTtomcat
class
but the stoptomcat class is working properly.My assumption is that there may
be some error in Tomcat.java class.so please send me the
org.apache.tomcat.startup.Tomcat.java class.Suggest some methods to correct
the error.


Get free email and a permanent address at http://www.netaddress.com/?N=1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]