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
ecution of materializeObject: Table not found: S0002
Table not found: OJB_HL_SEQ
 in statement [SELECT
MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ
WHER
E (OJB_HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
(OJB_HL_SEQ.FIELDNAME = 'id' )]
Table not found: S0002 Table not found: OJB_HL_SEQ in
statement [SELECT MAX_KEY,
TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ WHERE
(OJB_HL_SEQ.TABLENAME = 'OJB
_DLIST' ) AND (OJB_HL_SEQ.FIELDNAME = 'id' )]
java.sql.SQLException: Table not found: S0002 Table
not found: OJB_HL_SEQ in sta
tement [SELECT MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME
FROM OJB_HL_SEQ WHERE (OJB_
HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
(OJB_HL_SEQ.FIELDNAME = 'id' )]
at org.hsqldb.Trace.getError(Trace.java:226)
at
org.hsqldb.jdbcResultSet.(jdbcResultSet.java:6595)
at
org.hsqldb.jdbcConnection.executeStandalone(jdbcConnection.java:2951)

at
org.hsqldb.jdbcConnection.execute(jdbcConnection.java:2540)
at
org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1804)
at
org.hsqldb.jdbcStatement.executeQuery(jdbcStatement.java:199)
at
org.hsqldb.jdbcPreparedStatement.executeQuery(jdbcPreparedStatement.j
ava:391)
at
org.apache.ojb.broker.accesslayer.JdbcAccess.materializeObject(Unknow
n Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getDBObject(Unkn
own Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByIdent
ity(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByExamp
le(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByQuery
(Unknown Source)
at
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.getUni
queId(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getUniqueId(Unkn
own Source)
at
org.apache.ojb.odmg.collections.DListImpl.generateNewId(Unknown
Sourc
e)
at
org.apache.ojb.odmg.collections.DListImpl.(Unknown
Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.odmg.oql.OQLQueryImpl.execute(Unknown
Source)
at
com.cavaness.beer4all.service.Beer4AllOBJService.getFeaturedCatalogs(
Beer4AllOBJService.java:32)
at
com.cavaness.beer4all.catalog.WelcomeAction.execute(WelcomeAction.jav
a:18)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
a:427)
at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:17
7)
at
org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:78
)
at
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPi

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 to
> validate an xml file, it uses a
> version of the dtd located in tiles.jar (this dtd is
> linked to the specified
> URL). There is no need to connect to the specified
> URL. The same process apply to
> Struts's dtds.
> 
>  Cedric
> 
> "Struts Newsgroup (@Basebeans.com)" wrote:
> 
> > Subject: tiles-config.dtd - 403 Forbidden Error
> > From: "Don Miller" <[EMAIL PROTECTED]>
> >  ===
> > I'm getting a 403 Forbidden error when accessing
> the tiles-config.dtd in the
> > following location for validation:
> >
> >
>
http://jakarta.apache.org/struts/dtds/tiles-config.dtd
> >
> > Is there another location to which I can refer in
> my doctype?
> >
> > Thanks,
> > Don
> >
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:496)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:385)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:342)
at
org.apache.jsp.rssChannels$jsp._jspService(rssChannels$jsp.java:69)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: error running tile: Cannot find message resources

2002-02-15 Thread c tang

Hi Cedric,

I downloaded the latest struts build(20020215) and ran
it "as it"; and still got the same error, Can't get
definition 'examples.rssChannels.page' when accessing 
Rss Channels hyperlink.  This link can be reached by
clicking 'Live Examples (new)' in the default page and

then clicking 'Rss Channels' under examples.  All
other links works fine.

I searched every file and cannot find the string
'examples.rssChannels.page'.  Do I need to add  any
configuration files in order to run it?

Thanks!

ct

Tutorial Live Examples 

--- 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 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'.
> > Check if this name exist in definitions factory.
> > at
> >
>
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:496)
> > at
> >
>
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:385)
> > at
> >
>
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:342)
> > at
> >
>
org.apache.jsp.rssChannels$jsp._jspService(rssChannels$jsp.java:69)
> > at
> >
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> > at
> >
>
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> > at
> >
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> > at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> > at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
> >
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
> >
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at
> >
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> > at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> > at
> >
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> > at
> >
&g

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'.
Check if this name exist in definitions factory.
at
org.apache.struts.taglib.tiles.InsertTag.processDefinitionName(InsertTag.java:496)
at
org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:385)
at
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:342)
at
org.apache.jsp.rssChannels$jsp._jspService(rssChannels$jsp.java:69)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)


