did anyone run beer4all successfully?

2002-12-03 Thread c tang
I downloaded a web app created by Chuck Cavaness from http://jakarta.apache.org/struts/resources/projects.html and failed to run it? I am running struts 1.1b2 and tomcat4.1.12, jdk1.3.1. The exception I got is [org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR: SQLException during the ex ecutio

Re: tiles-config.dtd - 403 Forbidden Error

2002-03-01 Thread c tang
In tile-def.xml, there is no SYSTEM resource specified. What is the machanism used to located tiles-config.dtd? Thanks! --- Cedric Dumoulin <[EMAIL PROTECTED]> wrote: > > The dtd is not available at this address, but this > doesn't affect Tiles > validation process. When Tiles digester want

error running tile: Can't get definition 'examples.rssChannels.page'

2002-02-18 Thread c tang
Hi, I ran struts-tiles.war of 20020218 nightly build and got an error message. The app is run as it with no modification. javax.servlet.jsp.JspException: Error - Tag Insert : Can't get definition 'examples.rssChannels.page'. Check if this name exist in definitions factory. at org.apach

Re: error running tile: Cannot find message resources

2002-02-15 Thread c tang
- Cedric Dumoulin <[EMAIL PROTECTED]> wrote: > > The example run on my development version. What > about the others links in examples ? > Maybe a problem with your configuration ? > > Cedric > > c tang wrote: > > > I am running the app as "as

Re: error running tile: Cannot find message resources

2002-02-13 Thread c tang
I am running the app as "as is". I used the trick you suggested and it solved the resource problem. Another problem occured when accessing examples/rssChannels.jsp here is the exception, javax.servlet.jsp.JspException: Error - Tag Insert : Can't get definition 'examples.rssChannels.page'. Chec

error running tile: Cannot find message resources

2002-02-13 Thread c tang
I tried to run tile tutorial and got Cannot find message resources error message. I am running struts 20020110 nightly and tomcat4.0.2. javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message

Re: Is there a better way to write this code?

2002-01-18 Thread c tang
One simple reason for not using scriptlet is that making a jsp page an invalid xml doc. ct --- Arron Bates <[EMAIL PROTECTED]> wrote: > c tang wrote: > > >You are right this thing is very powerful. But > that > >should not be the reason to not doing it. I can &

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
ribute in the tag , the output is the > toString > of the object, like the above example. > > This may help to avoid scriptlet in the JSP in some > cases. > > Fernando > > > - Original Message - > From: "c tang" <[EMAIL PROTECTED]> >

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
t; scripting. The MVC model is to decouple a the model. > Having access to a > specific api isn't decoupling. > > > Arron. > > c tang wrote: > > >Creating a wrapper class may get rid of scriptlet > in > >JSP. But that means for every public api (s

Re: Is there a better way to write this code?

2002-01-17 Thread c tang
scriptlet because it bloats the class number significantly. ct --- Arron Bates <[EMAIL PROTECTED]> wrote: > A getter method like... > > public int getMyListSize() { > return this.myList.getSize(); > } > > with a tag like... > > ...maybe? > > > Arron. > &g

Re: Is there a better way to write this code?

2002-01-16 Thread c tang
I agree with Alex that current strut taglib has a big deficiency. It allows only access through get/set methods of a property. How do I write the size of collection object to a page without resorting scriptlet or <%=? How do I write toString() output to a page without resorting scriptlet or <%=

Re: Struts-JNDI lookups

2001-12-21 Thread c tang
tomcat4 starts its own JNDI service by default. To use your own in ejb, start tomcat as below, startup -nonaming ct --- Joanna Chan <[EMAIL PROTECTED]> wrote: > Dear all, > > Could anyone help me with trying to configure a web > application (tomcat-struts) so that it can > communicate with

help: config filter-mapping and struts

2001-11-02 Thread c tang
Hi all, I wrote an app using struts and it works fine. Now I want to add a filter, so that a pre-defined page will be filtered before return. The question is how to specify . I tried lots of options, it does not work. For the following action, I want to compress the response when

template tag and session

2001-10-05 Thread c tang
Does template tag requires to work with session? My web application has lots of pages that are purely publication that no session is required. If I add <%@ page session="false" %> then template content will disappear. If I remove <%@ page session="false" %> which is default to <%@ page session