Re: Strutstest with tiles - verifyForward behavior

2002-11-21 Thread Thomas Quas

Pete,

I'm seeing the same behavior... plus more weirdness. I'm using the 
latest CVS snapshot; I guess strutstestcase is not ready for testing 
those kind of Struts applications yet.


tom

Pete Gieser wrote:
Using MockStrutsCase (from release 1.9) with the following test method:
 
public void testManagerSuccess()
{
setRequestPathInfo("/famnet");
actionPerform();
verifyForward("success");
assertNotNull(getSession().getAttribute("members"));
verifyNoActionErrors();
}

and this section from struts-config.xml:
 

  


and this section from tiles-def.xml:
 
  
extends="main.layout">


  

I'm getting the following error:
 
processActionForward(famnet.list, false)
  'famnet.list' - processed as definition
-  ---
 
Testcase: testManagerSuccess took 3.636 sec
 FAILED
was expecting 'famnet.list' but received '/layout/layout.jsp'
junit.framework.AssertionFailedError: was expecting 'famnet.list' but
received '/layout/layout.jsp'
 at servletunit.struts.Common.verifyForwardPath(Common.java:152)
 at
servletunit.struts.MockStrutsTestCase.verifyForward(MockStrutsTestCase.j
ava:462)
 at
struts.junit.TestManagerAction.testManagerSuccess(TestManagerAction.java
:26)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 
Is this a bug, or is there something else I should be doing?
 
Pete



--
thomas quas| "The truth indeed has never been preached by the 
Buddha,
[EMAIL PROTECTED]|  seeing that one has to realize it within oneself."
   |-- Lamkara Sutra --




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Tomcat-4.0.1 & Struts-1.0 do *not* go together

2001-12-01 Thread Thomas Quas


Sorry if I'm not telling you news, but I thought it might be worthwhile 
mentioning.


This is the environment:

$ uname -a
Linux gollum.tquas.org 2.2.19 #4 Sun Nov 25 14:35:48 CET 2001 i686 unknown

$ java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, interpreted mode)



I hacked a .jsp starting with the following lines:

<%@ page language="java" %>
<%@ page import="java.io.*, javax.servlet.jsp.PageContext" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>


and it would *crash* Tomcat causing it to dump core. When I switched 
back to Tomcat-4.0 it worked just fine.

I figured out that the two 'taglib' statements caused the problems, but 
don't ask me why that is. I attached the file in case somebody wants to 
investigate.



tom
-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
|-- Allen Ginsberg --



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


Re: Local Forward with Parameters Causes Exception

2001-08-29 Thread Thomas Quas


Thanks Martin. Gee, finally I have to get my hands dirty on XML ;-)