--- Cedric Dumoulin <[EMAIL PROTECTED]> wrote:
> 
>   There is two possibilities :
> 
>* You have specified a message resource file in
> web.xml, but this file doesn't exist. (not the
>  case if you use Tiles tutorial 'as is').
>* You use a recent Struts version which require a
> resource file even if you don't specify it ;-(
> 
>   I have encountered this problem with latest
> nightly builds, and haven't dig in Struts yet to
> localize the problem (sound like a bug for me). I
> use a trick proposed by Hertzel Karbasi : define an
> empty resource file and specify it in your web.xml
> file.
> 
>   Cedric
> 

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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(RequestUtils.java:735)
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:699)
at
org.apache.struts.taglib.html.BaseHandlerTag.message(BaseHandlerTag.java:568)
at
org.apache.struts.taglib.html.BaseHandlerTag.prepareStyles(BaseHandlerTag.java:623)
at
org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:500)
at
org.apache.jsp.header$jsp._jspService(header$jsp.java:83)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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
> >always do the MyBean.wait() in scriptlet.  There is
> >nothing to stop that.  
> >
> >Power to the developers!
> >
> So why complain about not being able to do something
> and just do it in a 
> scriptlet?...
> 
> 
> Arron.
> 
> (Power to the developer?... Assember's powerful. Why
> don't you make 
> webapps in that?... They'll *really* fly.
> None of this VM sh-t :)
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




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

2002-01-17 Thread c tang

I think you miss my point.  We are lucky that the
examples I gave have some special tag builded in
struts.  How about writing Integer.MAX_VALUE,
Integer.toOctalString(), String.toLowerCase() etc.
There are tons of public API in jdk not mention third
party one.

ct

--- Fernando Esteban Barril Otero
<[EMAIL PROTECTED]> wrote:
> To write the size of collection object or array,
> you can 
> and write with .
> 
> The "size" bean can also be used with the tag
> 
> ...
> 
> 
> In the case of toString, if you don't specify a
> property
> attribute 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]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, January 17, 2002 10:41 AM
> Subject: Re: Is there a better way to write this
> code?
> 
> 
> > Creating a wrapper class may get rid of scriptlet
> in
> > JSP. But that means for every public api (such as
> > Collection.size(), Object.toString()) that does
> not
> > fit get/set pattern, a wrapper class has to be
> created
> > in order to avoid scriptlet using struts.  IMHO,
> that
> > is worse than just using 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.
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




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

2002-01-17 Thread c tang

You are right this thing is very powerful.  But that
should not be the reason to not doing it.  I can
always do the MyBean.wait() in scriptlet.  There is
nothing to stop that.  

Power to the developers!

ct

