CDATA with Digester

2001-09-04 Thread Bernard Genin

Hello List,

Is it normal to get an exception when one tries to parse CDATA tags  with
Digester ? (maybe related to Sax)
Like in :
..
sometag
some text ![CDATA[some HTML tag .../some HTML tag]]
/sometag

Thanks for any hint,

.B




Another issue with Websphere 3.5.3

2001-05-18 Thread Bernard Genin

I'm trying to use templates (not yet components, but soon) in WAS 3.5.3
I got a uncaught servlet exception (apparently on PageContext.include) on a simple 
example like :

template:insert template=xyy.jsp
template :put name=menu content=menu.jsp
...

If I replace it by :
template:insert template=xyy.jsp
template :put name=menu direct=true %@jsp:include file=menu.jsp 
%/template:put
...

it works fine. But it sound like a bad workaround.
I've tried to use the attribute flush in the template:get but it is no more 
supported (not included in the dtd) in struts.
Any hint ?

.B




Re: How to display odd/even rows using iterator

2001-04-19 Thread Bernard Genin



Scott Walter wrote:

 Although I don't like to place Java code in my JSP
 pages, this is how I accomplished this:

 strutlogic:iterate id="row" name="list"
 % if(index%2==0) { %
 TR class="rowoff"
 % } else { %
 TR class="rowon"
 % } %

 index++;

 /strutlogic:iterate

 --- Anthony Martin [EMAIL PROTECTED] wrote:
  I'm sure I'll get to this in my project.  Why not
  make it a read property of
  the bean?
 
protected String rowColor = "#FF" ;
public String getRowColor ( ) { return
  this.rowColor ; }
public void setRowColor ( String value ) {
  this.rowColor = value ; }
 
  Then all you need is a way to change that value at
  the top of the
  logic:iterate block by detecting the current state
  with a couple
  logic:equal tag.
 

Using two logic:equal tags is a good solution, but wouldn't it be nice
to have a kind of "if .. then .. else" feature ? Like :
logic:equal ...
  ...
logic:else 
 ...
/logic:equal

Any plan to implement this ?

Bernard.




Is Struts with Websphere that slow ?

2001-04-09 Thread Bernard Genin

Hi all,

I did (at last) install a struts application on WebSphere - Advanced 3.5.3 on NTsp6 
(with the proposed modification of GetTag.java for "better" support of templates), but 
it is quite slow. It seems to always reload jsp pages, even afert I put the automatic 
reloading option in my
application advanced tab to "false".
I unfortunately develop this application under Resin, and it works really well and 
really fast ...
Is there anybody experiencing such a slow response time ? Is it possibly linked to the 
use of templates ?

Thanks,

Bernard.




Re: Is Struts with Websphere that slow ? - any other problems?

2001-04-09 Thread Bernard Genin



"Assenza, Chris" wrote:

 Hendrik:
 It's a bear to configure the first time but thereafter its not bad at all.
 :)

 Bernard:
 My app's templates do about 5 includes per page and anything that does that
 will take a performance hit, however I have not noticed it reload every
 time, nor have I found the performance hit to be very tangible (at least
 with just one user). I'm not sure what to tell you. :(

I have played around with the admin console and removed completely the logging
in OSE. And it worked.
Fast as resin. At least.

Bernard.





Re: WebSphere problem

2001-03-16 Thread Bernard Genin



[EMAIL PROTECTED] wrote:

 Can anyone provide a stack trace?


here it is.

 We're about to move to 3.5.3 from a working 3.5.2, so I'd appreciate a head
 start. As the author of the 3.5.2 instructions, I'd like to know that you
 changed the ActionServlet class and stored it in the servlet directory of
 your web app.


I'm already on 3.5.3 and I've changed the ActionServlet class as you specified
it in the installations notes, before trying struts.


Bernard.


[01.03.15 17:03:24:187 GMT+01:00] 882a2f98 DrAdminServer A SMTL0018I: DrAdmin 
disponible sur le port 3,550

[01.03.15 17:03:27:250 GMT+01:00] 8871af98 ServletEngine A IBM WebSphere Application 
Server - Web Container.  Copyright IBM Corp. 1998-2000

[01.03.15 17:03:27:578 GMT+01:00] 8871af98 ServletEngine A Servlet Specification 
Level: 2.2 - Full Servlet 2.2 Compliance Mode

[01.03.15 17:03:28:078 GMT+01:00] 8871af98 ServletEngine A Supported JSP Specification 
Levels: 1.1, 1.0, 0.91

[01.03.15 17:03:28:484 GMT+01:00] 8871af98 ServletHost   A Loading group: "struts-ex"

[01.03.15 17:03:28:890 GMT+01:00] 8871af98 CacheManager  A 
Servlet.cache.file."/dynacache.xml".not.found.Caching.is.disabled

[01.03.15 17:03:29:046 GMT+01:00] 8871af98 ServletInstan A SRVE0048I: Chargement du 
servlet : "database"

[01.03.15 17:03:29:187 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: init"

[01.03.15 17:03:29:281 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: Initializing database servlet"

[01.03.15 17:03:29:312 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: Loading database from '/WEB-INF/database.xml'"

[01.03.15 17:03:29:375 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: No such resource available - loading empty database"

[01.03.15 17:03:29:421 GMT+01:00] 8871af98 ServletInstan A SRVE0130I: Servlet 
disponible pour le service : "database"

[01.03.15 17:03:29:531 GMT+01:00] 8871af98 ServletInstan A SRVE0048I: Chargement du 
servlet : "action"

[01.03.15 17:03:29:703 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: init"

[01.03.15 17:03:29:781 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: Loading application resources from resource 
org.apache.struts.example.ApplicationResources"

[01.03.15 17:03:29:843 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: Initializing configuration from resource path /WEB-INF/struts-config.xml"

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\struts-config_1_0.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\web-app_2_2.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\web-app_2_3.dtd'

[01.03.15 17:03:30:375 GMT+01:00] 8871af98 ServletInstan X Uncaught init() exception 
thrown by servlet {0}: {1}

 "action"

 javax.servlet.ServletException: Parsing error 
processing resource path /WEB-INF/struts-config.xml

at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:142)

at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)

at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)

at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:284)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:76)

at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:91)

at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:158)

at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:802)

at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:89)

at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:121)

at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:82)

at com.ibm.servlet.engine.ServletHost.addWebGroup(ServletHost.java:109)

at 
com.ibm.servlet.engine.ServletEngineDynamicUpdateSupport.addWebGroup(ServletEngineDynamicUpdateSupport.java:126)

at 
com.ibm.ejs.sm.active.ActiveServletGroup.startAction(ActiveServletGroup.java:76)

at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:682)

at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:117)

at 

WebSphere problem

2001-03-15 Thread Bernard Genin


Hello list,

I'm trying to install struts in a websphere servlet container. I have
followed all the steps required figuring in the installation notes (on
the jakarta site).
WebSphere throws errors of parsing on struts-config.xml (during the init

pass of the action servlet).

Any hint ?

Bernard.