[EMAIL PROTECTED] wrote:
> 
> The parser doesn't know what you want, it only knows what it sees. :-) In
> this case, it had started parsing an XML entity reference - something like
> & - and found a parse failure for the reference because it expected to
> see &sortBy; instead of &sortBy=. That is, it expected a semicolon, but what
> it got was an equals.
> 
> --
> Martin Cooper
> 
> - Original Message -
> From: "Thomas Quas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 28, 2001 10:42 PM
> Subject: Re: Local Forward with Parameters Causes Exception
> 
> >
> > Thanks all,
> >
> > problem solved. I'm still puzzled, however, about the message in the
> > parser exception that told me to use semicolons. Where does this come
> > from, and shouldn't/can't this be changed to be more expressive?
> >
> >
> > Thanks again, tom
> >
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Not with " but with & like this:
> > >
> > >  > >
> > >
> path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > >
> > > --
> > > Martin Cooper
> > >
> > > - Original Message -
> > > From: "Eung-ju Park" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, August 26, 2001 4:56 AM
> > > Subject: Re: Local Forward with Parameters Causes Exception
> > >
> > > > replace '&' with '"'
> > > >
> > > > - Original Message -
> > > > From: "Thomas Quas" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Sunday, August 26, 2001 4:44 PM
> > > > Subject: Local Forward with Parameters Causes Exception
> > > >
> > > >
> > > > >
> > > > > Hi,
> > > > >
> > > > > I ran into the following problem: I want to specify a local forward
> that
> > > > > represents an action URL. The action requires parameters that I want
> to
> > > > > pass
> > > > > in common HTTP fashion, namely
> > > > >
> > > > > /product.do?action=list&sortBy=date&order=desc
> > > > >
> > > > >
> > > > > Therefore, I have an entry in struts-confix.xml that looks like
> this:
> > > > >
> > > > >  > > > > type="tquas.bogus.servlet.ProductActions"
> > > > > parameter="action"
> > > > > name="productForm"
> > > > > scope="request"
> > > > > unknown="false"
> > > > > validate="true">
> > > > >  > > > >
> > > > > path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > > > > 
> > > > >
> > > > > where ProductActions is a subclass of DispatchAction containing an
> > > > > implementation of method list().
> > > > >
> > > > > The problem is that the XML parser throws an exception, basically
> > > > > telling me
> > > > > that ampersands are not allowed in this URI:
> > > > >
> > > > > org.xml.sax.SAXParseException: Next character must be ";"
> terminating
> > > > > reference to entity "sortBy".
> > > > > at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
> > > > > at
> org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
> > > > > at
> org.apache.crimson.parser.Parser2.nextChar(Parser2.java:2951)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:715)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1375)
> > > > > at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > > > at
> > > > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > > > at
> org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > &g

Re: Help: Cannot find bean BEAN in scope null

2001-08-29 Thread Thomas Quas


Gary,

it usually happens to me when I close the  too early, meaning
there are some 's or others floating around after I did
.


Hope this helps, tom


Gary Kephart wrote:
> 
> I get this message in the log file:
> 
> Cannot find bean org.apache.struts.taglib.html.BEAN in scope null
> 
> Does anyone know why this happened and how to fix it?
> 
> Thanks,
>   Gary
> --
> Gary Kephart   | Basis 100
> Software Engineer  | 4 Park Plaza, Suite 800
> [EMAIL PROTECTED]  | Irvine, CA 92614
> (949) 852-8600x262 | http://www.basis100.com
> 
> This communication is intended only for the use of the individual or
> entity to whom/which it is addressed, and information contained in this
> communication is privileged and confidential.  If the receiver of this
> message is not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> 
> prohibited.  If you have received this communication in error, please
> notify us at the above telephone number (so that we may correct our
> internal records) and delete this communication without making a copy of
> 
> it.  Thank you.

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Real World Struts

2001-08-29 Thread Thomas Quas


Will,

I'm what I would call an intermediate JSP programmer, and switched to
Struts recently. The (one man) project I'm currently working on does not
require modifications in terms of extending the Struts framework with
new factories or the like, but rather focuses on a simple Web interface
and internationalization.

I'm using struts for about two weeks now, and I reached my milestones
fairly quickly. More quickly than if I would have used JSP--which is
what I did before. Struts and its taglibs provide excellent support for
realizing a Web interface rapidly. I also found the mailing list a
valuable resource where I get responses within minutes or hours.

Personally, I found the learning curve not quite as steep as it sounds
when you describe it. It took me two days to get the basic concepts and
realize my first pages. After two weeks I have completed three workflows
containing four pages each--including functional test code using
httpunit. Plus I'm working 4h days...

If your developers have a good understanding of JSP I do not see why
they should have problems with Struts. Au contraire, I found this is an
excellent basis for jumping into Struts since daily work proofed to
require knowledge in both areas. I'm basically using Struts for workflow
issues, form handling & i18n, mixing it with JSP when necessary.


Hope this helps to make the right decision, tom