--- Arron <[EMAIL PROTECTED]> wrote:
> I can see what you're trying to say and it would be
> truly flexible if 
> you could do that.
> 
> But I can already foresee the reaction from the
> die-hards, and that is 
> that it would give the person doing the markup "too"
> much power. 
> Probably get at some things that shouldn't be gotten
> at, like MyBean.wait().
> 
> Nice idea, wouldn't get past the committing
> committee I'm afraid.
> 
> And the fact is, if you want to get that sort of
> power, you may as well 
> script it. There's plenty of ways to get a hold of
> your object for 
> 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 (such as
> >Collection.size(), Object.toString()) that does not
> >fit get/set pattern, a wrapper class has to be
> created
> >in order to avoid scriptlet using struts.  IMHO,
> that
> >is worse than just using 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.
> >>
> >>
> >>c tang wrote:
> >>
> >>>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 <%=?
> >>>
> >>>I had a proposal to allow x.y expression to get y
> >>>in the this order:
> >>>(1) x.getY()
> >>>(2) x.y()
> >>>(3) x.y
> >>>
> >>>In this way, to write toString of x object to a
> >>>
> >>page,
> >>
> >>>simply use
> >>>
> >>>
> >>>This proposal is shotdown.  Without this,
> scriptlet
> >>>has to be used in jsp.
> >>>
> >>>ct
> >>>
> >>>
> >>>--- Arron Bates <[EMAIL PROTECTED]> wrote:
> >>>
> >>>>For one, I recommend getting your properties
> into
> >>>>getter/setter 
> >>>>methodology. Simply so you can use the wealth
> that
> >>>>is the Struts tagging 
> >>>>system (as it's (the bean spec Struts runs
> against
> >>>>for it's model 
> >>>>components) kind of what it's all about).
> >>>>
> >>>>By "'raw' String" do you mean the object's
> >>>>"toString()" method?... Any 
> >>>>property that yields and object to be written
> out
> >>>>will have it's 
> >>>>"toString()" method called to write it to the
> >>>>output.
> >>>>
> >>>>I'm also curious about your "null pointer" issue
> >>>>with the nested 
> >>>>extension (for some reason :).
> >>>>Can I get a hold of the bean and JSP you were
> >>>>
> >>trying
> >>
> >>>>to run it with?...
> >>>>
> >>>>Arron.
> >>>>
> >>>>
> >>>>Alex Paransky wrote:
> >>>>
> >>>>>I am pretty new with struts and wrote the
> >>>>>
> >>following
> >>
> >>>>.JSP code.  Is there a
> >>>>
> >>>>>better way to write this?  I could not find a
> tag
> >>>>>
> >>>>in STRUTS to let me just
> >>>>
> >>>>>get the property from the object.  My object
> does
> >>>>>
> >>>>not have get/set methods,
> >>>>
> >>>>>so I had to resort to using <%= tag.  Is there
> a
> >>>>>
> >>>>tag in STRUTS that would
> >>>>
> >>>>>just access the "raw" String attribute of the
> >>>>>
> >>>>object instead of calling
> >>>>
> >>>>>get/set?
> >>>>>
> >>>>>I also tried using the keyboardmonkey nested
> >>>>>
> >>>>library, but kept getting
> >>>>
> >>>>>NullPointerExceptions when nested:iterate would
> >>>>>
> >>>>execute
> >>>>
> >>>>> >>>>>
>
>>>class="com.myprofiles.client.web.bean.MemberProfileHeadersBean"
> >>>
> >>>>/>
> >>>>
> >>>>> name="profileHeaders"
> >>>>>
> >>>>property="profiles"
> >>>>
>
>>>type="com.myprofiles.service.common.ProfileHeaderValue">
> >>>
> >>>>><%=profile.name%>
> >>>>><%=profile.description%>
> >>>>>
> >>>>>
> >>>>>Thanks.
> >>>>>
> >>>>>
> >>>>>-AP_
> >>>>>www: http://www.alexparansky.com
> >>>>>
> >>>>>
> >>>>>--
> >>>>>To unsubscribe, e-mail:  
> >>>>>
>
>>><mailto:[EMAIL PROTECTED]>
> >>>
> >>>>>For additional commands, e-mail:
> >>>>>
> >>>><mailto:[EMAIL PROTECTED]>
> >>>>
> >>>>
> >>>>--
> >>>>To unsubscribe, e-mail:  
> 
=== message truncated ===


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




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

2002-01-17 Thread c tang

