All,
I have a struts application using modules which deploys fine under
JWSDP1.2/Tomcat (5, I think), but when I deploy it under (trial edition
of) JRun4, I get
java.lang.NullPointerException
at
org.apache.struts.action.ACtionServlet.parseModuleConfigFile(ActionServl
et.java:1003)
.
.
.
-config-module.xml rather then
NullPointerException?)
Tim
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 10:00 AM
To: 'Struts Users Mailing List'
Subject: NullPointerException at ActionServlet.java:1003
using JRun4; work OK under Tomcat
You most-definitely need to instantiate a bean named feature. The
reason it Cannot find bean feature in any scope is because there is no
bean named feature in any scope. In a real-world application, you would
probably do this in an action via getSession().setAttribute(feature,
new Feature(...))
mentioned is the idea of using
JSPs for Actions, but I don't know that anyone has
implemented anything yet.
-Ted.
On Thu, 01 Jan 2004 10:49:46 -0500, Tim Lucia wrote:
Ted,
Thanks for the reply.
Putting methods in the base action(s) works (since the actions are
related
, December 31, 2003 4:10 PM
To: Struts Users Mailing List
Subject: RE: Problem with action chaining
On Wed, 31 Dec 2003 12:36:33 -0500, Tim Lucia wrote:
So is it a bad design if you have
Action1 - add CollectionOfObject1 to request
Action2 - add Object2 request
And then chain
So is it a bad design if you have
Action1 - add CollectionOfObject1 to request
Action2 - add Object2 request
And then chain them together to produce two request attributes? I have
some pages which display a list of Object1, and other pages which
require the Collection to populate a select. So
Care to share? This would be a very, very useful extension.
Is there any plan(s) for future Struts release(s) to support some
attribute of this sort? Something like forceFalse='true' or
forceValue='true'.
Tim
-Original Message-
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
Sent:
is supposed to fix this.
setContextDirectory(new File(ILT/));
// Set the module to ilt; load ilt's config file
this.setConfigFile(ilt, /WEB-INF/ilt/struts-config-ilt.xml);
setRequestPathInfo(ilt, /Welcome); // login
actionPerform();
}
Tim Lucia
-Original
You can make a simple servlet that reads the properties file and sets
the log level. Then simply reference your simple servlet (heck, make it
an action if you want) via its URL and it will re-read and reset the
logger.
If you want to get fancy, you can event export all the properties you
find
logic:present parameter=type
logic:equal parameter=type value=name
/logic:equal
logic:equal parameter=type value=age
/logic:equal
.
.
.
/logic:present
I will assume you know you do not wish to use forms.
Tim Lucia
-Original Message-
From: Steven Nakhla [mailto:[EMAIL PROTECTED]
Sent
.
Tim Lucia
-Original Message-
From: Richard Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 5:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Tiles setup question
Tim,
I tried what suggested, but still get the The requested resource
(/myapp/myapp.index
objects, costing memory and
garbage collection, which will significantly impact performance more
then the if () to check whether to do it or not.
Tim Lucia
-Original Message-
From: Kirk Wylie [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 7:20 PM
To: Struts Users Mailing List
html:link ... onclick=x(arg); .../
Tim Lucia
-Original Message-
From: Nisith Dash [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 7:28 AM
To: Struts Users Mailing List
Subject: how to submit form using html:link tag
Hi,
Can anyone of you help me with this..i have
This works for me:
html:link href=#
onclick=document.courseForm.submit();Done/html:link
Put whatever javascript you want in the onclick handler.
Tim Lucia
-Original Message-
From: Nisith Dash [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 7:51 AM
To: Struts Users
parameter=.tileTest/
Your-tiles-def.xml:
definition name=.tileTest extends=layout/
Tim Lucia
-Original Message-
From: Richard Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 7:59 PM
To: '[EMAIL PROTECTED]'
Subject: Tiles setup question
I'm setting up tiles
case in your example. Think about what happens if you
add a property? How many places do you need to change it? One less (at
least) in the patter case. You can (typically) use BeanUtils.populate()
do move all properties in one fell swoop.
Tim Lucia
-Original Message-
From: Felipe
, Inheritance is your friend. Get to know him, and his
cousin, Poly. Poly Morphism.
Tim Lucia
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 07, 2003 10:45 AM
To: Struts Users Mailing List
Subject: Re: How to detect that session has expired
for help with option #3 (preferred) or #4.
Thanks for any pointers, tips, or help,
Tim Lucia
Ref:
http://www.macromedia.com/devnet/mx/coldfusion/articles/struts05.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
18 matches
Mail list logo