Will Spies/Towers Perrin wrote:
> 
> We have been dabbling with struts. We have an upcoming project and are
> faced with a decision to use Struts or to continue to use plain old JSP.  I
> understand the long term benefits of struts however I must do a cost
> comparison of using struts as opposed to using JSP. We have developers who
> are familiar with JSP and Java and J2EE. Struts would be the only learning
> curve ( and it's not exactly a small learning curve ). So, I'm wondering if
> anyone has any real world experience that they would like to share
> regarding making this transition. Perhaps with estimating the man hours
> needed to train some number of existing Java developers in Struts and then
> beginning a project building a system with , just as an example, say
> roughly 30 screens. Anyone do anything like this for real recently?

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Local Forward with Parameters Causes Exception

2001-08-28 Thread Thomas Quas


Thanks all,

problem solved. I'm still puzzled, however, about the message in the
parser exception that told me to use semicolons. Where does this come
from, and shouldn't/can't this be changed to be more expressive?


Thanks again, tom


[EMAIL PROTECTED] wrote:
> 
> Not with " but with & like this:
> 
>  
> path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> 
> --
> Martin Cooper
> 
> - Original Message -
> From: "Eung-ju Park" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 26, 2001 4:56 AM
> Subject: Re: Local Forward with Parameters Causes Exception
> 
> > replace '&' with '"'
> >
> > - Original Message -
> > From: "Thomas Quas" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, August 26, 2001 4:44 PM
> > Subject: Local Forward with Parameters Causes Exception
> >
> >
> > >
> > > Hi,
> > >
> > > I ran into the following problem: I want to specify a local forward that
> > > represents an action URL. The action requires parameters that I want to
> > > pass
> > > in common HTTP fashion, namely
> > >
> > > /product.do?action=list&sortBy=date&order=desc
> > >
> > >
> > > Therefore, I have an entry in struts-confix.xml that looks like this:
> > >
> > >  > > type="tquas.bogus.servlet.ProductActions"
> > > parameter="action"
> > > name="productForm"
> > > scope="request"
> > > unknown="false"
> > > validate="true">
> > >  > >
> > > path="/product.do?action=list&sortBy=date&order=desc&count=10"/>
> > > 
> > >
> > > where ProductActions is a subclass of DispatchAction containing an
> > > implementation of method list().
> > >
> > > The problem is that the XML parser throws an exception, basically
> > > telling me
> > > that ampersands are not allowed in this URI:
> > >
> > > org.xml.sax.SAXParseException: Next character must be ";" terminating
> > > reference to entity "sortBy".
> > > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
> > > at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3029)
> > > at org.apache.crimson.parser.Parser2.nextChar(Parser2.java:2951)
> > > at
> > > org.apache.crimson.parser.Parser2.parseLiteral(Parser2.java:715)
> > > at
> > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1375)
> > > at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > at
> > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > at
> > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
> > > at
> > > org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
> > > at
> > > org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
> > > at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
> > > at
> > > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
> > > at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
> > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
> > > at org.apache.struts.digester.Digester.parse(Digester.java:755)
> > > at
> > >
> >
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> > > at
> > > org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> > > [snip]
> > >
> > >
> > > This kind of puzzled me, but I obeyed and replaced the ampersands wit

Local Forward with Parameters Causes Exception

2001-08-26 Thread Thomas Quas
nerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:984)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.StackOverflowError
at java.lang.String.hashCode(String.java:1122)
at java.util.HashMap.put(HashMap.java:327)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(ApplicationHttpRequest.java:249)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(ApplicationHttpRequest.java:249)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(ApplicationHttpRequest.java:251)
at
org.apache.catalina.core.ApplicationHttpRequest.setAttribute(ApplicationHttpRequest.java:251)

[*** last message repeated several times]

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: bean:message tag

2001-08-20 Thread Thomas Quas


Matt,

what I'm currently doing is something like this: In, say, x.jsp I write

...
 class="feedback">






whereas in AppRes.properties I have

