Re: Fail to load Tiles definition factory

2002-01-15 Thread Jon Ferguson

My first inclination is its a class path issue... make sure you've got the .jars
in place.
That class exists in the tilesForStruts1-0.jar and I've got in my WEB-INF/lib
directory.

Hope this helps.

Cheers,
Jon

Cheng, Sophia wrote:

 Hi,

 I am trying to use Tiles and Struts.
 It seems to work fine, but I got some error message in the log file after
 JRun restarts.

 01/14 17:55:12 error (JRun) action: Fail to load Tiles definition factory
 [org.apache.struts.tiles.DefinitionsFactoryException: Error while parsing
 file '/WEB-INF/tileDefinitions.xml'.
 org.apache.struts.tiles.xmlDefinition.XmlDefinition]
 org.apache.struts.tiles.DefinitionsFactoryException: Error while parsing
 file '/WEB-INF/tileDefinitions.xml'.
 org.apache.struts.tiles.xmlDefinition.XmlDefinition
 at
 org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFactor
 ySet.java:462)
 at
 org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nFacto
 rySet.java:404)
 at
 org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactory(I1
 8nFactorySet.java:231)
 at
 org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactory
 Set.java:204)
 at
 org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactory
 Set.java:152)
 at
 org.apache.struts.tiles.definition.ReloadableDefinitionsFactory.createFactor
 yFromClassname(ReloadableDefinitionsFactory.java:88)
 at
 org.apache.struts.tiles.definition.ReloadableDefinitionsFactory.createFactor
 y(ReloadableDefinitionsFactory.java:141)
 at
 org.apache.struts.tiles.definition.ReloadableDefinitionsFactory.init(Reloa
 dableDefinitionsFactory.java:50)
 at
 org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(Definitions
 Util.java:149)
 at
 org.apache.struts.tiles.ActionComponentServlet.initComponentDefinitionsMappi
 ng(ActionComponentServlet.java:65)
 at
 org.apache.struts.tiles.ActionComponentServlet.init(ActionComponentServlet.j
 ava:53)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
 rvletLoader.java:203)
 at
 allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
 rvletLoader.java:161)
 at
 allaire.jrun.servlet.JRunServletLoader.loadServlet(../servlet/JRunServletLoa
 der.java:149)
 at
 allaire.jrun.servlet.JRunSE.getServletReference(../servlet/JRunSE.java:1706)
 at
 allaire.jrun.servlet.JRunSE.preloadServlets(../servlet/JRunSE.java:1372)
 at allaire.jrun.servlet.JRunSE.init(../servlet/JRunSE.java:237)
 at allaire.jrun.ServletService.init(../ServletService.java:66)
 at allaire.jrun.ServletService.init(../ServletService.java:31)
 at
 allaire.jrun.servlet.JRunServletLoader.loadServletInstance(../servlet/JRunSe
 rvletLoader.java:203)
 at
 allaire.jrun.servlet.JRunSE.initService(../servlet/JRunSE.java:892)
 at
 allaire.jrun.servlet.JRunSE.initServices(../servlet/JRunSE.java:859)
 at
 allaire.jrun.servlet.JvmContext.initServices(../servlet/JvmContext.java:130)
 at allaire.jrun.servlet.JRunSE.init(../servlet/JRunSE.java:223)
 at
 allaire.jrun.servlet.JvmContext.init(../servlet/JvmContext.java:69)
 at allaire.jrun.ServletService.init(../ServletService.java:66)
 at allaire.jrun.ServletService.init(../ServletService.java:31)
 at JRun.main(../../../JRun.java:172)
 ...

 == tileDefinitions.xml:  
 ?xml version=1.0 encoding=ISO-8859-1?
 component-definitions
 definition name=registrationDef path=/formTemplate1.jsp
 put name=check value=/registrationCheck.jsp/
 /definition

 /component-definitions

 == web.xml:  
   servlet
 servlet-nameaction/servlet-name

 servlet-classorg.apache.struts.tiles.ActionComponentServlet/servlet-class
 
 init-param
   param-namedefinitions-config/param-name
   param-value/WEB-INF/tileDefinitions.xml/param-value
 /init-param
 init-param
   param-nameapplication/param-name
   param-valuediagnosis.ApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet

 Does anyone have any idea?

 Sophia

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



--
To unsubscribe, e-mail:   mailto:[EMAIL 

Re: Template mechanism tutorial anyone?

2002-01-15 Thread flare

On 14 Jan 2002 at 23:12, Michael Mehrle wrote:

 Hi guys/gals:
 
 I'm new to the list and to Struts - though I got it all up and running via
 Tomcat. 
 Again, help with this would be welcome

I'm using templates in almost every portal/site, I found Tiles great but often 
overkill,  
templates are lightweight and really easy to use, even for a web developer without any 
coding skill. Look at the nice JavaWorld article (go to http://www.javaworld.com and 
search for templates) and the struts ML archives for examples, you'll be up and 
running 
in a couple of minutes ;) 

 Flare 
 

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




Simple example of MultipartIterator() use

2002-01-15 Thread Tony

Hi

Can someone please point me in the direction of a simple example of using
MultipartIterator(), I am not having much luck getting it to work.  I
always get an error when I try and create a instance of this class using

MultipartIterator iterator = new MultipartIterator(request);

-- 


Cheers

Tony
-


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Recommend struts tutorial...

2002-01-15 Thread cody.burleson



Here's the only tutorial I have found:

http://gallery.bluestone.com/Scripts/SaIsapi.dll/StrutsTrailMap.class/struts-trailmap/default.htm







Alex Paransky [EMAIL PROTECTED] on 01/14/2002 08:26:02
PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  Recommend struts tutorial...


Is there a good Struts tutorial that one can recommend.  The documentation
does not show how to use the tags and when.

Thanks.
-AP_


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





The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.


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




my first struts - cant find message resources

2002-01-15 Thread Wim Fournier

Hi all,

Sorry to bug you with this newbie questions, but hey.. we all gonna learn some time ;o)

I'm building a sample application to teach myself struts / EJB. I'm working with JBoss 
and have installed the CD example EJB.

As I'm developping the struts frontend war I bump into 2 problems (sofar)

1) on loading my jsp file i get the following:

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
I've got the following in my web.xml:
servlet-nameaction/servlet-name
servlet-classnl.kern.j2ee.sample.struts.ListCDAction/servlet-class
init-param
  param-nameapplication/param-name
  param-valuenl.kern.j2ee.sample.struts.ApplicationResources/param-value
/init-param

and my ApplicationResources.properties is in:
WEB-INF/classes/nl/kern/j2ee/sample/struts/ApplicationResources.properties

whats wrong here?

2) on deployement I get the following:
[ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cdexample]: Servlet /cdexample 
threw load() exception
javax.servlet.ServletException: Class nl.kern.j2ee.sample.struts.ListCDAction is not a 
Servlet

While my ListCDAction extend Action and has the same imports as the struts examples 
RegistrationAction.java has. It also has a perform method.


anyone who could help me out here?

grtz
Wim Fournier

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




Re: Application resources and logic:notPresent

2002-01-15 Thread Keith Bacon

Hi Jeff,
is it because
name=org.apache.struts.action.MESSAGE
is the class name of the messages when you should specify the attribute name that 
class has been
stored under? (It'll be defined as a constant somewhere but I don't know where 
off-hand).
Keith.


--- Jeff Oberlander [EMAIL PROTECTED] wrote:
 I am seeing conflicting behavior with application resources. This is basic
 stuff, but I haven't found an answer in the archives.
 
 First, in my index.jsp I can do the following:
 
 bean:message key=test.message/
 
 It successfully displays my test text message from my ApplicationResources
 file.
 
 But, when I also try to execute the logic:notPresent code as given in the
 example:
 
   logic:notPresent name=org.apache.struts.action.MESSAGE
 scope=application
   font color=red
 ERROR:  Application resources not loaded -- check servlet container
 logs for error messages.
   /font
 /logic:notPresent
 
 It results in displaying the red not loaded message.
 
 How can it be that this logic:notPresent thinks the resources aren't there,
 but the bean:message can retrieve them just fine?
 
 Thanks much
 
 Jeff
 
 
 
 
 
 
 http://www.xns.org/=jeffoberlander 
 
 --
 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: Question on Struts debugging - one more time

2002-01-15 Thread Keith Bacon

I don't use a proper IDE, I'm waiting till it's clear they are very good  I
can get a fast response time. So some of what I said was in ignorance, but also many 
people don't
use IDE's yet.
I don't have time to keep trying them out - last year I tried, they clearly needed a 
monster
computer to run. 
Is netbeans the best IDE?
Are you happy with it?
What sized machine to run on? 
Keith.



--- Sandeep Takhar [EMAIL PROTECTED] wrote:
 I am not sure what is implied by the below messages:
 
 Using netbeans I am able to 
 
 debug servlets
 debug jsp's (a little buggy but it works)
 debug action classes and form classes.
 
 I am not sure if this all works remotely or not.
 
 logging is always a good idea.
 
 Sandeep
 --- Kilmer, Erich [EMAIL PROTECTED]
 wrote:
  Hi Keith,
  Thanks for your reply.
  I do use already many of the techniques listed in
  your email as well as
  log4j.
  I do not have any problem catching errors in form
  and actions classes.
  I do have problem finding errors that come out of
  the html tags in JSPs.
  If there is a bad mapping and an html:form's action
  point to the mapping
  with a problem I do not see any errors in any of the
  logs. I have modified
  my error.jsp in hopes of seeing more but so far
  nothing.
  If I have better luck with this I will let the group
  know.
  Developing in Struts would be much faster if there
  was a way to diagnose
  such problems.
  Erich
  
  -Original Message-
  From: Keith Bacon
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 09, 2002 8:54 AM
  To: Struts Users Mailing List
  Subject: Re: Question on Struts debugging - one more
  time
  
  
  I've not had better luck. I think it's the way it
  is.
  Here's how I do it - I'd like to know how others do.
  
  I use hundreds of log messages so I can trace the
  flow of my program. I make
  the method calls for
  logging easy to type - dbmd(a debug msg) or
  dbmw(warning message).
  I code traces into action classes from the start. to
  show the perform method
  starting  ending so
  a dud struts config is found because the Action i
  expect to run doesn't log
  it's start. 
  I check for null pointers all over the place  log a
  warning or throw an
  exception for them.
  I constantly restart the server (tomcat 3.2.2) to
  make weird problems go
  away.
  Auto class reloading doesn't work properly so - I
  restart after every
  compile.
  
  I use these 3 methods in jsp's  Action classes a
  lot, to check the contents
  of the session 
  request - this finds things left in the session by
  mistake.
  public static void
  printSessionAttributeNames(String caller,
  HttpSession session) {
  public static void
  printRequestAttributeNames(String caller,
  HttpServletRequest request) {
  public static void printRequestParameters(String
  caller,
  HttpServletRequest request) {
  I've attached the code for them, someone may find
  them useful - the codes a
  bit dodgy  old but
  it's easy to understand.
  
  I have my own logging code (from old servlet
  programming) but I want to use
  log4j (one day!) - You
  really need to be able to switch trace messages
  on/off without re-compiling
  classes or restarting
  the server.
  
  Only when it's quite reliable do I remove the
  messages. Often I just comment
  the mesages out in
  expectation it will go wrong in future.
  
  All in all a bit primitive compared to some
  (non-web) environments I've
  worked in. we're in the
  early days - things will get easier. We'll get
  informative/instructive
  messages that tell us what
  to do to put it right  we'll be able to step thru
  our action classes in the
  debugger.
  
  Happy bug hunting! - Keith
  
  
  --- Kilmer, Erich
  [EMAIL PROTECTED] wrote:
   Thought I would give this one more try. Has anyone
  had better luck with
   debugging problems caused by say bad action
  mappings, ie: mis-named action
   classes, missing action forms etc. Currently when
  these problems are
   encountered I see no useful error messages in any
  of my logs (even when
   debug is set to 2). 
   Is this just the way that it is or have I failed
  to do something?
   
   Thanks,
   Erich
   
   Sent previously:
   
   I have been using Struts for some time now. My
  app's Struts config file
  has
   almost 50 action mappings so I have been down this
  road a time or two. 
   Many times when adding a new mapping I run into
  errors though. For example
   the latest on was where the mapping listed an
  action class called
  something
   like UserCreateAction (package removed). But when
  I wrote the class itself
  I
   named it UserAddAction.
   Now when I built the app and moved to the Orion
  apps server and ran it
  when
   I get to the JSP that references this action
  mapping I get a null
  exception.
   Typically I do not catch exceptions in a JSP and
  the uncaught exceptions
  go
   to my error JSP where it states that the exception
  is null.
   So I go into my web.xml file and change the 

Re: Using the IMG tag dynamically

2002-01-15 Thread Jon Ferguson

Hi Elise,

Turned out I had some other issues which were preventing resolution of my bean.

I had wanted to use html:img page=...
in order to be able to use an image ref relative to the application rather than
server root... so my image reference could be
/images/myImage.gif rather than myApp/images/myImage.gif.  Do you know of
any other way to do this?

Cheers,
Jon

Elise Hobbelink wrote:

 Hi Jon,
  Same here, no solution, but I found in the Struts Javadoc that there is
 still a TODO for the scr field to make it settable:
 http://jakarta.apache.org/struts/api-1.0/org/apache/struts/taglib/html/ImgTa
 g.html

 This is what I did:
 img src=bean:write name=afriend property=imageUrl filter=true/
 alt=bean:write name=afriend property=firstName filter=true/ /

 Not so pretty though... so if you found a better way, I am very interested.

 Elise

 -Original Message-
 From: Jon Ferguson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 1:36 AM
 To: Struts Users Mailing List
 Subject: Using the IMG tag dynamically

 Hey guys,

 I must be missing something.  I've got an ActionForm with a bean attribute
 item... which has an image name under a property.. say item.imageName.
 I would like to use the image tag to use this image dynamically..

 html:img page=/images/myImage.gif alt=No Image Set./  works fine...
 but
 it's not dynamic..

 surely this is trivial... but what am I missing? ..it would be neat if I
 could
 treat it like the html:text tag... and just reference the property..
 html:text property=item.imageName..
 but I can't see how to do that.

 Thanks,
 Jon

 --
 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]


checkbox

2002-01-15 Thread Serge A. Redchuk

Hello struts-user,

  I'm newbie in Struts and encountered a problem when tried to get
  boolean value of checkbox state from my form bean.

  I always have 'true', even if I unchecked my checkbox on form.
  
   In JSP I wrote:
   Published: html:checkbox property=published /

   In Action that must handle the form data:
   ...
   ef.getPublished() - ever true !
   ...

What have I done in wrong way ?

-- 
Best regards,
 Serge  mailto:[EMAIL PROTECTED]


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




RE: checkbox

2002-01-15 Thread Tom Klaasen (TeleRelay)

Check the archives -- this question has been answered many many times
before on this list.
Short answer: use the reset() method of your form.

hth,
tomK


 -Original Message-
 From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 15 januari 2002 13:21
 To: Struts Users Mailing List
 Subject: checkbox
 
 
 Hello struts-user,
 
   I'm newbie in Struts and encountered a problem when tried to get
   boolean value of checkbox state from my form bean.
 
   I always have 'true', even if I unchecked my checkbox on form.
   
In JSP I wrote:
Published: html:checkbox property=published /
 
In Action that must handle the form data:
...
ef.getPublished() - ever true !
...
 
 What have I done in wrong way ?
 
 -- 
 Best regards,
  Serge  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [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]




RE: Nesting Beans/Iterators/Logic tags whatever else...

2002-01-15 Thread Tom Klaasen (TeleRelay)

After 25 hours, you're entitled to send more information for us to try
to give help on ;-)
Full stacktrace, jsp and relevant java code...

I suppose the other taglibs do work?

tomK


 -Original Message-
 From: Collard, John [mailto:[EMAIL PROTECTED]] 
 Sent: maandag 14 januari 2002 20:46
 To: 'Struts Users Mailing List'
 Subject: RE: Nesting Beans/Iterators/Logic tags  whatever else...
 
 
 Spent about 25 hours attempting to get it to work.  Kept 
 getting the no
 getter method found error, even though I must have compared 
 my code to the
 examples 60-70 times. Sorry.
 
 
  John Collard
  Senior Systems Analyst
  UtiliCorp United Information Technology
  7101 Mercy Road, Suite 400
  Omaha, NE  68106
  voice: 402-926-5236
  fax: 402-996-9736 
  email: [EMAIL PROTECTED]
  
  
 
 
 -Original Message-
 From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 4:23 AM
 To: Struts Users Mailing List
 Subject: RE: Nesting Beans/Iterators/Logic tags  whatever else...
 
 
  -Original Message-
  From: Arron Bates [mailto:[EMAIL PROTECTED]] 
  Sent: vrijdag 11 januari 2002 3:01
  To: Struts Users Mailing List
  Subject: Nesting Beans/Iterators/Logic tags  whatever else...
 [...]
  If you have used the extension and found it useful, can you 
  please reply 
  to this mail to show others that people are using it, and 
 that it is 
  worth using 
 [...]
 
 You know I use it, and you know I love it :-)
 
 tomK
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [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]




