Tiles - how to handle missing jsp page

2003-03-26 Thread aps olute
 Hi,
   How to handle missing jsp pages so one does not get errors?  Not all
these elements have ignore attributes, so how to handle them? Some of
these are in defs.xml and some are in the regular jsp files.

1. on the putlist listed under 

2. on the putlist  added via  

My problem is if these were missing at start of tomcat, no exceptions
are displayed, but upon adding the "missing" jsp -- they get displayed
okay. But now if I delete this jsp file again, NO exception is thrown
but the old image is still displayed even though the jsp is missing
now. Why? (as if the jsp did not get recompiled, I expect recompilation
if there is a missing jsp page).  
I can think of a scenario that in a live environment jsp pages are
moved/removed from a page and it should not throw an exception or
display an older page (if the included page has been removed).


Thanks in advance.
aps

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



TroubleShooting Digester - request help

2002-12-12 Thread aps olute

  I have several Struts samples downloaded from all over and its getting
frustrating to troubleshoot when getting an error and I can not easily pinpoint
which file it faults on. I have to search each and everyone, and this is not
often easy if deployed on JBOSS-TOMCAT where it does not expand the war file. I
often see a Digester Error in the log files and is there a way for the logger
to Identify which file the Digester is working on? Perhaps a little clue will
eliminate bunch of unjarring war files.
an example of a problem in the log:

593 2002-12-12 13:44:35,234 INFO  [org.jboss.web.localhost.Engine]
WebappLoa
der[/HelloClient]: Deploy class files /WEB-INF/classes to
/u01/jboss3/jboss-3.0.
4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/HelloClient/WEB-INF/class
es
594 2002-12-12 13:44:35,235 INFO  [org.jboss.web.localhost.Engine]
WebappLoa
der[/HelloClient]: Deploy JAR /WEB-INF/lib/struts.jar to
/u01/jboss3/jboss-3.0.4
_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/HelloClient/WEB-INF/lib/st
ruts.jar
595 2002-12-12 13:44:35,669 ERROR [org.apache.commons.digester.Digester]
Par
se Error at line 13 column -1: Element "taglib" requires additional elements.
596 org.xml.sax.SAXParseException: Element "taglib" requires additional
elem
ents.
597 at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
598 at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.done
(ValidatingParser.java:361)
599 at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1519)



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




newbie q - what triggers reading the config.xml file?

2002-12-07 Thread aps olute

I have the two files under tiles-documentaion/WEB-INF/

struts-config.xml and struts-examples-config.xml   

Forgive me since I cant recall if this is in the docs, I'm info overloaded and
can't recall. How are these two files used? Does one takes priority over the
other? or it just appends?  Does it mean for every new application one will
need additional config.xml file?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




tiles-documentation causing a Digester error -"plug-in" must be declared?

2002-12-07 Thread aps olute

I am getting this error in the log, and since not all the links under the menu
of this http://localhost:8080/tiles-documentation/examples/index.jsp  is
working, I will pressume those are related to the error.

27 Dec 7, 2002 12:40:40 PM org.apache.struts.util.PropertyMessageResources

 28 INFO: Initializing, config='org.apache.struts.action.ActionResources',
r
eturnNull=true
 29 Dec 7, 2002 12:40:41 PM org.apache.struts.util.PropertyMessageResources

 30 INFO: Initializing,
config='org.apache.struts.example.tiles.dev1-1.Appli
cationResources', returnNull=true
 31 Dec 7, 2002 12:40:42 PM org.apache.struts.util.PropertyMessageResources

 32 INFO: Initializing,
config='org.apache.struts.webapp.tiles.dev1-1.Applic
ationResources', returnNull=true
 33 Dec 7, 2002 12:40:43 PM org.apache.commons.digester.Digester error
 34 SEVERE: Parse Error at line 90 column 61: Element type "plug-in" must
be
 declared.
 35 org.xml.sax.SAXParseException: Element type "plug-in" must be declared.
 36 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExceptio
n(ErrorHandlerWrapper.java:232)
 37 at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrap
per.java:173)
 38 at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRepor
ter.java:362)

Furthermore, how to fix that "plug-in" must be declared error? The error points
to line 90 but line is not related to tiles. The struts-config.xml has this:

 89   
 90   
 91 
...
235   
236 
240   


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: struts 1.1-b2 struts-blank bug????

2002-12-07 Thread aps olute

Here is an article from onjava.com with a fixed jar file.
http://www.onjava.com/pub/a/onjava/2002/11/20/templatestruts.html



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Tiles - How does it search for the definition values?

2002-11-27 Thread aps olute

 Please help me understand how Tiles searches the definition files for the
values it it uses for definition="xx". In other words, how did it jump from
using tiles-defs.xml to tiles-examples-defs.xml to look for a definition value?
My inkling was it looks at all the "tiles--defs.xml" ?  If this is the case
then one can not have a duplicate definitions on any of these
tile--defs.xml?  Also where do I specify only look at specific
tiles--defs.xml and not all of them or not possible?

Thank you in advance

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Tiles - definition="main.Layout" What does this means?

2002-11-26 Thread aps olute
 I just started with the Tiles tutorial and got stuck at this
definition="doc.mainLayout"  on the index.jsp, what does it mean? I see similar
definition="mainLayout"  under tutorial/index.jsp. I looked in the 
tiles-tutorial-defs.xml and found a definition for mainLayout but none for
doc.mainLayout  where does it find it?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: CachedRowset with logic:iterate tag

2002-07-18 Thread aps olute

Ok from what I gather from the responses, it is not
necessary to use Struts Tags to iterate the contents
of the CachedRowSet.  However I would still like how
to do this. I've looked at webPIM, and were not able
to download as there are no jar files or zip files
package I saw at sourceforge.net, am not about to
pick bits and pieces and spend so much time putting it
together, if a better download site is provided i'd
apprecite it.
Am still not clear if it requires a Collection type
to do any of these iterations, not just logic, but in
html: tags too and what have you.

aps

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




CachedRowset with logic:iterate tag

2002-07-17 Thread aps olute

How to iterate over a CachedRowSet using
 tags? I have filled the CachedRowset
with a select
statement and am able to iterate using the
crs.getString(1) or the crs.getString(colname)
methods,
but no am ready to use Struts tags but dont know how.
Do I need to convert it a Collection type? but that
will eat up more memory as two copies CRS and the
Collection with same contents?
Is it necessary to use the Struts tags to work with 
the rest of the Struts features?


<%@ page language="java" %>
<%@ page contentType="text/html" %>
<%@ page
import="sun.jdbc.rowset.CachedRowSet,javax.naming.InitialContext"%>

<% InitialContext ctx = new InitialContext();
  javax.sql.DataSource ds =  
(javax.sql.DataSource)ctx.lookup("java:/DefaultDS");
  java.sql.Connection con = ds.getConnection();
  Contacts.setCommand("SELECT name,
owner,species,sex,birth,death from pet");
  Contacts.execute(con);
  Contacts.first(); %> 


 

  


But nothing is ever printed. if i take out the
logic:present and logic:iterate and replaced with a
while (Contacts.next()  Contacts.getString(1)  at
least
i gets some output.




__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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