login.error.1=...
login.error.2=...


Yeah, it is rather uncomfortable--and only necessary if you really need
to have support for i18n--but I can be sure that after a designer
changed the page design there are no disturbing effects coming from my
language definitions. The designer can concentrate on the .jsp file and
does not need to care about language--in the ideal case ;-)

The same concept should work for your table header definitions.


tom


Matt Raible wrote:
> 
> Tom - it seems that you are correct, my html does show up correctly.
> 
> The reason I have html in my properties file is because I want to display
> certain images with my messages.
> 
> Let's take the following key for example:
> 
> error.password.mismatch=   src="/dc/common/images/iconWarning.gif" width="12" height="12"
> align="absmiddle" alt="Warning">  Invalid username and/or password,
> please try again.
> 
> I can probably move ... into my jsp page, but I'm already
> using error.header and error.footer with html, so this seemed natural:
> 
> errors.header=
> errors.footer=
> 
> I could probably also parameterize my  so that this could be a
> different key in my properties file, but then I'd have to add a little more
> code to my action classes (or validation.xml file).
> 
> This brings up another point - I wish I could dynamically set the path to my
> image, using a scriptlet or  tag, meaning replace "/dc/common" with
> "<%=pathToImages%>" - but doesn't seem to work.
> 
> We get all our static files through the webserver (vs. appserver) - that's why
> I can't get it from the war.
> 
> Matt
> 
> --- Thomas Quas <[EMAIL PROTECTED]> wrote:
> >
> > Matt,
> >
> > I'm not sure whether I understood the problem correctly, but I did the
> > same thing for a while, and it worked for me without "flush" or other
> > tricks. I simply included the message via , not
> > matter whether there was HTML in it or not.
> >
> > Note, however, that it can be problematic to mix layout and content
> > information. This was the big disadvantage of HTML, and people tried to
> > address it with XML and stylesheets, making the two independent of each
> > other. I'd recommend putting layout information, such as , , 
> > etc. in the .jsp, whereas the .properties file should only contain
> > content. This way your translators don't need to know HTML. Of course,
> > we might open up another can of worms here if we don't have the same
> > page layout for all languages.
> >
> >
> > Just my $0.02, tom
> >
> >
> > Matt Raible wrote:
> > >
> > > I am using  and I want to have HTML in my
> > > key.name string, such as:
> > >
> > > key.name=Hello World
> > >
> > > So ideally, I could make my tag resemble  > > flush="true" />, but there is no filter attribute on this tag?
> > >
> > > How can I do this, do I have to use , and if so, how do I get
> > the
> > > messages bean?
> > >
> > > Can it be done using:
> > >
> > > 
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > __
> > > Do You Yahoo!?
> > > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > > http://phonecard.yahoo.com/
> >
> > --
> > thomas quas| "Art lies in the consciousness of doing the thing,
> > [EMAIL PROTECTED]  |  in the attention of the happening[...]"
> >|-- Allen Ginsberg --
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: bean:message tag

2001-08-19 Thread Thomas Quas


Matt,

I'm not sure whether I understood the problem correctly, but I did the
same thing for a while, and it worked for me without "flush" or other
tricks. I simply included the message via , not
matter whether there was HTML in it or not.

Note, however, that it can be problematic to mix layout and content
information. This was the big disadvantage of HTML, and people tried to
address it with XML and stylesheets, making the two independent of each
other. I'd recommend putting layout information, such as , , 
etc. in the .jsp, whereas the .properties file should only contain
content. This way your translators don't need to know HTML. Of course,
we might open up another can of worms here if we don't have the same
page layout for all languages.


Just my $0.02, tom


Matt Raible wrote:
> 
> I am using  and I want to have HTML in my
> key.name string, such as:
> 
> key.name=Hello World
> 
> So ideally, I could make my tag resemble  flush="true" />, but there is no filter attribute on this tag?
> 
> How can I do this, do I have to use , and if so, how do I get the
> messages bean?
> 
> Can it be done using:
> 
> 
> 
> Thanks,
> 
> Matt
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: sorting of columns in JSP page