Creating a wrapper class may get rid of scriptlet in
JSP. But that means for every public api (such as
Collection.size(), Object.toString()) that does not
fit get/set pattern, a wrapper class has to be created
in order to avoid scriptlet using struts.  IMHO, that
is worse than just using 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.
> 
> 
> c tang wrote:
> 
> >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 <%=?
> >
> >I had a proposal to allow x.y expression to get y
> >in the this order:
> >(1) x.getY()
> >(2) x.y()
> >(3) x.y
> >
> >In this way, to write toString of x object to a
> page,
> >simply use
> >
> >
> >This proposal is shotdown.  Without this, scriptlet
> >has to be used in jsp.
> >
> >ct
> >
> >
> >--- Arron Bates <[EMAIL PROTECTED]> wrote:
> >
> >>For one, I recommend getting your properties into
> >>getter/setter 
> >>methodology. Simply so you can use the wealth that
> >>is the Struts tagging 
> >>system (as it's (the bean spec Struts runs against
> >>for it's model 
> >>components) kind of what it's all about).
> >>
> >>By "'raw' String" do you mean the object's
> >>"toString()" method?... Any 
> >>property that yields and object to be written out
> >>will have it's 
> >>"toString()" method called to write it to the
> >>output.
> >>
> >>I'm also curious about your "null pointer" issue
> >>with the nested 
> >>extension (for some reason :).
> >>Can I get a hold of the bean and JSP you were
> trying
> >>to run it with?...
> >>
> >>Arron.
> >>
> >>
> >>Alex Paransky wrote:
> >>
> >>>I am pretty new with struts and wrote the
> following
> >>>
> >>.JSP code.  Is there a
> >>
> >>>better way to write this?  I could not find a tag
> >>>
> >>in STRUTS to let me just
> >>
> >>>get the property from the object.  My object does
> >>>
> >>not have get/set methods,
> >>
> >>>so I had to resort to using <%= tag.  Is there a
> >>>
> >>tag in STRUTS that would
> >>
> >>>just access the "raw" String attribute of the
> >>>
> >>object instead of calling
> >>
> >>>get/set?
> >>>
> >>>I also tried using the keyboardmonkey nested
> >>>
> >>library, but kept getting
> >>
> >>>NullPointerExceptions when nested:iterate would
> >>>
> >>execute
> >>
> >>> >>>
>
>>class="com.myprofiles.client.web.bean.MemberProfileHeadersBean"
> >>/>
> >>
> >>> >>>
> >>property="profiles"
> >>
>
>>type="com.myprofiles.service.common.ProfileHeaderValue">
> >>
> >>> <%=profile.name%>
> >>> <%=profile.description%>
> >>>
> >>>
> >>>Thanks.
> >>>
> >>>
> >>>-AP_
> >>>www: http://www.alexparansky.com
> >>>
> >>>
> >>>--
> >>>To unsubscribe, e-mail:  
> >>>
>
>><mailto:[EMAIL PROTECTED]>
> >>
> >>>For additional commands, e-mail:
> >>>
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>>
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:  
>
>><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail:
> >><mailto:[EMAIL PROTECTED]>
> >>
> >
> >
> >__
> >Do You Yahoo!?
> >Send FREE video emails in Yahoo! Mail!
> >http://promo.yahoo.com/videomail/
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

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




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 <%=?

I had a proposal to allow x.y expression to get y
in the this order:
(1) x.getY()
(2) x.y()
(3) x.y

In this way, to write toString of x object to a page,
simply use


This proposal is shotdown.  Without this, scriptlet
has to be used in jsp.

ct


--- Arron Bates <[EMAIL PROTECTED]> wrote:
> For one, I recommend getting your properties into
> getter/setter 
> methodology. Simply so you can use the wealth that
> is the Struts tagging 
> system (as it's (the bean spec Struts runs against
> for it's model 
> components) kind of what it's all about).
> 
> By "'raw' String" do you mean the object's
> "toString()" method?... Any 
> property that yields and object to be written out
> will have it's 
> "toString()" method called to write it to the
> output.
> 
> I'm also curious about your "null pointer" issue
> with the nested 
> extension (for some reason :).
> Can I get a hold of the bean and JSP you were trying
> to run it with?...
> 
> Arron.
> 
> 
> Alex Paransky wrote:
> 
> >I am pretty new with struts and wrote the following
> .JSP code.  Is there a
> >better way to write this?  I could not find a tag
> in STRUTS to let me just
> >get the property from the object.  My object does
> not have get/set methods,
> >so I had to resort to using <%= tag.  Is there a
> tag in STRUTS that would
> >just access the "raw" String attribute of the
> object instead of calling
> >get/set?
> >
> >I also tried using the keyboardmonkey nested
> library, but kept getting
> >NullPointerExceptions when nested:iterate would
> execute
> >
> >
>class="com.myprofiles.client.web.bean.MemberProfileHeadersBean"
> />
> > property="profiles"
>
>type="com.myprofiles.service.common.ProfileHeaderValue">
> >  <%=profile.name%>
> >  <%=profile.description%>
> >
> >
> >Thanks.
> >
> >
> >-AP_
> >www: http://www.alexparansky.com
> >
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> >
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 the backend EJB.  I need to know
> how to configure the tomcat to be able to identify
> the EJB (JNDI). The error message I got was 
> 
> Unable to get remote stub for UserService EJB
> Nested Exception: Name csi-b2b is not bound in this
> Context
> 
> Thanks very much
> This is very urgent...
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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 it is forward to
success page(/success).  When I map filter to
generateBig.do, the doFilter method is invoked, but
the request page is returned.  Even if correct page is
return, I think mapping to generateBig.do is not the
right way because failure page will be filter too. 
When I map filter to /success(or the servlet mapping
to /success), the doFilter method is not even invoked.


please help!

ct

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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="true" %> 
the templage content is display fine.

Did I missing something?

thanks!

ct

__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1