Re: Template mechanism tutorial anyone?

2002-01-15 Thread Bryan Field-Elliot

I love the simplicity of Templates as well. The bummer with them is,
they aren't nestable, as far as I can tell (can anyone tell me
differently?).



On Tue, 2002-01-15 at 02:09, flare wrote:

On 14 Jan 2002 at 23:12, Michael Mehrle wrote:

 Hi guys/gals:
 
 I'm new to the list and to Struts - though I got it all up and running via
 Tomcat. 
 Again, help with this would be welcome

I'm using templates in almost every portal/site, I found Tiles great but often 
overkill,  
templates are lightweight and really easy to use, even for a web developer without 
any 
coding skill. Look at the nice JavaWorld article (go to http://www.javaworld.com 
and 
search for templates) and the struts ML archives for examples, you'll be up and 
running 
in a couple of minutes ;) 

 Flare 
 

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






Re: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread dion

Wim Fournier wrote:

 Hi all,
 
 Anyone knows why catalina complains abt my action servlet not being a servlet??
 
 It extends Action and imports:
[snipped]


Because actions aren't servlets.. ActionServlet is, Actions and 
their subclasses aren't

-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers


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




RE: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread Tom Klaasen (TeleRelay)

 -Original Message-
 From: dion [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 15 januari 2002 14:16
 To: Struts Users Mailing List
 Subject: Re: Catalina complaining abt Action class not being servlet??
 
 
 Wim Fournier wrote:
 
  Hi all,
  
  Anyone knows why catalina complains abt my action servlet 
 not being a servlet??
  
  It extends Action and imports:
 [snipped]
 
 
 Because actions aren't servlets.. ActionServlet is, Actions and 
 their subclasses aren't

Oeps... didn't notice that.
Fortunately there are people who are reading more than I do ;-)

tomK

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




Re: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread Wim Fournier

