You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erwin Cabral <er...@yahoo.com> on 2004/05/08 07:15:20 UTC
DispatchAction vs. Action
I am currently breaking down our use-cases into
different sub use-cases and mapping them every one of
them to a single Action class. In some scenarios, its
better to group related methods into a single
DispatchAction class but sometimes it is logically
plausible to consider a single method to be part of a
separate Action class.
Is there any difference in performance when deciding
to use DispatchAction class over Action class?
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts 1.0 question - defining multiple controllers
Posted by Martin Cooper <ma...@apache.org>.
Answer: It won't work. I suppose you might get lucky if both instances use
*exactly* the same configuration, but then there wouldn't be any point to
doing that in the first place. Struts stores almost all of its config data
in the servlet context, so if you try to have more than one instance,
they'll be tripping over each other all the time.
Why would you need more than one instance, though?
--
Martin Cooper
"Khalid K." <gr...@maikada.com> wrote in message
news:004c01c436fd$9742f4f0$eefbe542@home...
Platform websphere/struts 1.0 (updating to 1.1 out of question)
Question: Are there any draw backs of declaring multiple controller
servlets in one web app ??
I've heard that it is not recommended because they will share the
same servlet context which will cause problems ???
Whoever answers it will get a virtual cookie :) (no..not a 3rd party
cookie....)
Thanks
Khalid
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 5/2/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: building struts from the source code
Posted by Joe Germuska <Jo...@Germuska.com>.
At 7:32 PM -0700 5/10/04, Abhishek Khandelwal wrote:
>Thats what I was wondering,
>I just need a jar, and I had servel-api.jar which happens to be Servlet
>4.0
>
>Where do I get Servelt 2.3?
I would usually get it from http://www.ibiblio.org/maven/servletapi/jars/
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Imagine if every Thursday your shoes exploded if you tied them
the usual way. This happens to us all the time with computers, and
nobody thinks of complaining."
-- Jef Raskin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: building struts from the source code
Posted by Abhishek Khandelwal <ak...@spikesource.com>.
Thats what I was wondering,
I just need a jar, and I had servel-api.jar which happens to be Servlet
4.0
Where do I get Servelt 2.3?
Abhishek
On Mon, 2004-05-10 at 19:29, Joe Germuska wrote:
> At 6:43 PM -0700 5/10/04, Abhishek Khandelwal wrote:
> >Joe,
> >
> >Servlet 2.2 is tomcat 3.0
> >This is pretty old version.
> >
> >Are you sure that it wont even build on tomcat 4.0 , Servlet 2.3??
>
> No, actually I'm sure that it *will* build on Servlet 2.3. But if
> all you want is a jar, does it really matter? Struts doesn't
> *depend* on any Servlet 2.3 features, but it does compile against
> Servlet 2.3.
>
> It's not that Struts wouldn't work in a Servlet 2.4 environment,
> except if somehow that MultipartServletRequestWrapper got handed to
> something which wanted to use methods that aren't defined.
>
> Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: building struts from the source code
Posted by Joe Germuska <Jo...@Germuska.com>.
At 6:43 PM -0700 5/10/04, Abhishek Khandelwal wrote:
>Joe,
>
>Servlet 2.2 is tomcat 3.0
>This is pretty old version.
>
>Are you sure that it wont even build on tomcat 4.0 , Servlet 2.3??
No, actually I'm sure that it *will* build on Servlet 2.3. But if
all you want is a jar, does it really matter? Struts doesn't
*depend* on any Servlet 2.3 features, but it does compile against
Servlet 2.3.
It's not that Struts wouldn't work in a Servlet 2.4 environment,
except if somehow that MultipartServletRequestWrapper got handed to
something which wanted to use methods that aren't defined.
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Imagine if every Thursday your shoes exploded if you tied them
the usual way. This happens to us all the time with computers, and
nobody thinks of complaining."
-- Jef Raskin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
(Repost) Struts 1.0 question - defining multiple controllers
Posted by "Khalid K." <gr...@maikada.com>.
Anyone...help?
> Platform websphere/struts 1.0 (updating to 1.1 out of question)
>
> Question: Are there any draw backs of declaring multiple controller
> servlets in one web app ??
> I've heard that it is not recommended because they will share the
> same servlet context which will cause problems ???
>
>
> Whoever answers it will get a virtual cookie :) (no..not a 3rd party
> cookie....)
>
> Thanks
>
> Khalid
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.674 / Virus Database: 436 - Release Date: 5/2/2004
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
--
Khalid K.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Struts 1.0 question - defining multiple controllers
Posted by "Khalid K." <gr...@maikada.com>.
Platform websphere/struts 1.0 (updating to 1.1 out of question)
Question: Are there any draw backs of declaring multiple controller
servlets in one web app ??
I've heard that it is not recommended because they will share the
same servlet context which will cause problems ???
Whoever answers it will get a virtual cookie :) (no..not a 3rd party
cookie....)
Thanks
Khalid
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 5/2/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: building struts from the source code
Posted by Abhishek Khandelwal <ak...@spikesource.com>.
Joe,
Servlet 2.2 is tomcat 3.0
This is pretty old version.
Are you sure that it wont even build on tomcat 4.0 , Servlet 2.3??
Abhishek
On Mon, 2004-05-10 at 18:27, Joe Germuska wrote:
> At 5:09 PM -0700 5/10/04, Abhishek Khandelwal wrote:
> >I am getting this error when I try to do ant dist on the source code of
> >the struts framework.
> >
> >Anyone has any idea what might the error be??? I have correctly set path
> >for servlet-api.jar and jsp-api.jar
> >
> >-------------------------------------------------------------------------
> >
> >jakarta-struts-1.1-src/src/share/org/apache/struts/upload/MultipartRequestWrapper.java:95:
> >org.apache.struts.upload.MultipartRequestWrapper is not abstract and
> >does not override abstract method getLocalPort() in
> >javax.servlet.ServletRequest
> > [javac] public class MultipartRequestWrapper implements
> >HttpServletRequest {
> >
>
> getLocalPort is new in Servlet 2.4
>
> http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getLocalPort()
>
> There are a few others methods like that which were added in Servlet 2.4.
>
> Struts is officially developed against Servlet 2.2, so the best
> interim solution would be to compile against an earlier version of
> servlet-api.jar.
>
> Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: building struts from the source code
Posted by Joe Germuska <Jo...@Germuska.com>.
At 5:09 PM -0700 5/10/04, Abhishek Khandelwal wrote:
>I am getting this error when I try to do ant dist on the source code of
>the struts framework.
>
>Anyone has any idea what might the error be??? I have correctly set path
>for servlet-api.jar and jsp-api.jar
>
>-------------------------------------------------------------------------
>
>jakarta-struts-1.1-src/src/share/org/apache/struts/upload/MultipartRequestWrapper.java:95:
>org.apache.struts.upload.MultipartRequestWrapper is not abstract and
>does not override abstract method getLocalPort() in
>javax.servlet.ServletRequest
> [javac] public class MultipartRequestWrapper implements
>HttpServletRequest {
>
getLocalPort is new in Servlet 2.4
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getLocalPort()
There are a few others methods like that which were added in Servlet 2.4.
Struts is officially developed against Servlet 2.2, so the best
interim solution would be to compile against an earlier version of
servlet-api.jar.
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Imagine if every Thursday your shoes exploded if you tied them
the usual way. This happens to us all the time with computers, and
nobody thinks of complaining."
-- Jef Raskin
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
building struts from the source code
Posted by Abhishek Khandelwal <ak...@spikesource.com>.
I am getting this error when I try to do ant dist on the source code of
the struts framework.
Anyone has any idea what might the error be??? I have correctly set path
for servlet-api.jar and jsp-api.jar
-------------------------------------------------------------------------
jakarta-struts-1.1-src/src/share/org/apache/struts/upload/MultipartRequestWrapper.java:95: org.apache.struts.upload.MultipartRequestWrapper is not abstract and does not override abstract method getLocalPort() in javax.servlet.ServletRequest
[javac] public class MultipartRequestWrapper implements
HttpServletRequest {
---------------------------------------------------------------------------
Thanks,
Abhishek
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
need help
Posted by Abhishek Khandelwal <ak...@spikesource.com>.
Hi,
I am trying to build struts from the source code.
In build.properties, there is a property
struts-legacy.jar=contrib/struts-legacy/dist/struts-legacy.jar
There was no struts-legacy.jar along with distribution.
I thought, may be it generated automatically.
But when I run ant dist, it fails showing that file struts-legacy.jar
does not exists.
Please let me know how to proceeed.
Thanks,
Abhishek
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org