2001-08-15 Thread Thomas Quas


John,

I'd be interested in the code, too.


tom


John Schroeder wrote:
> 
> Hi Earl,
> 
> I've just had to tackle that same problem...
> 
> I have created a Table object that currently consists of a List of Lists.  I
> also have a set of tags that will display this type of object.
> 
> You can sort the table by column (currently using the MergeSort algorithm).
> I haven't yet incorporated sorting into my taglibs, but if you think this
> code may help you then contact me directly...
> 
> --John
-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Cannot retrieve mapping for action

2001-08-09 Thread Thomas Quas


Brian,

Do you have this servlet mapping in your web.xml?


action
*.do


Also, is there a particular reason why you override the mapping
parameter with your custom.CustomMapping class? Does it work if you
switch back to the default/comment this setting out?


Hope this helps, tom



"Brian K. Buckley" wrote:
> 
> Hi,  I'm a brand new Struts user.  I installed the struts 1.0 binary and I'm
> attempting to work through a struts trailmap tutorial (the one at
> bluestone.com).
> 
> I am getting a Servlet Exception with the message "Cannot retrieve mapping
> for action /custom" when I call a simple input.jsp.  My input.jsp, my
> struts-config.xml and a piece of my web.xml are shown below.
> 
> Can someone suggest what is causing this errror?
> 
> Thanks,
> 
> -Brian
> 
> * input.jsp**
> 
> 
> 
> 
> * struts-config.xml**
>"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
>   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
> 
> 
> type="custom.CustomForm"/>
> 
> 
>name="customForm">
>   value="Struts User"/>
> 
>   
> 
> 
> 
> * piece of web.xml***
>  
>  action
>  org.apache.struts.action.ActionServlet
>   
>    mapping
>custom.CustomMapping
>   
>  
>config
>/WEB-INF/struts-config.xml
>   
>  
>   validate
>   false
>  
>  
>   application
>   helloworld.HelloWorldResources
>   
>  2
>  

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Struts & Tomcat 4.0

2001-08-09 Thread Thomas Quas


ROTFL. Isn't the world beautiful when we have a chance to find out how
highly sopisticated technical solutions are being applied to satisfy all
kinds of, ahem, human needs?


Have a nice one, tom ;-)


Ted Husted wrote:
> 
> Actually, I work on things like this:
> 
> < http://data.wxxi.org/hop >
> 
> ;-)
> 
> -Ted.
> 
> Thomas Quas wrote:
> > I guess you're working on the struts framework itself. In this case I
> > totally agree with you.

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Struts & Tomcat 4.0

2001-08-09 Thread Thomas Quas


I guess you're working on the struts framework itself. In this case I
totally agree with you.

For developers using struts for their applications, however, it's a
completely different story, especially since the specification changed
between Tomcat version 3 and 4; for them I'd still recommend what I said
before.

Anyway, did I mention that I just started using struts this afternoon? I
like the concept. Good stuff.


tom


Ted Husted wrote:
> 
> Sorry, Tom. I should have said, "I now develop under Tomcat 4 on my own
> station, and then beta test the deployment on the remote server, which
> is usually either TC3 or Resin. This ensures that I am in compliance
> with the latest reference specifications, and not relying on legacy or
> proprietary behaviors."
> 
> I share and reuse my core work, so compliance is important to me. Where
> I have gotten burned is designing around behaviour in one container,
> only to find it did not work that way elsewhere.
> 
> Thomas Quas wrote:
> >
> > Ted Husted wrote:
> > >
> > > Ajay Chitre wrote:
> > > > 1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
> > > > not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
> > >
> > > The only "not" is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
> > > fine. Jakarta betas tend to more reliable that some others since they
> > > are based on the nightly builds, and are tested continually. I would use
> > > TC4 for development, and then deploy using TC32, or Resin, et cetera.
> > > This helps ensure that you are both compliant and portable.
> >
> > I disagree. In a commercial project, you don't want to develop on one
> > version while deploying on another. Decide which one to use and go with
> > the decision until all stakeholders agree with an update. This prevents
> > you from spending a few nichts in the office shortly before product
> > rollout.
> >
> > Just my $0.02, tom

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Struts & Tomcat 4.0