On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen (TeleRelay) wrote:
 Probably a conflict between servlet 2.2 and 2.3 spec. Try removing all
 servlet*.jar from all directories under catalina, except the one in
 %CATALINA_HOME%/lib/**
 
 hth,
 tomK
 
root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# find -name *servlet*jar
./catalina/common/lib/servlet.jar
./catalina/server/lib/servlets-manager.jar
./catalina/server/lib/servlets-invoker.jar
./catalina/server/lib/servlets-snoop.jar
./catalina/server/lib/servlets-default.jar
./catalina/server/lib/servlets-cgi.renametojar
./catalina/server/lib/servlets-ssi.renametojar
./catalina/server/lib/servlets-webdav.jar
./catalina/server/lib/servlets-common.jar
root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# 

and i use the first in my CL to compile, my CL also contains 
 $JBOSS_DIST/client/jboss-j2ee.jar 
and 
 usr/local/jdk1.3.1_02/lib/tools.jar 
and 
 ./WEB-INF/lib/struts.jar

problem persists

 
 
  -Original Message-
  From: Wim Fournier [mailto:[EMAIL PROTECTED]] 
  Sent: dinsdag 15 januari 2002 14:15
  To: [EMAIL PROTECTED]
  Subject: Catalina complaining abt Action class not being servlet??
  
  
  Hi all,
  
  Anyone knows why catalina complains abt my action servlet not 
  being a servlet??
  
  It extends Action and imports:
  import java.io.IOException;
  import java.util.Hashtable;
  import java.util.Locale;
  import javax.servlet.RequestDispatcher;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpSession;
  import javax.servlet.http.HttpServletResponse;
  import org.apache.struts.action.Action;
  import org.apache.struts.action.ActionError;
  import org.apache.struts.action.ActionErrors;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionForward;
  import org.apache.struts.action.ActionMapping;
  import org.apache.struts.action.ActionServlet;
  import org.apache.struts.util.MessageResources;
  import org.apache.struts.util.PropertyUtils;
  
  full error:
  
  [ERROR,EmbeddedCatalinaServiceSX] 
  StandardContext[/cdexample]: Servlet /cdexample threw load() exception
  javax.servlet.ServletException: Class 
  nl.kern.j2ee.sample.struts.ListCDAction is not a Servlet
  at 
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
  java:824)
  at 
  org.apache.catalina.core.StandardContext.loadOnStartup(Standar
  dContext.java:3267)
  at 
  org.apache.catalina.core.StandardContext.start(StandardContext
  .java:3384)
  at 
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
  java:785)
  at 
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
  at 
  org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebCont
  ext(EmbeddedCatalinaServiceSX.java:428)
  at 
  org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy
  (EmbeddedCatalinaServiceSX.java:282)
  at 
  org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer
  .java:191)
  at java.lang.reflect.Method.invoke(Native Method)
  at 
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
  java:1628)
  at 
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
  java:1523)
  at 
  org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505)
  at 
  org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploye
  r.java:459)
  at 
  org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
  at java.lang.reflect.Method.invoke(Native Method)
  at 
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
  java:1628)
  at 
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.
  java:1523)
  at 
  org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
  at 
  org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
  at java.lang.Thread.run(Thread.java:484)
  [ERROR,EmbeddedCatalinaServiceSX] - Root Cause -
  java.lang.ClassCastException: nl.kern.j2ee.sample.struts.ListCDAction
  at 
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
  java:820)
  at 
  org.apache.catalina.core.StandardContext.loadOnStartup(Standar
  dContext.java:3267)
  at 
  org.apache.catalina.core.StandardContext.start(StandardContext
  .java:3384)
  at 
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
  java:785)
  at 
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
  at 
  org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebCont
  ext(EmbeddedCatalinaServiceSX.java:428)
  at 
  org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy
  (EmbeddedCatalinaServiceSX.java:282)
  at 
  org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer
  .java:191)
  at java.lang.reflect.Method.invoke(Native 

RE: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread Tom Klaasen (TeleRelay)



 -Original Message-
 From: Wim Fournier [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 15 januari 2002 14:28
 To: Struts Users Mailing List
 Subject: Re: Catalina complaining abt Action class not being servlet??
 
 
 On Tue, Jan 15, 2002 at 02:19:35PM +0100, Tom Klaasen 
 (TeleRelay) wrote:
  Probably a conflict between servlet 2.2 and 2.3 spec. Try 
 removing all
  servlet*.jar from all directories under catalina, except the one in
  %CATALINA_HOME%/lib/**
  
  hth,
  tomK
  
 root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# find -name 
 *servlet*jar
 ./catalina/common/lib/servlet.jar
 ./catalina/server/lib/servlets-manager.jar
 ./catalina/server/lib/servlets-invoker.jar
 ./catalina/server/lib/servlets-snoop.jar
 ./catalina/server/lib/servlets-default.jar
 ./catalina/server/lib/servlets-cgi.renametojar
 ./catalina/server/lib/servlets-ssi.renametojar
 ./catalina/server/lib/servlets-webdav.jar
 ./catalina/server/lib/servlets-common.jar
 root@dyn21:/usr/local/JBoss-2.4.4_Tomcat-4.0.1# 
 
 and i use the first in my CL to compile, my CL also contains 
  $JBOSS_DIST/client/jboss-j2ee.jar 

That's where I know the problem from: running a J2EE app under catalina
doesn't work right, unless you adapt the j2ee.jar by removing all its
javax.servlet.** components.

Don't know for sure if this is the problem in your case (and whether the
problem still exists, must be about 8 months since I last deployed a
J2EE app), but it's worth the shot, isn't it?

tomK

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




RE: multipe bean:define's in one page?

2002-01-15 Thread Jeff Martin

Out of curiosity, does % mybean=bar; % work?

Jeff

-Original Message-
From: Moritz Petersen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 12:47 PM
To: Struts Users Mailing List
Subject: RE: multipe bean:define's in one page?


That's what I've thought. But there must be a way to redefine a value of a
bean, mustn't?

Thanx,

Mo.

 -Original Message-
 From: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 11, 2002 6:24 PM
 To: 'Struts Users Mailing List'
 Subject: AW: multipe bean:define's in one page?


 hello,
 as far as I remeber you are not allowed to use same id in page more than
 one. Maybe, I am wrong.

   Tschau.







 -Ursprüngliche Nachricht-
 Von: Moritz Petersen [mailto:[EMAIL PROTECTED]]
 Gesendet am: Friday, January 11, 2002 6:11 PM
 An: Struts Users Mailing List
 Betreff: multipe bean:define's in one page?

 Hello,

 I would like to use bean:define to overwrite a previously defined bean.
 Example:

 bean:define id=mybean value=foo/
 bean:write name=mybean/
 bean:define id=mybean value=bar/
 bean:write name=mybean/

 Unfortunately, this is not possible, because the Servlet code
 would contain

 String mybean = null;
 mybean = foo;

 ...

 String mybean = null; // = Problem!
 mybean = bar;

 , which defines the variable mybean in the same scope twice.
 Is it possible to work around that problem? I mean to redefine
 the value of
 a bean in the same scope?

 Thank you,

 Mo.


 --
 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]




--
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]




Re: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread Wim Fournier

snap
 That's where I know the problem from: running a J2EE app under catalina
 doesn't work right, unless you adapt the j2ee.jar by removing all its
 javax.servlet.** components.
 
 Don't know for sure if this is the problem in your case (and whether the
 problem still exists, must be about 8 months since I last deployed a
 J2EE app), but it's worth the shot, isn't it?

luckily my jboss-j2ee.jar doesnt contain servlet stuff ;o)

 
 tomK
 
 --
 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]




to Tom

2002-01-15 Thread Srinidhi

thanks Tom, wish i can get back soon!

- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 7:06 PM
Subject: RE: Catalina complaining abt Action class not being servlet??


 Rules are great in mail :-)

 From the struts-users welcome mail:

 
 You can start a subscription for an alternate address,
 for example [EMAIL PROTECTED], just add a hyphen and your address (with
 '=' instead of '@') after the command word:
 [EMAIL PROTECTED]

 To stop subscription for this address, mail:
 [EMAIL PROTECTED]
 

 hth,
 tomK


  -Original Message-
  From: Srinidhi [mailto:[EMAIL PROTECTED]]
  Sent: dinsdag 15 januari 2002 14:27
  To: Struts Users Mailing List
  Subject: Re: Catalina complaining abt Action class not being servlet??
 
 
  Its nice to see a very active mailing list on struts, but I have to
  unsubsribe to this list as it is cluttering my mail box every
  day and as i
  am no more working on struts.
  But sending a blank mail thru the link given in the bottom of
  the messages
  does not unsubscribe me from the list.So please help.
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user- [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]




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




Re: Catalina complaining abt Action class not being servlet??

2002-01-15 Thread dion

Wim Fournier wrote:

 bash me on the head and call me stupid .. ;)


consider yourself bashed...although public oopses are more than enough :)


 
 My bad.. I have been a little enthousiastic with find/replace ;o)
 My web.xml action element containted an Action class instead of the 
org.apache.struts.Actionsomething
 
 tnx all!
[snippity]

-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers


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




mapping not found?

2002-01-15 Thread Wim Fournier

Hi again

My catalina tells me that it cant find the mapping for /listcd

log:
[INFO,EmbeddedCatalinaServiceSX] action: Process servletName=action, urlPattern=*.do
[INFO,EmbeddedCatalinaServiceSX] action: Mapping for servlet 'action' = '*.do'

javax.servlet.ServletException: Cannot retrieve mapping for action /listcd

web.xml:
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

struts-config.xml:
action path=/listcd
type=nl.kern.j2ee.sample.struts.ListCDAction
name=listCDForm
scope=request
input=/ListCD.jsp
validate=false
forward name=result path=/ListCD.jsp/
   /action

ListCD.jsp:
html:form action=/listcd

anyone?
or should i start to look for a hammer again?

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




Struts-layout menu tag : scrollbar possible?

2002-01-15 Thread DUPRAT Alexandre

Hi,

I currently use struts-layout menu tag witch work fine with struts-template.
My problem is that my menu is a dynamic one : it can go larger if i insert
long named nodes.
This is making node to wrap on next line, not so nice...
How can i avoid this?
How can i have something like a horizontal scrollbar?
Is it possible for struts layout menu tag (or Scott Sayles' struts-menu)? (i
tried it in a frame but no scrollbar...)

Thanks for help.


Alexandre Duprat
tel : 05 57 26 00 91 
[EMAIL PROTECTED]


++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du systeme : [EMAIL PROTECTED]   |
|  - |
| Ce message confirme que le courrier a passe le controle|
| antivirus du relais de messagerie Internet avec succes.|
++

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




RE: Question on Struts debugging - one more time

2002-01-15 Thread Rick Horowitz

I tried switching from JBuilder to NetBeans but found
NetBeans too slow - on a 400Mhz XEON with 512MB RAM.
I've switched back to JBuilder Personal. The JB 6.0
release now installs easily on Redhat 7.2 (unlike the
5.0 release, which I never got working). NetBeans has
more functionality than the free version of JB
(Personal - used to be Foundation), but the speed
difference is too much for me to ignore. I'm planning
to try NB again with their 3.4 version.


--- Keith Bacon [EMAIL PROTECTED] wrote:
 I don't use a proper IDE, I'm waiting till it's
 clear they are very good  I
 can get a fast response time. So some of what I said
 was in ignorance, but also many people don't
 use IDE's yet.
 I don't have time to keep trying them out - last
 year I tried, they clearly needed a monster
 computer to run. 
 Is netbeans the best IDE?
 Are you happy with it?
 What sized machine to run on? 
 Keith.
 
 
 
 --- Sandeep Takhar [EMAIL PROTECTED] wrote:
  I am not sure what is implied by the below
 messages:
  
  Using netbeans I am able to 
  
  debug servlets
  debug jsp's (a little buggy but it works)
  debug action classes and form classes.
  
  I am not sure if this all works remotely or not.
  
  logging is always a good idea.
  
  Sandeep
  --- Kilmer, Erich
 [EMAIL PROTECTED]
  wrote:
   Hi Keith,
   Thanks for your reply.
   I do use already many of the techniques listed
 in
   your email as well as
   log4j.
   I do not have any problem catching errors in
 form
   and actions classes.
   I do have problem finding errors that come out
 of
   the html tags in JSPs.
   If there is a bad mapping and an html:form's
 action
   point to the mapping
   with a problem I do not see any errors in any of
 the
   logs. I have modified
   my error.jsp in hopes of seeing more but so far
   nothing.
   If I have better luck with this I will let the
 group
   know.
   Developing in Struts would be much faster if
 there
   was a way to diagnose
   such problems.
   Erich
   
   -Original Message-
   From: Keith Bacon
   [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 09, 2002 8:54 AM
   To: Struts Users Mailing List
   Subject: Re: Question on Struts debugging - one
 more
   time
   
   
   I've not had better luck. I think it's the way
 it
   is.
   Here's how I do it - I'd like to know how others
 do.
   
   I use hundreds of log messages so I can trace
 the
   flow of my program. I make
   the method calls for
   logging easy to type - dbmd(a debug msg) or
   dbmw(warning message).
   I code traces into action classes from the
 start. to
   show the perform method
   starting  ending so
   a dud struts config is found because the Action
 i
   expect to run doesn't log
   it's start. 
   I check for null pointers all over the place 
 log a
   warning or throw an
   exception for them.
   I constantly restart the server (tomcat 3.2.2)
 to
   make weird problems go
   away.
   Auto class reloading doesn't work properly so -
 I
   restart after every
   compile.
   
   I use these 3 methods in jsp's  Action classes
 a
   lot, to check the contents
   of the session 
   request - this finds things left in the session
 by
   mistake.
 public static void
   printSessionAttributeNames(String caller,
   HttpSession session) {
 public static void
   printRequestAttributeNames(String caller,
   HttpServletRequest request) {
 public static void
 printRequestParameters(String
   caller,
   HttpServletRequest request) {
   I've attached the code for them, someone may
 find
   them useful - the codes a
   bit dodgy  old but
   it's easy to understand.
   
   I have my own logging code (from old servlet
   programming) but I want to use
   log4j (one day!) - You
   really need to be able to switch trace messages
   on/off without re-compiling
   classes or restarting
   the server.
   
   Only when it's quite reliable do I remove the
   messages. Often I just comment
   the mesages out in
   expectation it will go wrong in future.
   
   All in all a bit primitive compared to some
   (non-web) environments I've
   worked in. we're in the
   early days - things will get easier. We'll get
   informative/instructive
   messages that tell us what
   to do to put it right  we'll be able to step
 thru
   our action classes in the
   debugger.
   
   Happy bug hunting! - Keith
   
   
   --- Kilmer, Erich
   [EMAIL PROTECTED] wrote:
Thought I would give this one more try. Has
 anyone
   had better luck with
debugging problems caused by say bad action
   mappings, ie: mis-named action
classes, missing action forms etc. Currently
 when
   these problems are
encountered I see no useful error messages in
 any
   of my logs (even when
debug is set to 2). 
Is this just the way that it is or have I
 failed
   to do something?

Thanks,
Erich

Sent previously:

I have been using Struts for some time now. My
   app's Struts config file
   has
almost 50 action mappings so I 

Re: mapping not found?

2002-01-15 Thread dion

Wim Fournier wrote:

 Hi again
 
 My catalina tells me that it cant find the mapping for /listcd
 
 log:
 [INFO,EmbeddedCatalinaServiceSX] action: Process servletName=action, urlPattern=*.do
 [INFO,EmbeddedCatalinaServiceSX] action: Mapping for servlet 'action' = '*.do'
 
 javax.servlet.ServletException: Cannot retrieve mapping for action /listcd
 
 web.xml:
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping
 
 struts-config.xml:
 action path=/listcd
 type=nl.kern.j2ee.sample.struts.ListCDAction
 name=listCDForm
 scope=request
 input=/ListCD.jsp
 validate=false
 forward name=result path=/ListCD.jsp/
/action
 
 ListCD.jsp:
 html:form action=/listcd
 
 anyone?
 or should i start to look for a hammer again?
 

Got me on this one, given the above...I'm hoping there's no other 
messages in the JBoss logs about missing classes on the action and form 
bean?
-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers


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




Re: Question on Struts debugging - one more time

2002-01-15 Thread dion

Rick Horowitz wrote:

 I tried switching from JBuilder to NetBeans but found
 NetBeans too slow - on a 400Mhz XEON with 512MB RAM.


I'm running a PIII 1Ghz with 512MB on Mandrake and NB 3.3 is fine for 
meI've also had Eclipse running on it, but at the moment Eclipse is 
'flakier' than NB by a long way.


 I've switched back to JBuilder Personal. The JB 6.0
 release now installs easily on Redhat 7.2 (unlike the
 5.0 release, which I never got working). NetBeans has
 more functionality than the free version of JB
 (Personal - used to be Foundation), but the speed
 difference is too much for me to ignore. I'm planning
 to try NB again with their 3.4 version.
 
 
 --- Keith Bacon [EMAIL PROTECTED] wrote:
 
I don't use a proper IDE, I'm waiting till it's
clear they are very good  I
can get a fast response time. So some of what I said
was in ignorance, but also many people don't
use IDE's yet.
I don't have time to keep trying them out - last
year I tried, they clearly needed a monster
computer to run. 
Is netbeans the best IDE?
Are you happy with it?
What sized machine to run on? 
Keith.
[snippity]



-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers


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




Resin X Tomcat

2002-01-15 Thread Rubens Gama

what JSP Engine i must to use, Tomcat or Resin?
what is the best?

thanks in advance...

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




Re: mapping not found?

2002-01-15 Thread Wim Fournier

have this in my struts-config.xml:

!-- Action Form Beans --
form-beans
form-bean name=listCDForm type=nl.kern.j2ee.sample.struts.ListCDForm/
/form-beans

so thats covered.. 
is there a reason for you to write DC instead of CD? (maybe i made a typo somewhere?)

tnx


On Tue, Jan 15, 2002 at 02:25:39PM +, karim wrote:
 your listCDForm needs a Form Bean Definition in the struts-config.xml file.
 
 should look something like this:
 form-beans
 
  !-- Logon form bean --
  form-bean  name=listDCForm
  type=nl.kern.j2ee.sample.struts.ListDCForm/
  /form-beans
 
 
 [EMAIL PROTECTED] wrote:
 
  Hi again
  
  My catalina tells me that it cant find the mapping for /listcd
  
  log:
  [INFO,EmbeddedCatalinaServiceSX] action: Process servletName=action, 
urlPattern=*.do
  [INFO,EmbeddedCatalinaServiceSX] action: Mapping for servlet 'action' = '*.do'
  
  javax.servlet.ServletException: Cannot retrieve mapping for action /listcd
  
  web.xml:
servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
/servlet-mapping
  
  struts-config.xml:
  action path=/listcd
  type=nl.kern.j2ee.sample.struts.ListCDAction
  name=listCDForm
  scope=request
  input=/ListCD.jsp
  validate=false
  forward name=result path=/ListCD.jsp/
 /action
  
  ListCD.jsp:
  html:form action=/listcd
  
  anyone?
  or should i start to look for a hammer again?
  
  --
  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]
 

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




Re: Resin X Tomcat

2002-01-15 Thread Will Jaynes

Any servlet/jsp engine should be fine, although there can be problems if 
the engine doesn't implement the spec properly. I use Resin and love it. 
Others use Tomcat and love it. Those two work for sure. Many others do too.

Rubens Gama wrote:

 what JSP Engine i must to use, Tomcat or Resin?
 what is the best?
 
 thanks in advance...
 
 --
 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]




Problem with mapped properties

2002-01-15 Thread Maciej Koodziej

Hi,

I'm  building  an  application,  which  uses  database as a source for
configuration  data.  For example I have a page which enables users to
customize  their  personal  UI schema, like which columns they want to
see in search result.

Now  that  means,  that  I  have to build dynamic html forms and use mapped
properties   to   populate  action  forms. Also property attributes in
form  tags (like html:text property="...") need to be set dynamically
with values taken from db. I tried to do it like that:


%
  String  key  =  "this  is  taken  from  database"
%
html:text property="property(%=key%)"/

but  that  doesn't  work.  I guess I don't have to mention, that using
another  jsp  tag  instead  of  %=key%  doesn't work either. It just
appears  in  html  output  as  ordinary  text  - it's not parsed while
converting  .jsp to .java. I noticed, that these are the brackets that
cause this malfunction. If I write:

html:text property="%=key%"/

everything works fine.

-- 
Best regards,
Maciej


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




Re: mapping not found?

2002-01-15 Thread Wim Fournier

On Tue, Jan 15, 2002 at 03:51:47PM +0100, Tom Klaasen (TeleRelay) wrote:
 You did restart your tomcat after modifying struts-config.xml, did you?
no, i deployed it into jboss again.. jboss should take care of re-deploying into tomcat
but restarting the whole doesnt help either (just tried)

 
 And you made sure ListCDAction extends Action :-P ?
yeah yeah ;o)
 
 tomK
 
 
  -Original Message-
  From: Wim Fournier [mailto:[EMAIL PROTECTED]] 
  Sent: dinsdag 15 januari 2002 15:36
  To: Struts Users Mailing List
  Subject: Re: mapping not found?
  
  
  have this in my struts-config.xml:
  
  !-- Action Form Beans --
  form-beans
  form-bean name=listCDForm 
  type=nl.kern.j2ee.sample.struts.ListCDForm/
  /form-beans
  
  so thats covered.. 
  is there a reason for you to write DC instead of CD? (maybe i 
  made a typo somewhere?)
  
  tnx
  
  
  On Tue, Jan 15, 2002 at 02:25:39PM +, karim wrote:
   your listCDForm needs a Form Bean Definition in the 
  struts-config.xml file.
   
   should look something like this:
   form-beans
   
!-- Logon form bean --
form-bean  name=listDCForm
type=nl.kern.j2ee.sample.struts.ListDCForm/
/form-beans
   
   
   [EMAIL PROTECTED] wrote:
   
Hi again

My catalina tells me that it cant find the mapping for /listcd

log:
[INFO,EmbeddedCatalinaServiceSX] action: Process 
  servletName=action, urlPattern=*.do
[INFO,EmbeddedCatalinaServiceSX] action: Mapping for 
  servlet 'action' = '*.do'

javax.servlet.ServletException: Cannot retrieve mapping 
  for action /listcd

web.xml:
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

struts-config.xml:
action path=/listcd
type=nl.kern.j2ee.sample.struts.ListCDAction
name=listCDForm
scope=request
input=/ListCD.jsp
validate=false
forward name=result path=/ListCD.jsp/
   /action

ListCD.jsp:
html:form action=/listcd

anyone?
or should i start to look for a hammer again?

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

   
   
   
   --
   To unsubscribe, e-mail:   
  mailto:struts-user- [EMAIL PROTECTED]
   For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
   
  
  --
  To unsubscribe, e-mail:   
  mailto:struts-user- [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]
 

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




RE: Problem with mapped properties

2002-01-15 Thread Rey Francois

I'm not really sure in understand you problem but in order for
"property(key)" to work, you need to have the following methods on your form
bean:

  public Object getProperty(String key)
  public void setProperty(String key, Object value)

These methods typically store your property values in a map of some sort.
For example, if you had the following on your form bean:

  public Object getAddress(String key)
  public void setAddress(String key, Object value)

you would be able to  use "address(personal)" and "address(office)".

Hope this helps,

Fr.

-Original Message-
From: Maciej Kolodziej [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 15:53
To: Struts Users Mailing List
Subject: Problem with mapped properties


Hi,

I'm  building  an  application,  which  uses  database as a source for
configuration  data.  For example I have a page which enables users to
customize  their  personal  UI schema, like which columns they want to
see in search result.

Now  that  means,  that  I  have to build dynamic html forms and use mapped
properties   to   populate  action  forms. Also property attributes in
form  tags (like html:text property="...") need to be set dynamically
with values taken from db. I tried to do it like that:


%
  String  key  =  "this  is  taken  from  database"
%
html:text property="property(%=key%)"/

but  that  doesn't  work.  I guess I don't have to mention, that using
another  jsp  tag  instead  of  %=key%  doesn't work either. It just
appears  in  html  output  as  ordinary  text  - it's not parsed while
converting  .jsp to .java. I noticed, that these are the brackets that
cause this malfunction. If I write:

html:text property="%=key%"/

everything works fine.

-- 
Best regards,
Maciej


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

The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, please notify the sender of this email 
immediately. You should not copy, use or disseminate the 
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***


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




RE: mapping not found?

2002-01-15 Thread Tom Klaasen (TeleRelay)

 -Original Message-
 From: Wim Fournier [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 15 januari 2002 16:00
 To: Struts Users Mailing List
 Subject: Re: mapping not found?
 
 
 On Tue, Jan 15, 2002 at 03:51:47PM +0100, Tom Klaasen 
 (TeleRelay) wrote:
  You did restart your tomcat after modifying 
 struts-config.xml, did you?
 no, i deployed it into jboss again.. jboss should take care 
 of re-deploying into tomcat
 but restarting the whole doesnt help either (just tried)

I don't think jboss would reload struts-config.xml automagically (don't
know for sure though). There is a reload feature in struts itself for
this purpose. Restarting should do the job also.

Hmm, my guessing inspiration is over :-(

tomK

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




Re: Problem with mapped properties

2002-01-15 Thread Peter Pilgrim


Unfortunately, this is limitiation of the JSP 1.1 specification

You have to supply directly complete  "java.lang.Strings" to any custom tag attributes.
Spec says nothing about partial dynamic values. Here is the solution:

%
  String  key  =  "EMPLOYEE_PAYROLL_ID";
  String  prop_key = "property( "+ key+ " )";
%
html:text property="%= prop_key %"/

It will work provided your action form bean has the following
public accessible methods.

public Object getProperty( String key );
public void setProperty( String key, Object value );

This is exactly same problem that I had for dynamic javascript handlers for say
htm:button.
--
Peter Pilgrim ++44 (0)207-545-9923

 Swamped under electionic mails


 Message History 



From: Maciej Koodziej [EMAIL PROTECTED] on 15/01/2002 15:53 CET
--CUT--

I'm  building  an  application,  which  uses  database as a source for
configuration  data.  For example I have a page which enables users to
customize  their  personal  UI schema, like which columns they want to
see in search result.

Now  that  means,  that  I  have to build dynamic html forms and use mapped
properties   to   populate  action  forms. Also property attributes in
form  tags (like html:text property="...") need to be set dynamically
with values taken from db. I tried to do it like that:


%
  String  key  =  "this  is  taken  from  database"
%
html:text property="property(%=key%)"/



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




Struts Fast Track review

2002-01-15 Thread Dick Starr

Thanks Vic, for wanting to help others learn Struts. However, as you point
out in your book, you are not an author. I would rate this book at 1/2 star
of a possible 5. I suppose it's true that you can do the exercises and get
up on Struts, but I think that there is more useful information of this type
on the web.

I am new to both Struts and Java, and have been buying lots of books. I have
been very happy with every Wrox book  I have purchased. Professional JSP
2nd Edition has an excellent chapter on Struts by Steve Wilkinson.
Professional JSP Site Design is my favorite book so far, with an
introductory struts chapter with a database example by Sathya Narayana
Panduranda and three additional chapters with a database example by Ted
Husted. I would rate both these books at 5 stars.

Ted Husted will have a book out in a few months, see
http://husted.com/about/scaffolding/index.htm .

Dick Starr
[EMAIL PROTECTED]


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




Using Struts with other frameworks...

2002-01-15 Thread CERY Philippe

Hi,

I'm a new user of Struts and my first my mission consists in combining
Struts with an other generic J2EE framework. This framework contains lots of
components and services like SendMail, Forums, ErrorHandling, Database
Access or Workflow...
I'm looking for someone who have already done this.
Thank you for your help.

Philippe.


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




Help using Struts Logic tags.

2002-01-15 Thread VEDRE, RANAPRATAP REDDY

What is the best way to write the following scriptlet code using Logic Tags.

 I tried to do it with present and notEmpty but couldn't get it to work.

% if(session.getAttribute(KEY) != null){ %

   if(session.getAttribute(KEY).equals(True))
   {
 // Some HTML goes here.
   }

% } %

-Thanks 

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




Re[2]: Problem with mapped properties

2002-01-15 Thread Maciej Koodziej

Hi,

In Your mail sent Tuesday, January 15, 2002 You wrote:

RF I'm not really sure in understand you problem but in order for
RF "property(key)" to work, you need to have the following methods on your form
RF bean:

RF   public Object getProperty(String key)
RF   public void setProperty(String key, Object value)

Yes,  I  have  these methods, and it's not the problem. The problem is
that  I  can't  insert  dynamic  content  into  jsp  tags, when I have
brackets in it. Like I wrote:

html:text property="%=key%"/

works and:

html:text property="property(%=key%)"/

doesn't work and I just get:

input type="text" name="property(%=key%)"

on  the output.
That means, that in the second case java code fragment
denoted by %= and % is not parsed and is treated as text.


-- 
Best regards,
 Maciej


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




RE: Can I use a jsp as the action value in: html:form

2002-01-15 Thread Zhiyong Li

I did what you suggested. However, I got the following exception:

javax.servlet.ServletException: Cannot retrieve definition for form bean
null

Any ideas?

Zhiyong Li
iBiomatics R  D
SAS Institute
(919) 653-2746
[EMAIL PROTECTED]




-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 4:12 PM
To: Struts Users Mailing List
Subject: Re: Can I use a jsp as the action value in: html:form


The easiest way is to put an action mapping in your struts-config file:

action 
path=/jspMapping
forward=/p21/security/businesslogin.jsp
/action


--- Zhiyong Li [EMAIL PROTECTED] wrote:
 I tried to use a jsp as the action target, for example,
 
 html:form action=/p21/security/businesslogin.jsp
focus=j_username
 
 However, I got the exception: 
 javax.servlet.ServletException: Cannot retrieve mapping for action
 /p21/security/businesslogin 
 
 Can I use a jsp as the action target with the html:form tag?
 
 Thanks,
 
 Zhiyong Li
 iBiomatics R  D
 SAS Institute
 (919) 653-2746
 [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]




RE: Loading data for html:select

2002-01-15 Thread Larry Maturo

Hi Mark,

We have a method to return an ArrayList in our
Business Object, and our Action Class passes that
to the JSP by setting it as an attribute.  We don't
put it into the ActionForm at all.  Although you
could easily do it that way, it does not really
buy you anything, as far as we call tell.

-- Larry Maturo
   [EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Mark Woon
Sent: Monday, January 14, 2002 9:13 PM
To: Struts Users Mailing List
Subject: Loading data for html:select


Hi all...

What's the standard way of loading a list of options from a database for
use within the html:select tag?  Do you normally just do it within the
JSP page?  Is there a way to get the ActionForm to load it?  Or do you
do something completely different?

Thanks,
-Mark



--
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]




RE: Re[2]: Problem with mapped properties

2002-01-15 Thread Robert Taylor

I was just wrestling with the same problem and found the following in the
JSP 1.2 Spec.

JSP.2.13.1 Request Time Attribute Values

snip
The expression must appear by itself (multiple
expressions, and mixing of expressions and string constants are not
permitted).
/snip

HTH,

robert


 -Original Message-
 From: Maciej Koodziej [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 10:48 AM
 To: Struts Users Mailing List
 Subject: Re[2]: Problem with mapped properties


 Hi,

 In Your mail sent Tuesday, January 15, 2002 You wrote:

 RF I'm not really sure in understand you problem but in order for
 RF "property(key)" to work, you need to have the following
 methods on your form
 RF bean:

 RF   public Object getProperty(String key)
 RF   public void setProperty(String key, Object value)

 Yes,  I  have  these methods, and it's not the problem. The problem is
 that  I  can't  insert  dynamic  content  into  jsp  tags, when I have
 brackets in it. Like I wrote:

 html:text property="%=key%"/

 works and:

 html:text property="property(%=key%)"/

 doesn't work and I just get:

 input type="text" name="property(%=key%)"

 on  the output.
 That means, that in the second case java code fragment
 denoted by %= and % is not parsed and is treated as text.


 --
 Best regards,
  Maciej


 --
 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]




Using struts-template as taglib

2002-01-15 Thread Andras Balogh


Hi all,

I want to ask you about the posibility to using the struts-template
taglib in a project that is not using struts at all.
Initally i searched for a template taglib at
http://jakarta.apache.org/taglibs/
but i couldn't find any.
I then thought about using the struts-template taglib.
So i took struts.jar and removed anything not related to
struts-template. This is legal to do?
I wonder if will be available the struts-template as taglib?

Sorry for being off-topic a little bit ..

Andras.

 



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




RE: Help using Struts Logic tags.

2002-01-15 Thread Andrew B Forman

I've been using the session taglib
http://jakarta.apache.org/taglibs/doc/session-doc/intro.html

which would end up looking something like...

session:existsAttribute name=KEY value=true
 session:equalsAttribute name=KEY matchTrue value=true
// Some HTML goes here.
 /session:equalsAttribute
/session:existsAttribute

_\|/___
  generation-d development
  andrew b forman 

 -Original Message-
 From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 9:48 AM
 To: '[EMAIL PROTECTED]'
 Subject: Help using Struts Logic tags.
 
 
 What is the best way to write the following scriptlet code using 
 Logic Tags.
 
  I tried to do it with present and notEmpty but couldn't get it to work.
 
 % if(session.getAttribute(KEY) != null){ %
 
if(session.getAttribute(KEY).equals(True))
{
  // Some HTML goes here.
}
 
 % } %
 
 -Thanks 
 
 --
 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]




Report's Tag

2002-01-15 Thread Rubens Gama

could you tell me if exists any JSP report tag?


thanks in advance

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




RE: Using struts-template as taglib

2002-01-15 Thread Vaughan Jackson

Andras,

I believe you can download a jar file containing a 
templates taglib from http://www.phptr.com/advjsp/.

The author of this taglib is David Geary, the same author 
as that of the template tags in Struts. I think this
version is just an improved version of that in Struts
(although some of the tag attribute names have been 
changed).

HTH,
Vaughan.

 -Original Message-
 From: Andras Balogh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 8:26 AM
 To: [EMAIL PROTECTED]
 Subject: Using struts-template as taglib
 
 
 
 Hi all,
 
 I want to ask you about the posibility to using the struts-template
 taglib in a project that is not using struts at all.
 Initally i searched for a template taglib at
 http://jakarta.apache.org/taglibs/
 but i couldn't find any.
 I then thought about using the struts-template taglib.
 So i took struts.jar and removed anything not related to
 struts-template. This is legal to do?
 I wonder if will be available the struts-template as taglib?
 
 Sorry for being off-topic a little bit ..
 
 Andras.
 
  
 
 
 
 --
 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]




Getting result of JSP in Action Class - how?

2002-01-15 Thread Matt Raible

I'm trying to use filters to do my XML/XSL Transformation. I'm wondering if
anyone knows how to get the JSP as XML in my action class?  Basically, I
want to do something like:

Document doc = mapping.getXMLfromJSP(mapping.findForward(continue));

Where continue maps to a local forward (i.e. login.jsp) in my
struts-config.xml.  The login.jsp has contentType=text/xml and contains
html:form and bean:message elements that I'd like to be populated as if
the page was really forwarded to.

This seems fairly simple - any help is appreciated.

Thanks,

Matt


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




RE: Report's Tag

2002-01-15 Thread Tom Klaasen (TeleRelay)

 -Original Message-
 From: Rubens Gama [mailto:[EMAIL PROTECTED]] 
 Sent: dinsdag 15 januari 2002 17:52
 To: Struts-User
 Subject: Report's Tag
 
 
 could you tell me if exists any JSP report tag?

If you can tell what that tag is supposed to do ...

tomK

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




RE: Application resources and logic:notPresent

2002-01-15 Thread Jeff Oberlander

Thanks Keith. It turns out that the name=org.apache.struts.action.MESSAGE
was ok.  Turns out I was simply missing the taglib
uri=/WEB-INF/tlds/struts-logic.tld.  Being new to struts, I would have
guessed that would've given me a jsp compile error but it doesn't. 

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 3:54 AM
To: Struts Users Mailing List
Subject: Re: Application resources and logic:notPresent


Hi Jeff,
is it because
name=org.apache.struts.action.MESSAGE
is the class name of the messages when you should specify the attribute name
that class has been
stored under? (It'll be defined as a constant somewhere but I don't know
where off-hand).
Keith.


--- Jeff Oberlander [EMAIL PROTECTED] wrote:
 I am seeing conflicting behavior with application resources. This is basic
 stuff, but I haven't found an answer in the archives.
 
 First, in my index.jsp I can do the following:
 
 bean:message key=test.message/
 
 It successfully displays my test text message from my ApplicationResources
 file.
 
 But, when I also try to execute the logic:notPresent code as given in the
 example:
 
   logic:notPresent name=org.apache.struts.action.MESSAGE
 scope=application
   font color=red
 ERROR:  Application resources not loaded -- check servlet container
 logs for error messages.
   /font
 /logic:notPresent
 
 It results in displaying the red not loaded message.
 
 How can it be that this logic:notPresent thinks the resources aren't
there,
 but the bean:message can retrieve them just fine?
 
 Thanks much
 
 Jeff
 
 
 
 
 
 
 http://www.xns.org/=jeffoberlander 
 
 --
 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]




Re: Using struts-template as taglib

2002-01-15 Thread Cedric Dumoulin


  You can use Tiles, which is compatible with Templates and can be used without
Struts. If you just need template tags, you don't need to use Tile's servlet.

  It is planned to move Tiles to the taglib project.

Cedric

Andras Balogh wrote:

 Hi all,

 I want to ask you about the posibility to using the struts-template
 taglib in a project that is not using struts at all.
 Initally i searched for a template taglib at
 http://jakarta.apache.org/taglibs/
 but i couldn't find any.
 I then thought about using the struts-template taglib.
 So i took struts.jar and removed anything not related to
 struts-template. This is legal to do?
 I wonder if will be available the struts-template as taglib?

 Sorry for being off-topic a little bit ..

 Andras.



 --
 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]




Port being added to URL in Netscape 4.7 causing session problems

2002-01-15 Thread @Basebeans.com

Subject: Port being added to URL in Netscape 4.7 causing session problems
From: Ricky Frank [EMAIL PROTECTED]
 ===
I am having some problems maintaining a session after calling an action from
a Netscape 4.7 browser.  It seems to be from the addition of the port to the
URL (Netscape seems to do this automatically) when clicking the submit
button on a form.  The page that I am forwarded to does not have the
appropriate session information so not everything displays (display of
components is controlled by authorization of user).  When I simply remove
the port from the URL, the page displays appropriately (gets the components
that the user has access to).  Can anyone help me out?

Ricky



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




Re: Getting result of JSP in Action Class - how?

2002-01-15 Thread Fernando Otero

Hi,

I didn't understand your problem at all.
I have 3 questions that could help to clarify it:

1) Why you need to get the JSP as XML in your action class?

2) Since your JSP contains html:form, you are generating
   HTML code in your JSP. Is this correct? Using other HTML tags
   you could possibly generate a bad formed XML.

3) The filters that you mentioned are servlet filters from
   the servlet 2.3 specs, right?

Fernando

- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 1:07 PM
Subject: Getting result of JSP in Action Class - how?


 I'm trying to use filters to do my XML/XSL Transformation. I'm wondering
if
 anyone knows how to get the JSP as XML in my action class?  Basically, I
 want to do something like:

 Document doc = mapping.getXMLfromJSP(mapping.findForward(continue));

 Where continue maps to a local forward (i.e. login.jsp) in my
 struts-config.xml.  The login.jsp has contentType=text/xml and contains
 html:form and bean:message elements that I'd like to be populated as
if
 the page was really forwarded to.

 This seems fairly simple - any help is appreciated.

 Thanks,

 Matt


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




RE: Question on Struts debugging - one more time

2002-01-15 Thread Sandeep Takhar

I am quite happy with it.  

There is some time in figuring out configuration
issues and searching through mailing lists.  But if
you're reading this one...

I have 256 ram and and p4 @home, 500 ram and p1 here
at work -- both work sufficiently well.  Being able to
see what is being debugged is important for me and I
will take a little hit in performance if necessary,
but I haven't noticed it being overly slow anyways.

I have used visual age in the past, but prefer
netbeans.  Nice thing about netbeans is you can get it
for free and download it at home with no problem.

CVS and ant are also being used here and I find them
invaluable as well.

Sandeep
--- Rick Horowitz [EMAIL PROTECTED] wrote:
 I tried switching from JBuilder to NetBeans but
 found
 NetBeans too slow - on a 400Mhz XEON with 512MB RAM.
 I've switched back to JBuilder Personal. The JB 6.0
 release now installs easily on Redhat 7.2 (unlike
 the
 5.0 release, which I never got working). NetBeans
 has
 more functionality than the free version of JB
 (Personal - used to be Foundation), but the speed
 difference is too much for me to ignore. I'm
 planning
 to try NB again with their 3.4 version.
 
 
 --- Keith Bacon [EMAIL PROTECTED] wrote:
  I don't use a proper IDE, I'm waiting till it's
  clear they are very good  I
  can get a fast response time. So some of what I
 said
  was in ignorance, but also many people don't
  use IDE's yet.
  I don't have time to keep trying them out - last
  year I tried, they clearly needed a monster
  computer to run. 
  Is netbeans the best IDE?
  Are you happy with it?
  What sized machine to run on? 
  Keith.
  
  
  
  --- Sandeep Takhar [EMAIL PROTECTED]
 wrote:
   I am not sure what is implied by the below
  messages:
   
   Using netbeans I am able to 
   
   debug servlets
   debug jsp's (a little buggy but it works)
   debug action classes and form classes.
   
   I am not sure if this all works remotely or not.
   
   logging is always a good idea.
   
   Sandeep
   --- Kilmer, Erich
  [EMAIL PROTECTED]
   wrote:
Hi Keith,
Thanks for your reply.
I do use already many of the techniques listed
  in
your email as well as
log4j.
I do not have any problem catching errors in
  form
and actions classes.
I do have problem finding errors that come out
  of
the html tags in JSPs.
If there is a bad mapping and an html:form's
  action
point to the mapping
with a problem I do not see any errors in any
 of
  the
logs. I have modified
my error.jsp in hopes of seeing more but so
 far
nothing.
If I have better luck with this I will let the
  group
know.
Developing in Struts would be much faster if
  there
was a way to diagnose
such problems.
Erich

-Original Message-
From: Keith Bacon
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 8:54 AM
To: Struts Users Mailing List
Subject: Re: Question on Struts debugging -
 one
  more
time


I've not had better luck. I think it's the way
  it
is.
Here's how I do it - I'd like to know how
 others
  do.

I use hundreds of log messages so I can trace
  the
flow of my program. I make
the method calls for
logging easy to type - dbmd(a debug msg) or
dbmw(warning message).
I code traces into action classes from the
  start. to
show the perform method
starting  ending so
a dud struts config is found because the
 Action
  i
expect to run doesn't log
it's start. 
I check for null pointers all over the place 
  log a
warning or throw an
exception for them.
I constantly restart the server (tomcat 3.2.2)
  to
make weird problems go
away.
Auto class reloading doesn't work properly so
 -
  I
restart after every
compile.

I use these 3 methods in jsp's  Action
 classes
  a
lot, to check the contents
of the session 
request - this finds things left in the
 session
  by
mistake.
public static void
printSessionAttributeNames(String caller,
HttpSession session) {
public static void
printRequestAttributeNames(String caller,
HttpServletRequest request) {
public static void
  printRequestParameters(String
caller,
HttpServletRequest request) {
I've attached the code for them, someone may
  find
them useful - the codes a
bit dodgy  old but
it's easy to understand.

I have my own logging code (from old servlet
programming) but I want to use
log4j (one day!) - You
really need to be able to switch trace
 messages
on/off without re-compiling
classes or restarting
the server.

Only when it's quite reliable do I remove the
messages. Often I just comment
the mesages out in
expectation it will go wrong in future.

All in all a bit primitive compared to some
(non-web) environments I've
worked in. we're in the

Report Taglib

2002-01-15 Thread Rubens Gama

where can i found taglib report using the Struts Framework?

thanks in advance.

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




RE: Application resources and logic:notPresent

2002-01-15 Thread Keith Bacon

I've hit that trap too.
It seems if the JSP compiler doesn't understand the tag it sends it down to the 
browser.
(JSP probably doesn't even understand HTML).
If the browser doesn't understand it it ignores it  content directly under it but 
evaluates
nested tags.
Anybody know of any browser logging that can be switched on that would warn us about 
this sort of
thing?
Keith.



--- Jeff Oberlander [EMAIL PROTECTED] wrote:
 Thanks Keith. It turns out that the name=org.apache.struts.action.MESSAGE
 was ok.  Turns out I was simply missing the taglib
 uri=/WEB-INF/tlds/struts-logic.tld.  Being new to struts, I would have
 guessed that would've given me a jsp compile error but it doesn't. 
 
 -Original Message-
 From: Keith Bacon [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 3:54 AM
 To: Struts Users Mailing List
 Subject: Re: Application resources and logic:notPresent
 
 
 Hi Jeff,
 is it because
 name=org.apache.struts.action.MESSAGE
 is the class name of the messages when you should specify the attribute name
 that class has been
 stored under? (It'll be defined as a constant somewhere but I don't know
 where off-hand).
 Keith.
 
 
 --- Jeff Oberlander [EMAIL PROTECTED] wrote:
  I am seeing conflicting behavior with application resources. This is basic
  stuff, but I haven't found an answer in the archives.
  
  First, in my index.jsp I can do the following:
  
  bean:message key=test.message/
  
  It successfully displays my test text message from my ApplicationResources
  file.
  
  But, when I also try to execute the logic:notPresent code as given in the
  example:
  
logic:notPresent name=org.apache.struts.action.MESSAGE
  scope=application
font color=red
  ERROR:  Application resources not loaded -- check servlet container
  logs for error messages.
/font
  /logic:notPresent
  
  It results in displaying the red not loaded message.
  
  How can it be that this logic:notPresent thinks the resources aren't
 there,
  but the bean:message can retrieve them just fine?
  
  Thanks much
  
  Jeff
  
  
  
  
  
  
  http://www.xns.org/=jeffoberlander 
  
  --
  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]




RES: Report's Tag

2002-01-15 Thread Rubens Gama

well, i have a ResultSet object populated, ok?

i want a header..
page break...
a footer

the report's body can use the ResultSet to show the data in a determined
way(like 3 columns and 60 lines, etc).
and the pagination feature, for example.

-Mensagem original-
De: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 15 de janeiro de 2002 15:28
Para: Struts Users Mailing List
Assunto: RE: Report's Tag


 -Original Message-
 From: Rubens Gama [mailto:[EMAIL PROTECTED]]
 Sent: dinsdag 15 januari 2002 17:52
 To: Struts-User
 Subject: Report's Tag


 could you tell me if exists any JSP report tag?

If you can tell what that tag is supposed to do ...

tomK

--
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]




RE: Help using Struts Logic tags.

2002-01-15 Thread Keith Bacon


logic:equal name=KEY scope=session value=True 
/logic:equal

not tested - done my best..watch the capitalisation!
K.


--- Andrew B Forman [EMAIL PROTECTED] wrote:
 I've been using the session taglib
 http://jakarta.apache.org/taglibs/doc/session-doc/intro.html
 
 which would end up looking something like...
 
 session:existsAttribute name=KEY value=true
  session:equalsAttribute name=KEY matchTrue value=true
   // Some HTML goes here.
  /session:equalsAttribute
 /session:existsAttribute
 
 _\|/___
   generation-d development
   andrew b forman 
 
  -Original Message-
  From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 15, 2002 9:48 AM
  To: '[EMAIL PROTECTED]'
  Subject: Help using Struts Logic tags.
  
  
  What is the best way to write the following scriptlet code using 
  Logic Tags.
  
   I tried to do it with present and notEmpty but couldn't get it to work.
  
  % if(session.getAttribute(KEY) != null){ %
  
 if(session.getAttribute(KEY).equals(True))
 {
   // Some HTML goes here.
 }
  
  % } %
  
  -Thanks 
  
  --
  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: my first struts - cant find message resources

2002-01-15 Thread David M. Karr

 Wim == Wim Fournier [EMAIL PROTECTED] writes:

Wim Hi all,
Wim Sorry to bug you with this newbie questions, but hey.. we all gonna learn 
some time ;o)

Wim I'm building a sample application to teach myself struts / EJB. I'm working 
with JBoss and have installed the CD example EJB.

Wim As I'm developping the struts frontend war I bump into 2 problems (sofar)

Wim 1) on loading my jsp file i get the following:

Wim javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
Wim I've got the following in my web.xml:
Wim servlet-nameaction/servlet-name
Wim servlet-classnl.kern.j2ee.sample.struts.ListCDAction/servlet-class
Wim init-param
Wim   param-nameapplication/param-name
Wim   
param-valuenl.kern.j2ee.sample.struts.ApplicationResources/param-value
Wim /init-param

Wim and my ApplicationResources.properties is in:
Wim WEB-INF/classes/nl/kern/j2ee/sample/struts/ApplicationResources.properties

Wim whats wrong here?

Wim 2) on deployement I get the following:
Wim [ERROR,EmbeddedCatalinaServiceSX] StandardContext[/cdexample]: Servlet 
/cdexample threw load() exception
Wim javax.servlet.ServletException: Class nl.kern.j2ee.sample.struts.ListCDAction 
is not a Servlet

Wim While my ListCDAction extend Action and has the same imports as the struts 
examples RegistrationAction.java has. It also has a perform method.

Instead of your ListCDAction class, your action servlet needs to be the
following (unless you've subclassed it):

  org.apache.struts.action.ActionServlet

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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




RE: Loading data for html:select

2002-01-15 Thread Keith Bacon

Hi Larry,
I agree very much with you!
Use form bean only for data going to  from form. Struts will call 
get/setSelectedItem(). On 1st
use your action bean calls formBean.setSelectedItem() to specify the default  later 
calls
getSelectedItem to get what user selected.

Data displayed only (ie. non-input fields) to be put in req. by the Action class. 
(This includes
the items displayed in the select list).

I like the standard that everything seen on the JSP was set up by the action class, 
either in the
form bean or in the request.
Who disagrees?
Keith.


--- Larry Maturo [EMAIL PROTECTED] wrote:
 Hi Mark,
 
 We have a method to return an ArrayList in our
 Business Object, and our Action Class passes that
 to the JSP by setting it as an attribute.  We don't
 put it into the ActionForm at all.  Although you
 could easily do it that way, it does not really
 buy you anything, as far as we call tell.
 
 -- Larry Maturo
[EMAIL PROTECTED]
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Mark Woon
 Sent: Monday, January 14, 2002 9:13 PM
 To: Struts Users Mailing List
 Subject: Loading data for html:select
 
 
 Hi all...
 
 What's the standard way of loading a list of options from a database for
 use within the html:select tag?  Do you normally just do it within the
 JSP page?  Is there a way to get the ActionForm to load it?  Or do you
 do something completely different?
 
 Thanks,
 -Mark
 
 
 
 --
 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: Execute Struts in Netbeans?

2002-01-15 Thread dhay



Has anyone produced a similar HOW-TO for Netbeans?  Or will this work for
Netbeans as well as Forte?

Cheers,

Dave





Michael Mok [EMAIL PROTECTED] on 01/14/2002
02:24:27 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]; Please respond to
  [EMAIL PROTECTED]

To:   'Struts Users Mailing List'
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Execute Struts in Netbeans?



I have written a HOW-TO on this. You may want to read it first.

www.michaelmok.com

Michael Mok
Product Manager
FullyBooked
1306 Hay Street
West Perth
Western Australia 6005
Tel: 61 8 93221295
Fax: 61 8 94815281
Email: [EMAIL PROTECTED]
www.fullybooked.com.au

 -Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 12 January 2002 10:41
To:  [EMAIL PROTECTED]
Subject:  RE: Execute Struts in Netbeans?

If you use Forte 3.0 CE (same as netbeans with a few extensions -- good web
app extensions), running Struts apps is no problem.

-Original Message-
From: AJ Morris [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 4:14 PM
To: [EMAIL PROTECTED]
Subject: Execute Struts in Netbeans?


Has anyone had luck executing struts-based applications in the Netbeans
integrated Tomcat? Things are fine with the standalone Tomcat, but not the
internal Tomcat.

Here are the issues. Tomcat can't see the taglibs, but this is solved by
mounting struts.jar. Tomcat will not execute action mappings, because it
says the path is not valid. Tomcat cannot see my ApplicationProperties
files, either.

AJ Morris
[EMAIL PROTECTED]



--
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]








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




RE: Nesting Beans/Iterators/Logic tags whatever else...

2002-01-15 Thread Collard, John

I didn't intend to sound as negative as I did.  I do owe that-- working on
it.  I do like it and will at least use different parts of it.  There are
many applications for the tags use -- even out side the iterate process.

John Collard
[EMAIL PROTECTED]





-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 6:54 AM
To: Struts Users Mailing List
Subject: RE: Nesting Beans/Iterators/Logic tags  whatever else...


After 25 hours, you're entitled to send more information for us to try
to give help on ;-)
Full stacktrace, jsp and relevant java code...

I suppose the other taglibs do work?

tomK


 -Original Message-
 From: Collard, John [mailto:[EMAIL PROTECTED]] 
 Sent: maandag 14 januari 2002 20:46
 To: 'Struts Users Mailing List'
 Subject: RE: Nesting Beans/Iterators/Logic tags  whatever else...
 
 
 Spent about 25 hours attempting to get it to work.  Kept 
 getting the no
 getter method found error, even though I must have compared 
 my code to the
 examples 60-70 times. Sorry.
 
 
  John Collard
  Senior Systems Analyst
  UtiliCorp United Information Technology
  7101 Mercy Road, Suite 400
  Omaha, NE  68106
  voice: 402-926-5236
  fax: 402-996-9736 
  email: [EMAIL PROTECTED]
  
  
 
 
 -Original Message-
 From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 14, 2002 4:23 AM
 To: Struts Users Mailing List
 Subject: RE: Nesting Beans/Iterators/Logic tags  whatever else...
 
 
  -Original Message-
  From: Arron Bates [mailto:[EMAIL PROTECTED]] 
  Sent: vrijdag 11 januari 2002 3:01
  To: Struts Users Mailing List
  Subject: Nesting Beans/Iterators/Logic tags  whatever else...
 [...]
  If you have used the extension and found it useful, can you 
  please reply 
  to this mail to show others that people are using it, and 
 that it is 
  worth using 
 [...]
 
 You know I use it, and you know I love it :-)
 
 tomK
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [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]

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




JSPs under WEB-INF/pages/ -- how to include in WAR file using ANT?

2002-01-15 Thread Barry L. Kline

I have taken to heart everyone's suggestions and have placed my JSPs
under the
WEB-INF/pages directory.  So far, no problem.  When I use ANT's war
task I can't
seem to get the directory structure to remain intact.

e.g.:

WEB-INF/pages/mypage.jsp
WEB-INF/pages/mypage2.jsp

becomes:
 
WEB-INF/mypage.jsp
WEB-INF/mypage2.jsp

I've tried:  

  webinf  dir=${deploy.home}/WEB-INF/pages /   

and 

  webinf  dir=${deploy.home}/WEB-INF/pages/ /   

both with the same result.  The docs indicate that using the webinf
element is what I should use.  Any suggestions?

Thanks

Barry

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




Re: Struts Fast Track review

2002-01-15 Thread cody.burleson



I recieved my copy of the book just 2 days ago.
This book seems more like a companion to some course that must be
instructor led.
What good are these exercises if they contain no answers?
I can sit and make up exercises all day!
I appreciate the author's attempt to shed some light on the world of
struts,
but I would definately have to say that I do not beleive he has succeeded.
I think trioal and error will teach me faster.

- Cody





Dick Starr [EMAIL PROTECTED] on 01/15/2002 09:41:12 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
To:   struts-user [EMAIL PROTECTED]
cc:
Subject:  Struts Fast Track review


Thanks Vic, for wanting to help others learn Struts. However, as you point
out in your book, you are not an author. I would rate this book at 1/2 star
of a possible 5. I suppose it's true that you can do the exercises and get
up on Struts, but I think that there is more useful information of this
type
on the web.

I am new to both Struts and Java, and have been buying lots of books. I
have
been very happy with every Wrox book  I have purchased. Professional JSP
2nd Edition has an excellent chapter on Struts by Steve Wilkinson.
Professional JSP Site Design is my favorite book so far, with an
introductory struts chapter with a database example by Sathya Narayana
Panduranda and three additional chapters with a database example by Ted
Husted. I would rate both these books at 5 stars.

Ted Husted will have a book out in a few months, see
http://husted.com/about/scaffolding/index.htm .

Dick Starr
[EMAIL PROTECTED]


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





The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.


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




Subclassing ActionMapping

2002-01-15 Thread Frank Lawlor

Struts makes it easy to subclass ActionForm, ActionServlet.
Is there a way to specify that ActionMapping is subclassed
and have struts create mappings for calls to the perform
methods that are of my subclass?

Thanks,

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.




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




RE: Execute Struts in Netbeans?

2002-01-15 Thread Rob Parker

I have been able to use struts with Netbeans by unzipping the struts-blank
war file and mounting the resulting directory. Netbeans recognizes the dir
as a web app and takes care of everything for you - mounting jars, setting
up mount points for editing conf files, etc.

What I usually do in practice is install tomcat on my machine, put all of
the struts war files in the tomcat webapps dir, start tomcat so tomcat
unzips the web apps for me, and then mount the resulting directory that I
want to work on in netbeans. After that, just make sure to turn off your
standalone tomcat so port 8080 is not in use. Hope that makes sense.

Rob

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 10:55 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Execute Struts in Netbeans?




Has anyone produced a similar HOW-TO for Netbeans?  Or will this work for
Netbeans as well as Forte?

Cheers,

Dave





Michael Mok [EMAIL PROTECTED] on
01/14/2002
02:24:27 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]; Please respond
to
  [EMAIL PROTECTED]

To:   'Struts Users Mailing List'
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Execute Struts in Netbeans?



I have written a HOW-TO on this. You may want to read it first.

www.michaelmok.com

Michael Mok
Product Manager
FullyBooked
1306 Hay Street
West Perth
Western Australia 6005
Tel: 61 8 93221295
Fax: 61 8 94815281
Email: [EMAIL PROTECTED]
www.fullybooked.com.au

 -Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 12 January 2002 10:41
To:  [EMAIL PROTECTED]
Subject:  RE: Execute Struts in Netbeans?

If you use Forte 3.0 CE (same as netbeans with a few extensions -- good web
app extensions), running Struts apps is no problem.

-Original Message-
From: AJ Morris [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 4:14 PM
To: [EMAIL PROTECTED]
Subject: Execute Struts in Netbeans?


Has anyone had luck executing struts-based applications in the Netbeans
integrated Tomcat? Things are fine with the standalone Tomcat, but not the
internal Tomcat.

Here are the issues. Tomcat can't see the taglibs, but this is solved by
mounting struts.jar. Tomcat will not execute action mappings, because it
says the path is not valid. Tomcat cannot see my ApplicationProperties
files, either.

AJ Morris
[EMAIL PROTECTED]



--
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]








--
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]




Re: Port being added to URL in Netscape 4.7 causing session problems

2002-01-15 Thread Peter Kordel

What platform are you on? I had the same problem on Solaris 8/SPARC
Netscape 4.7.
I finally switched to JDK1.3.1_02 and my problems went away.

Struts Newsgroup (@Basebeans.com) wrote:
 
 Subject: Port being added to URL in Netscape 4.7 causing session problems
 From: Ricky Frank [EMAIL PROTECTED]
  ===
 I am having some problems maintaining a session after calling an action from
 a Netscape 4.7 browser.  It seems to be from the addition of the port to the
 URL (Netscape seems to do this automatically) when clicking the submit
 button on a form.  The page that I am forwarded to does not have the
 appropriate session information so not everything displays (display of
 components is controlled by authorization of user).  When I simply remove
 the port from the URL, the page displays appropriately (gets the components
 that the user has access to).  Can anyone help me out?
 
 Ricky
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

-- 
Peter Kordel
Software Engineer
Zvolve Systems, Inc.
770-551-4528
http://www.zvolve.com

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




Re: session objects disappear

2002-01-15 Thread Peter Kordel

I fixed it by upgrading to jdk1.3.1_02.

Peter Kordel wrote:
 
 i'm on a sun ultra 10, solaris 8, sun jdk 1.3.1, tomcat 4.0.1, struts
 1.0.1.
 i have a login action that stores a userbean in session scope, which i
 use to authenticate and look up roles, etc. i've done this many times
 before.
 if i use global forwards that point to jsps, i have access to this
 session object on every page through a number of ways, bean:write,
 jsp:getProperty, etc
 as soon as i walk through any action though, this session object dies.
 the only session object any of the actions can see is the
 org.apache.struts.action.LOCALE object. i've been fighting this for two
 days now and am suspecting a platform issue. this works under win2k...
 anybody run into this? this is definitely holding me up!
 please, some help?
 
 --
 Peter Kordel
 Software Engineer
 Zvolve Systems, Inc.
 770-551-4528
 http://www.zvolve.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

-- 
Peter Kordel
Software Engineer
Zvolve Systems, Inc.
770-551-4528
http://www.zvolve.com

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




RE: JSPs under WEB-INF/pages/ -- how to include in WAR file using ANT?

2002-01-15 Thread Jeff Oberlander

You need to move your input directory up a level like:

 webinf  dir=${deploy.home}/WEB-INF/ /   

If that upper dir has extra things you don't want in the distribution, use
includes:
  webinf dir=${deploy.home}/WEB-INF/
  include name=pages/*.jsp/
  /webinf




-Original Message-
From: Barry L. Kline [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 11:19 AM
To: [EMAIL PROTECTED]
Subject: JSPs under WEB-INF/pages/ -- how to include in WAR file using
ANT?


I have taken to heart everyone's suggestions and have placed my JSPs
under the
WEB-INF/pages directory.  So far, no problem.  When I use ANT's war
task I can't
seem to get the directory structure to remain intact.

e.g.:

WEB-INF/pages/mypage.jsp
WEB-INF/pages/mypage2.jsp

becomes:
 
WEB-INF/mypage.jsp
WEB-INF/mypage2.jsp

I've tried:  

  webinf  dir=${deploy.home}/WEB-INF/pages /   

and 

  webinf  dir=${deploy.home}/WEB-INF/pages/ /   

both with the same result.  The docs indicate that using the webinf
element is what I should use.  Any suggestions?

Thanks

Barry

--
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]




bean:replace ?

2002-01-15 Thread João Guilherme Del Valle

Hi,

I want to replace a bean. But bean:define does not work the way I thought.
I´d like to do something like this:

---
Check the new items:
bean:define id=items name=recentItems toScope=request /
tiles:insert page=ItemList.jsp/

Check the most popular:
bean:define id=items name=mostPopularItems toScope=request /
tiles:insert page=ItemList.jsp/
---

The page ItemList.jsp looks for a bean called items and prints it.
But this code gives me a compilation error, variable items already
defined. I know this could be solved with the following scriptlet:
---
% request.setAttribute(items, request.getAttribute(mostLoanedItems) );
%
---
But I have an application with 35 pages and it´s scriptlet-free. I wouldn´t
like to put one because of these. In resume, there are other solutions, but
any ideia of an elegant one?


João.



Joao Guilherme Del Valle
[EMAIL PROTECTED]
Visionnaire Informática SA
http://www.visionnaire.com.br
Tel/Fax: +55 41 373-7400 r: 217




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




Re: Struts Fast Track review

2002-01-15 Thread Dick Starr

Cody,

Vic does Struts training. If I recall correctly, he did a three day course
in Texas last December. I expected the book to be based on his course, but
was also hoping for much more.

Vic posted the following on December 18th: My intention was to get out
something timely, but imperfect (as per Cathedral and Bazaar) and expose
it to day light ... (my 2nd edition will be with a major publisher, and more
writers/editors (based on my public training) due in 8 months ... .

Dick

- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 1:25 PM
Subject: Re: Struts Fast Track review




 I recieved my copy of the book just 2 days ago.
 This book seems more like a companion to some course that must be
 instructor led.
 What good are these exercises if they contain no answers?
 I can sit and make up exercises all day!
 I appreciate the author's attempt to shed some light on the world of
 struts,
 but I would definately have to say that I do not beleive he has succeeded.
 I think trioal and error will teach me faster.

 - Cody





 Dick Starr [EMAIL PROTECTED] on 01/15/2002 09:41:12 AM

 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]
 To:   struts-user [EMAIL PROTECTED]
 cc:
 Subject:  Struts Fast Track review


 Thanks Vic, for wanting to help others learn Struts. However, as you point
 out in your book, you are not an author. I would rate this book at 1/2
star
 of a possible 5. I suppose it's true that you can do the exercises and get
 up on Struts, but I think that there is more useful information of this
 type
 on the web.

 I am new to both Struts and Java, and have been buying lots of books. I
 have
 been very happy with every Wrox book  I have purchased. Professional JSP
 2nd Edition has an excellent chapter on Struts by Steve Wilkinson.
 Professional JSP Site Design is my favorite book so far, with an
 introductory struts chapter with a database example by Sathya Narayana
 Panduranda and three additional chapters with a database example by Ted
 Husted. I would rate both these books at 5 stars.

 Ted Husted will have a book out in a few months, see
 http://husted.com/about/scaffolding/index.htm .

 Dick Starr
 [EMAIL PROTECTED]


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




 
 The information transmitted is intended only for the person or entity to
 which it is addressed and may contain confidential and/or privileged
 material.  Any review, retransmission, dissemination or other use of, or
 taking of any action in reliance upon, this information by persons or
 entities other than the intended recipient is prohibited.   If you
received
 this in error, please contact the sender and delete the material from any
 computer.


 --
 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]




Re: JSPs under WEB-INF/pages/ -- how to include in WAR file usingANT?

2002-01-15 Thread Barry L. Kline

Jeff Oberlander wrote:
 
 You need to move your input directory up a level like:
 
  webinf  dir=${deploy.home}/WEB-INF/ /
 
 If that upper dir has extra things you don't want in the distribution, use
 includes:
   webinf dir=${deploy.home}/WEB-INF/
   include name=pages/*.jsp/
   /webinf
 

Thanks! 
Barry

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




Multibox...

2002-01-15 Thread Marcelo Caldas

Hei,
Can somebody give me an example on how to use the html:multibox tag...

It's complaining that can't find the getter method...

that's what I got so far:

on the JSP:
html:multibox property=daysofWeek
 my caption
/html:multibox

and on my ActionFor I have...
public class...
private String[] daysOfWeek;
...

public void setDaysOfWeek(String[]) {...};
public String[] getDaysOfWeek() {...};

Thanks for the help,
Marcelo.

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




Re: Execute Struts in Netbeans?

2002-01-15 Thread Dick Starr

I use Caldera OpenLinux Server 3.1, Tomcat 4.0.1, and Netbeans 3.3 with no
problems. I deploy Struts apps as Rob describes below.

Dick Starr

- Original Message -
From: Rob Parker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 16, 2002 2:08 AM
Subject: RE: Execute Struts in Netbeans?


 I have been able to use struts with Netbeans by unzipping the struts-blank
 war file and mounting the resulting directory. Netbeans recognizes the dir
 as a web app and takes care of everything for you - mounting jars, setting
 up mount points for editing conf files, etc.

 What I usually do in practice is install tomcat on my machine, put all of
 the struts war files in the tomcat webapps dir, start tomcat so tomcat
 unzips the web apps for me, and then mount the resulting directory that I
 want to work on in netbeans. After that, just make sure to turn off your
 standalone tomcat so port 8080 is not in use. Hope that makes sense.

 Rob

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 15, 2002 10:55 AM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: Execute Struts in Netbeans?




 Has anyone produced a similar HOW-TO for Netbeans?  Or will this work for
 Netbeans as well as Forte?

 Cheers,

 Dave





 Michael Mok [EMAIL PROTECTED] on
 01/14/2002
 02:24:27 AM

 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]; Please
respond
 to
   [EMAIL PROTECTED]

 To:   'Struts Users Mailing List'
   [EMAIL PROTECTED]
 cc:(bcc: David Hay/Lex/Lexmark)
 Subject:  RE: Execute Struts in Netbeans?



 I have written a HOW-TO on this. You may want to read it first.

 www.michaelmok.com

 Michael Mok
 Product Manager
 FullyBooked
 1306 Hay Street
 West Perth
 Western Australia 6005
 Tel: 61 8 93221295
 Fax: 61 8 94815281
 Email: [EMAIL PROTECTED]
 www.fullybooked.com.au

  -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 12 January 2002 10:41
 To:  [EMAIL PROTECTED]
 Subject:  RE: Execute Struts in Netbeans?

 If you use Forte 3.0 CE (same as netbeans with a few extensions -- good
web
 app extensions), running Struts apps is no problem.

 -Original Message-
 From: AJ Morris [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 11, 2002 4:14 PM
 To: [EMAIL PROTECTED]
 Subject: Execute Struts in Netbeans?


 Has anyone had luck executing struts-based applications in the Netbeans
 integrated Tomcat? Things are fine with the standalone Tomcat, but not the
 internal Tomcat.

 Here are the issues. Tomcat can't see the taglibs, but this is solved by
 mounting struts.jar. Tomcat will not execute action mappings, because it
 says the path is not valid. Tomcat cannot see my ApplicationProperties
 files, either.

 AJ Morris
 [EMAIL PROTECTED]



 --
 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]








 --
 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]



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




Re: Subclassing ActionMapping

2002-01-15 Thread Ted Husted

You can create your own ActionMapping subclass, and specify that in the
web.xml. 

If it uses additional methods, you would type-cast the mapping in the
perform to access those, just as you type-case the ActionForm to get to
its extended properties. 

To set new properties on the ActionMapping subclass, you can use the
Digester syntax:

set-property property=myProperty value=myValue /

to avoid touching the struts-config syntax. 

HTH.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

Frank Lawlor wrote:
 
 Struts makes it easy to subclass ActionForm, ActionServlet.
 Is there a way to specify that ActionMapping is subclassed
 and have struts create mappings for calls to the perform
 methods that are of my subclass?
 
 Thanks,
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.
 
 --
 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]




Struts - JBuilder 5.0 or Forte 3.0 - Tomcat 4.0

2002-01-15 Thread Peter Gershkovich

Please share your success in installing development environment using Struts -
JBuilder 5.0 or Forte 3.0 - Tomcat 4.0. 
My concern is that an important quality of rapid development tool -quick
feedback- is missing. (At least for me.)

I am trying to set up right tools so i could go from development with a quick
feedback and than to deployment.
So far i installed   JBuilder 5.0 and could not add Tomcat 4.0 (the setup window
simply does not show up and i am getting Tomcat installation not found message).
I guess to add Struts would be also not easy.
Same story i hear about Forte.
Any suggestions?

Thanks for your help in advance,
Peter

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




RE: How to use Log4j with a startup logging servlet

2002-01-15 Thread McDowell, Mark

I use method 2, but it doesn't require a call into that servlet.  I just use
it to initialize log4j.  After this servlet loads, I just call log4j object
methods, and it works.  I believe (someone correct me if I'm wrong) that the
servlet loads in the same JVM, so you have access to its objects in the
other servlets...

Mark

-Original Message-
From: Eric Ma [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 11:33 AM
To: [EMAIL PROTECTED]
Subject: How to use Log4j with a startup logging servlet


I want to use Log4J for logging exceptions thrown in a Struts-based web app.
After searching through this list, I found 2 common solutions:

1. Extend the Struts ActionServlet and override the init() method to set up
a Log4J Category.  Then in any custom Action class I can just call
servlet.Category.debug() (let's assume Category is a protected or public
variable).

2. Write a separate startup servlet and again set up LOG4J in the init()
method.  But my question is, how do I invoke this servlet from my custom
Action class?  Do I need to do a RequestDispatcher.forward() to the servlet
when an exception is thrown?  Then how do I get back to the page I am on to
display the error message?

Eric Ma


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



--
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]




Re: How to use Log4j with a startup logging servlet

2002-01-15 Thread Thomas Eichberger

Hi,

I use Log4J, but don't understand your question exactly. I think it's 
easier than you think;-)

In my action classes and servlets and so on I have the usual line:

static Category cat = Category.getInstance( SuchAction.class.getName() );





in web.xml I have:

   servlet
 servlet-namelog4j-init/servlet-name
 servlet-classat.tanzforum.homepage.artists.Log4JInit/servlet-class

 init-param
   param-namelog4j-init-file/param-name
   param-valueWEB-INF/classes/log4j.lcf/param-value
 /init-param

 load-on-startup1/load-on-startup
   /servlet


as described in the documentation of Log4J (they explain there how to use 
Log4J with TomCat)


and finally I have that Servlet:

package at.tanzforum.homepage.artists;


import java.io.*;
import java.util.*;
import java.net.*;

import javax.servlet.*;
import javax.servlet.http.*;

import java.sql.*;

import org.apache.log4j.*;



public class Log4JInit extends HttpServlet {

static Category cat = Category.getInstance( MainServlet.class.getName() );

   public void init()
   {
 String prefix =  getServletContext().getRealPath(/);
 String file = getInitParameter(log4j-init-file);
 // if the log4j-init-file is not set, then no point in trying
 if(file != null) {
   PropertyConfigurator.configure(prefix+file);
   cat.info( Log4J configured by file  + prefix + file );
 }
   }

   public
   void doGet(HttpServletRequest req, HttpServletResponse res) {
   }
}




Ciao

Thomas










At 12:33 15.01.2002 -0500, you wrote:
I want to use Log4J for logging exceptions thrown in a Struts-based web 
app.  After searching through this list, I found 2 common solutions:

1. Extend the Struts ActionServlet and override the init() method to set 
up a Log4J Category.  Then in any custom Action class I can just call 
servlet.Category.debug() (let's assume Category is a protected or public 
variable).

2. Write a separate startup servlet and again set up LOG4J in the init() 
method.  But my question is, how do I invoke this servlet from my custom 
Action class?  Do I need to do a RequestDispatcher.forward() to the 
servlet when an exception is thrown?  Then how do I get back to the page I 
am on to display the error message?

Eric Ma


--

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.



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

Thomas Eichberger - Software und Schulungen - Spezialisiert auf Java
A-1230 WIEN, Endresstr. 103/3
phone/box/fax: 01-8861685 Web: www.java.at E-Mail: [EMAIL PROTECTED]
Every job is a self-portrait of the person who did it. Autograph yours 
with excellence.
For every complex question there is an answer that is clear, simple and wrong.


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




Implementing Remeber my logon with Struts and J2EE/JSP...

2002-01-15 Thread Alex Paransky

I need to implement a feature where a cookie stored on user's browser,
contains userId and Password information.  Then tie it with the J2EE/Servlet
FORM LOGIN security using Struts.  I can send up a cookie with the
information, I just don't know how to integrate this in with JSP/J2EE
authentication mechanism.

Does any one know how this could be done?  Can it be done in a way that
remains standard with J2EE?

Thanks.

-AP_
www: http://www.alexparansky.com


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




Re: Multibox...

2002-01-15 Thread David M. Karr

 Marcelo == Marcelo Caldas [EMAIL PROTECTED] writes:

Marcelo Hei,
Marcelo Can somebody give me an example on how to use the html:multibox tag...

Marcelo It's complaining that can't find the getter method...

Marcelo that's what I got so far:

Marcelo on the JSP:
Marcelo html:multibox property=daysofWeek
Marcelo  my caption
Marcelo /html:multibox

Marcelo and on my ActionFor I have...
Marcelo public class...
Marceloprivate String[] daysOfWeek;
Marcelo...

Marcelopublic void setDaysOfWeek(String[]) {...};
Marcelopublic String[] getDaysOfWeek() {...};

You misspelled the property name in the html:multibox tag.  It should be
daysOfWeek, not daysofWeek.  If it's really spelled correctly in the JSP,
and you just mistyped it in this note, then I don't know what the problem is.

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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




RE: Struts - JBuilder 5.0 or Forte 3.0 - Tomcat 4.0

2002-01-15 Thread Anthony Martin

http://www1.tramsasp.com/?section=dev

-Original Message-
From: Peter Gershkovich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1:59 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts - JBuilder 5.0 or Forte 3.0 - Tomcat 4.0 


Please share your success in installing development environment using Struts
-
JBuilder 5.0 or Forte 3.0 - Tomcat 4.0. 
My concern is that an important quality of rapid development tool -quick
feedback- is missing. (At least for me.)

I am trying to set up right tools so i could go from development with a
quick
feedback and than to deployment.
So far i installed   JBuilder 5.0 and could not add Tomcat 4.0 (the setup
window
simply does not show up and i am getting Tomcat installation not found
message).
I guess to add Struts would be also not easy.
Same story i hear about Forte.
Any suggestions?

Thanks for your help in advance,
Peter

--
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]




Fw: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN FORWARD

2002-01-15 Thread John McClain


John McClain
7604 Muschetto Ct.
Citrus Heights, CA. 95621
[EMAIL PROTECTED]
(916)728-5223
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 9:42 AM
Subject: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN FORWARD


 Passing this on with hopes and prayers for her and her family...
 -- Forwarded by Kathleen Phillips/FOL/CDI/CHI/US on
 01/15/2002 09:39 AM ---
















-- Forwarded by Sandra L Barton/ES/HSC/HUGHES on
01/15/2002 08:36 AM ---


[EMAIL PROTECTED] on 01/14/2002 08:22:27 PM

To:[EMAIL PROTECTED], [EMAIL PROTECTED]
cc:[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
   [EMAIL PROTECTED]

Subject:  Fwd: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN
   FORWARD




Return-path: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Full-name: GMarie7871
Message-ID: [EMAIL PROTECTED]
Date: Sat, 5 Jan 2002 14:45:05 EST
Subject: Fwd: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN
FORWARD
To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary
=part2_171.7260479.2968b1c1_boundary
X-Mailer: AOL 7.0 for Windows US sub 256



~Gracie~
Return-Path: [EMAIL PROTECTED]
Received: from  rly-xd05.mx.aol.com (rly-xd05.mail.aol.com
[172.20.105.170]) by air-xd05.mail.aol.com (v82.22) with ESMTP id
MAILINXD510-0105011153; Sat, 05 Jan 2002 01:11:53 -0500
Received: from  falcon.prod.itd.earthlink.net
(falcon.mail.pas.earthlink.net [207.217.120.74]) by rly-xd05.mx.aol.com
(v83.18) with ESMTP id MAILRELAYINXD59-010509; Sat, 05 Jan 2002
01:11:19 -0500
Received: from pool0101.cvx39-bradley.dialup.earthlink.net
([216.244.36.101] helo=0022642834) by falcon.prod.itd.earthlink.net with
smtp (Exim 3.33 #1) id 16Mk2q-00015q-00  for [EMAIL PROTECTED]; Fri, 04
Jan 2002 22:11:04 -0800
Message-ID: 008e01c195a7$1e41f280$6524f4d8@0022642834
From: grace [EMAIL PROTECTED]
To: Grace Buono [EMAIL PROTECTED]
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN FORWARD
Date: Fri, 4 Jan 2002 22:09:12 -0700
MIME-Version: 1.0
Content-Type: multipart/related;   type=multipart/alternative;  boundary
==_NextPart_000_008A_01C1956C.71014600
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.



- Original Message -
From: grace
To: Angie  Carrasco ; Rosa  Botti ; Alice Tisor ; pedro razo ;  GINA
BERNAL ; Johnny Marin ; [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 9:48 PM
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN  FORWARD


- Original Message -
From: Brandon and Krysti
To: Standage, Richard ; Steven Wildhaber  ; Sonia  Wildhaber ; Shelli
Winovitch ; Mom ;  [EMAIL PROTECTED] ; Grace Marin  ; Eric P Tauer ; Cindy
Abercrombie ; April McIntyre ; Angie Carrasco ; Alice Tisor
Sent: Friday, January 04, 2002 10:44 AM
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN  FORWARD


- Original Message -
From: Burton  Tarvin
To: Wendy  Cendro ; Warren  Witt ; Susan  McMaster ; Sue Tarvin  ; Steve
Murphy ; Scott McMaster ; Rob  Harbicht ; [EMAIL PROTECTED] ; Naomi
Diebenow  ; Michelle Andersen ;  Laura  Peterson ; Julia Balico ; JR Totman
; Jim Bergman ; Jen Tribble ; Jeff Arbuckle ;  Jack  Cummings ; Dan Hill ;
Chris McGuire ; Burton Tarvin ; Bryan  Young ; Bret  Andersen ; Brandon
Tauer ; [EMAIL PROTECTED]
Sent: Wednesday, January 02, 2002 1:14 AM
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN  FORWARD


- Original Message -
From: [EMAIL PROTECTED]
To: Lindsay  Ash ; Frank  Daniels ; [EMAIL PROTECTED] ; lance  moore ; John
Sabini ; Loretta and LLoyd ; Brian Spatola ; Stu ; Burton  Tarvin ;
[EMAIL PROTECTED] ;  Jeff  Waldman
Sent: Tuesday, January 01, 2002 9:54 PM
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN  FORWARD


- Original Message -
From: Jim Carlson
To: Jamie Ewart ; James S. Carlson ; James E. Bartlett IV  ; Fred G. Kumm ;
Dr. Gary  Peters ; Don Phelps ; Bill Geesey ;  Alex Simpson  ; Peter
Kiriakos ; Keith Bramlett ; Giovanni Cirocco ; Fr. Richard  Menees
Sent: Tuesday, January 01, 2002 7:21 PM
Subject: Fw: FW: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN  FORWARD


- Original Message -
From: Robert E  Anslow
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED]  ; [EMAIL PROTECTED]
; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ;
[EMAIL PROTECTED] ;  [EMAIL PROTECTED] ;  [EMAIL 

RE: How to use Log4j with a startup logging servlet

2002-01-15 Thread Jenkins, David

If you're using Tomcat 4.0.x then the documentation shows how to use a
servlet to configure Log4J. Essentially you create a normal servlet, slap it
in your web.xml and configure it to load on startup.
I do this in all my web apps and also use the same method to init Velocity.
Here's a sample web.xml entry

  servlet
servlet-namelog4j-init/servlet-name
servlet-classLog4jInit/servlet-class
init-param
  param-namelog4j-init-file/param-name
  param-valueWEB-INF/classes/log4j.properties/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet

and the init method from the servlet

  public void init() throws ServletException {
String prefix =  getServletContext().getRealPath(/);
String file = getInitParameter(log4j-init-file);
// if the log4j-init-file is not set, then no point in trying
if(file != null) {
  PropertyConfigurator.configure(prefix+file);
}
getServletContext().log(logging to: +prefix+file);
  }



-Original Message-
From: Eric Ma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 16 January 2002 6:33 a.m.
To: [EMAIL PROTECTED]
Subject: How to use Log4j with a startup logging servlet


I want to use Log4J for logging exceptions thrown in a Struts-based web app.
After searching through this list, I found 2 common solutions:

1. Extend the Struts ActionServlet and override the init() method to set up
a Log4J Category.  Then in any custom Action class I can just call
servlet.Category.debug() (let's assume Category is a protected or public
variable).

2. Write a separate startup servlet and again set up LOG4J in the init()
method.  But my question is, how do I invoke this servlet from my custom
Action class?  Do I need to do a RequestDispatcher.forward() to the servlet
when an exception is thrown?  Then how do I get back to the page I am on to
display the error message?

Eric Ma


--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



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


This message contains official information which is intended
for the use of the addressee(s) only.  If you are not the
intended recipient, please notify the sender immediately.
You should not further disseminate or copy this message
in any way.
*

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




Re: Subclassing ActionMapping

2002-01-15 Thread Mark Woon

Ted Husted wrote:

 You can create your own ActionMapping subclass, and specify that in the
 web.xml.

 If it uses additional methods, you would type-cast the mapping in the
 perform to access those, just as you type-case the ActionForm to get to
 its extended properties.

 To set new properties on the ActionMapping subclass, you can use the
 Digester syntax:

 set-property property=myProperty value=myValue /

 to avoid touching the struts-config syntax.

You know, I've never really understood what to do with the ActionMapping objects.
Maybe that's because I absolutely don't need to touch it, like I don't need to
touch ActionServer, but it kinda nags at me.

So, why/when would I want to subclass ActionMapping?

Thanks,
-Mark


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




Re: Fw: PLEASE, LOOK AT THE LITTLE GIRL'S PICTURE THEN FORWARD

2002-01-15 Thread Mark Woon

John McClain,

I know you meant well, but you just forwarded more spam.   IMO it is totally
inappropriate to forward this kind of stuff to a dev mailing list, but that's
another story. Don't believe everything you read.

This has been marked as an urban legend:
http://www.snopes2.com/inboxer/children/penny.htm.

Quote:

Origins:   This plea to aid in the hunt for a missing child began circulating on
the Internet in mid-September 2001. There's no reason to place any reliance upon
it -- none of the many missing children sites list a Penny Brown among the many
youngsters they are looking for, and a search of news archives in the U.S.A. and
Canada turns up no news reports about a missing child of this name.

The e-mail itself provides few clues on which to base a search. Not even the
city or country the child went missing from is mentioned, and other than the
pointless has been missing for now two weeks, no date is given for the
disappearance. (For now two weeks statements are entirely useless in a medium
wherein undated text is circulated -- the two weeks ago of an e-mail can and
often has referred to events years in the past.) Mail to
[EMAIL PROTECTED] bounces.

Credible missing child reports tend to supply details of when and where the
child was last seen, a description of the clothes worn, and phone numbers of
folks to contact with sightings. This e-mail lacks all of that -- not even the
parents' names are given.


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




Re: Nesting Beans/Iterators/Logic tags whatever else...

2002-01-15 Thread Arron Bates

There are many applications for the tags use -- even out side the iterate process

Hell yes! :)

I suppose some people will just see it as a way past their nested iteration problems,
but it brings so much more. Among other things, it will clean your JSP's because the 
markup's reduced for those tags working off the default bean for the form/root tag. 
This is just one of the benefits.

The tags literally extend the original Struts tags so the do exactly the same things, 
but in an improved markup context. Fact is, I've seen so many people in this user 
group use nested beans (anyone using dot notation in their properties, is nesting), 
and they can manage that so much easier if they go to the nested context.

Personally, it's a kick in the a-- of those other templating engines. I haven't heard 
of people moving over to them because they offer a better OO approach to their markup. 
(this is a personal view however ;)


Arron.


The full spiel --==
http://www.keyboardmonkey.com/struts



Collard, John wrote:

I didn't intend to sound as negative as I did.  I do owe that-- working on
it.  I do like it and will at least use different parts of it.  There are
many applications for the tags use -- even out side the iterate process.

John Collard
[EMAIL PROTECTED]



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




Is there a better way to write this code?

2002-01-15 Thread Alex Paransky

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

jsp:useBean id=profileHeaders
class=com.myprofiles.client.web.bean.MemberProfileHeadersBean /
logic:iterate id=profile name=profileHeaders property=profiles
type=com.myprofiles.service.common.ProfileHeaderValue
  %=profile.name%
  %=profile.description%
/logic:iterate

Thanks.


-AP_
www: http://www.alexparansky.com


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




RE: Execute Struts in Netbeans?

2002-01-15 Thread Michael Mok

Hi Dave

Yes it should work with Netbeans 3.3.

Regards

Michael Mok


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 16 January 2002 2:55
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Execute Struts in Netbeans?




Has anyone produced a similar HOW-TO for Netbeans?  Or will this work for
Netbeans as well as Forte?

Cheers,

Dave





Michael Mok [EMAIL PROTECTED] on
01/14/2002
02:24:27 AM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]; Please respond
to
  [EMAIL PROTECTED]

To:   'Struts Users Mailing List'
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Execute Struts in Netbeans?



I have written a HOW-TO on this. You may want to read it first.

www.michaelmok.com

Michael Mok
Product Manager
FullyBooked
1306 Hay Street
West Perth
Western Australia 6005
Tel: 61 8 93221295
Fax: 61 8 94815281
Email: [EMAIL PROTECTED]
www.fullybooked.com.au

 -Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 12 January 2002 10:41
To:  [EMAIL PROTECTED]
Subject:  RE: Execute Struts in Netbeans?

If you use Forte 3.0 CE (same as netbeans with a few extensions -- good web
app extensions), running Struts apps is no problem.

-Original Message-
From: AJ Morris [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 4:14 PM
To: [EMAIL PROTECTED]
Subject: Execute Struts in Netbeans?


Has anyone had luck executing struts-based applications in the Netbeans
integrated Tomcat? Things are fine with the standalone Tomcat, but not the
internal Tomcat.

Here are the issues. Tomcat can't see the taglibs, but this is solved by
mounting struts.jar. Tomcat will not execute action mappings, because it
says the path is not valid. Tomcat cannot see my ApplicationProperties
files, either.

AJ Morris
[EMAIL PROTECTED]



--
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]








--
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]




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

2002-01-15 Thread Arron Bates

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

jsp:useBean id=profileHeaders
class=com.myprofiles.client.web.bean.MemberProfileHeadersBean /
logic:iterate id=profile name=profileHeaders property=profiles
type=com.myprofiles.service.common.ProfileHeaderValue
  %=profile.name%
  %=profile.description%
/logic:iterate

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]