2001-08-09 Thread Thomas Quas

Ted Husted wrote:
> 
> Ajay Chitre wrote:
> > 1)  From one of Craig's emails it sounds like I should be using Tomcat 4.0,
> > not 3.2.  Is that right?  But Tomcat 4.0 is a beta release.  Is it reliable?
> 
> The only "not" is DO NOT USE TOMCAT 3.1 with Struts. Verson 3.2.3 is
> fine. Jakarta betas tend to more reliable that some others since they
> are based on the nightly builds, and are tested continually. I would use
> TC4 for development, and then deploy using TC32, or Resin, et cetera.
> This helps ensure that you are both compliant and portable.

I disagree. In a commercial project, you don't want to develop on one
version while deploying on another. Decide which one to use and go with
the decision until all stakeholders agree with an update. This prevents
you from spending a few nichts in the office shortly before product
rollout.


Just my $0.02, tom
-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Re: Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread Thomas Quas


William,

thanks for your response. However, I don't see how XML can have an
impact in the context of this particalur problem. The resource file is
java.util.ResourceBundle-compliant, and it does not facilitate XML at
all. Do I miss something?


tom


William Jaynes wrote:
> 
> I believe this problem relates to some changes in tomcat4 and xml parsing.
> Here's the relevant portion of the Release Notes:
> 
> --
> Tomcat 4.0 and XML Parsers:
> --
> 
> Previous versions of Tomcat 4.0 exposed the XML parser used by Jasper (the
> JAXP/1.1 reference implementation) to web applications.  This is no longer
> the case, because Jasper loads its parser with a new class loader instead.
> Keep the following points in mind when considering how to use XML parsers
> in Tomcat 4.0 and your web applications:
> 
> * If you wish to make the JAXP/1.1 RI XML parser available to all web
>   applications, simply move the "jaxp.jar" and "crimson.jar" files from
>   the "$TOMCAT_HOME/jasper" directory to the "$TOMCAT_HOME/lib" directory.
> 
> - Original Message -
> From: "Thomas Quas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 09, 2001 7:08 AM
> Subject: Exception: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> 
> Allright, I guess this has been discussed before, but google.com didn't
> give me any concrete results. Neither did I find something browsing the
> mailing list archive.
> 
> I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
> When trying to go to http://localhost:8080/struts-example/index.jsp I
> get the following exception:
> 
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE
> at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.ja
> va:452)
> at
> org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> [snip]
> 
> Has anybody solved this problem, probably with the same setup?
> 
> Thanks, tom
> 
> BTW: is there a FAQ available?
> --
> thomas quas| "Art lies in the consciousness of doing the thing,
> [EMAIL PROTECTED]  |  in the attention of the happening[...]"
>|-- Allen Ginsberg --

-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --



Exception: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-08-09 Thread Thomas Quas


Allright, I guess this has been discussed before, but google.com didn't
give me any concrete results. Neither did I find something browsing the
mailing list archive.

I'm using Tomcat 4.0b6 and struts 1.0final on a Linux box.
When trying to go to http://localhost:8080/struts-example/index.jsp I
get the following exception:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:452)
at
org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:454)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
[snip] 


Has anybody solved this problem, probably with the same setup?


Thanks, tom


BTW: is there a FAQ available?
-- 
thomas quas| "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED]  |  in the attention of the happening[...]"
   |-- Allen Ginsberg --