Sign me up for the course! Where might I read about these
points: ??
- preloading form
- reset() method gotcha
- special issues
- cleaning up context variables
- Back button sorrow
- indexed properties and iterators
Thank you-
Matt
On Wed, 25 Jul 2001, Bud Gibson wrote:
This looks interesting, but I am not sure how I would use it.
Would the strategy be to set up an action to run when the application is
loaded? Would the action then obtain a reference to the data source and
stow it in some repository using JNDI
On Wed, 25 Jul 2001, George, Carl wrote:
tomcat 4.0 doesn't work yet!! go back to 3.x
Not true at all! :-)
You need to check the Tomcat log files to verify this, but I'd bet you
have not placed an XML parser anywhere that your web apps can see it. You
need to put an XML parser inside
On Wed, 25 Jul 2001, Steven D. Wilkinson wrote:
I have an object that takes an argument in the Constructor. How do I do
this during an addObjectCreate call?
This issue was recently (well, yesterday :-) addressed in the version of
Digester that is included in the jakarta-commons project.
On Thu, 26 Jul 2001, Bertil Karlsson wrote:
Even better, I found the information I was referring to on-line!
Ref: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html
There is actually a newer version than this one ... and it reflects my
current recommendations based on
The error report *does* tell you that it's a hotspot error :-). It even
tells you where to report the error to, so that it can get fixsed.
For the record, I've not seen any errors like this when running JDK 1.3.1.
Craig
On Thu, 26 Jul 2001, Marcel Andres wrote:
I use the same
Davin,
Your approach will certainly work, and is sometimes the only possible
solution. However, if your model bean and the form bean have exactly the
same set of properties, and they are of the same types, you can also say:
PersonBean person = new PersonBean();
On Mon, 30 Jul 2001, Chuong Huynh wrote:
Hi all,
Is there any detailed exlanation about struts-config.xml file? Or is there
any deployment tool for struts that automate creation of this file?
I found it difficult to understand the usage of all tags in this file.
Have you looked at
On Mon, 30 Jul 2001, Ines Pederiva wrote:
Hi.. I?m new in Struts and I?m trying to
include style sheets in my pages.
How do you all use the css in your proyects?
Do you work with them as like in jsp or you
use them in other way?
Bye!
Ines.
You can use them in JSPs just like
On Tue, 31 Jul 2001, Bill Clinton wrote:
Craig,
You say that you should be able to run with no problems, without
trying to access the network. But it seems to me that the internal
DTDs are used only after an attempt to access them via the network times
out. Am I mistaken on this?
On Tue, 31 Jul 2001, emmanuel.boudrant wrote:
Hi,
Using Struts 1.0 on Apache Tomcat/4.0-b6, I've got
this errors:
javax.servlet.ServletException: Cannot find
ActionMappings or ActionFormBeans collection
And on another JSP
javax.servlet.ServletException: Cannot find message
On Fri, 3 Aug 2001 [EMAIL PROTECTED] wrote:
My question is, if this is such a well known problem, why don't the
JSP compiler authors just split up the code into a series of methods.
Better yet, prehaps the JSP spec should explictly say that a JSP
compilier should be able to handle a
On Fri, 3 Aug 2001, Taylor, Michael(LIT) wrote:
Does anyone know how to calculate the physical memory requirements for the
HTTP session when running a Struts application?
A session isn't really much more than a Hashtable. The real issue is the
session attributes you store there. If it's
On Tue, 31 Jul 2001, Davin M wrote:
Hi everyone, does anyone have problems referring to their jsp pages
within the /WEB-INF dir? I tried to hide these jsp's so that users can't
directly access them (without performing actions). I'm running this example:
On Thu, 2 Aug 2001, John Yu wrote:
Martin,
Oh, I see. That's what the parameter attribute is for! Thanks.
Well, that is what the parameter value is used for in this case, at
least :-). In practice, the parameter attribute is a way to pass a
single string configuration value into an
On Wed, 1 Aug 2001, Kapila, Ranjit wrote:
Hi,
In the ActionServlet.process() method, the processPopulate() method is
always called. Is there any way to set some request attribute etc so
that the processPopulate call is configurable.
If you don't want processPopulate() to be called,
On Wed, 1 Aug 2001 [EMAIL PROTECTED] wrote:
Hi
How do I specify a URL in the below
forward name=sessionTimeOut path=/abc.jsp /
Instead of /abc.jsp , I need it to go to say http://www.something.com
Can this be done ?
Normally, Struts uses a RequestDispatcher.forward() to switch
On Wed, 1 Aug 2001, Jon Brisbin wrote:
i haven't successfully got a struts app working in catalina...i have
numerous classloader issues...i can't even get the example app to work
right...i also use xsl, so that's an issue for me, but the basic app itself
doesn't like catalina's
On Thu, 2 Aug 2001, Hartmut Bernecker wrote:
Hello,
when a URL (myUrl.do) is invoced, the ActionServlet instantiates a
myForm (according to the struts-config.xml), forwards control to a
myAction object; the perform() method of myAction calls the reset()
method of the myForm object and
On Thu, 2 Aug 2001, Ted Husted wrote:
I very much like the idea of DispatchAction; I'm just trying to minimize
the use of query strings.
Of course, it works with a hidden variable too.
To do that, I've been using the ActionMapping Parameter property for
other things. So if a mapping
On Thu, 2 Aug 2001 [EMAIL PROTECTED] wrote:
I understand that--my app does close connections (release back to the
pool). The problem is that the pool itself maintains open connections to
the database, and doesn't seem to recover very well when the databsae dies
and comes back.
On Fri, 3 Aug 2001, Martin Fekete wrote:
problem is that struts.jar in tomcat lib directory don't contain
org.apache.struts.webapp.example.User.
this class is only in struts.jar in struts-example directory.
Actually, it is not there either. The struts.jar file contains *only*
the
Craig R. McClanahan wrote:
To handle lots of parameters to an Action, one very simple mechanism
would be to interpret the single parameter included in an action as
the name of a properties file resource containing your other configuration
items. Otherwise, you have to go to the pain of
Alternatively, I've also seen people understand what Struts is when you
call it a framework. You build your application on top of the
framework, and in some advanced cases you might need to customize some of
the framework's internals. But essentially none of Struts actually shows
through
On Sat, 4 Aug 2001, Ted Husted wrote:
Is there a way to hook into a application scope attributes without a
direct link to a servlet?
Perhaps through JNDI?
Specifically, I'd like to hook into the Generic Connection Pool's
datasource, that's exposed as
So there is not a way to access the ServletContext attributes without a
direct link to a servlet or a JSP?
The Generic Connection Pool works fine with the dbTags, but they can
lookup the DataSource through the pageContext.
If it were possible, it may also be interesting to be able to tap into
On Sun, 5 Aug 2001, Ted Husted wrote:
So there is not a way to access the ServletContext attributes without a
direct link to a servlet or a JSP?
Well, you could pass a reference to the ServletContext into your bean, but
that's still requiring a reference to the web tier APIs -- which it
Craig R. McClanahan wrote:
The Generic Connection Pool works fine with the dbTags, but they can
lookup the DataSource through the pageContext.
It was added late in the development cycle, but they do support JNDI
lookups, as well as a DataSource in the ServletContext, and so they are
That was my idea, too, but it doesn't seem to work. I'm doing the
following:
logic:present parameter=productId %
html:form action=editProductConfirmed.do
/logic:present
logic:notPresent parameter=productId %
html:form action=addProductConfirmed.do
/logic:present
But the parser
Actually, let me correct that last post...the %s at the end of each
logic:present tag are NOT in my JSP. That was a typo on my part when I was
putting it into the e-mail.
Sorry.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Greg Maletic
Sent:
On Sun, 5 Aug 2001, Ted Husted wrote:
Craig R. McClanahan wrote:
The Generic Connection Pool works fine with the dbTags, but they can
lookup the DataSource through the pageContext.
It was added late in the development cycle, but they do support JNDI
lookups, as well as a DataSource
On Sun, 5 Aug 2001, Greg Maletic wrote:
That was my idea, too, but it doesn't seem to work. I'm doing the
following:
logic:present parameter=productId %
html:form action=editProductConfirmed.do
/logic:present
logic:notPresent parameter=productId %
html:form
Thanks, Craig. For some reason I had the impression that you couldn't use
%= % tags inside of the Struts taglibs. I'll try it out.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
rg]On Behalf Of Craig R. McClanahan
Sent: Sunday, August 05, 2001 4:41 PM
To: [EMAIL
Has anybody successfully used Struts with Tomcat 3.3?
I was able to run my application with Struts on Tomcat 3.2 but has to
upgrade to Tomcat 3.3 because of a problem with using XALAN Xerces. I am
using XPath from Xalan that resulted in conflict with tomcat 3.2
libraries. My Xalan problem got
On Sun, 5 Aug 2001, Rajan Gupta wrote:
Has anybody successfully used Struts with Tomcat 3.3?
Haven't ever done so myself. I can vouch for Tomcat 4 though :-).
I was able to run my application with Struts on Tomcat 3.2 but has to
upgrade to Tomcat 3.3 because of a problem with using
So then TOMCAT 4.0 it is, I hope u were serious :)
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
On Sun, 5 Aug 2001, Rajan Gupta wrote:
Has anybody successfully used Struts with Tomcat 3.3?
Haven't ever done so myself. I can vouch for Tomcat 4 though :-).
I was able to run
I'm not sure how elegant this solution is, but I thought I'd post this for
the archives...
To disallow normal access to your action class' .jsp pages, I've
disallowed access to anything .jsp through normal access...I've put them in
the WEB-INF directory before, but on windows, you'll run into
On Sun, 5 Aug 2001, Rajan Gupta wrote:
So then TOMCAT 4.0 it is, I hope u were serious :)
Oh, yes ... Building Tomcat 4 is my day job at Sun, and I test these
together all the time.
The only thing you need to remember is that Tomcat 4 doesn't expose an XML
parser to web apps by default.
On Sun, 5 Aug 2001, Tim Colson wrote:
Howdy folks -
Is it possible to install Struts 1.1 on a Tomcat 3.2.1 server which has
JAXP 1.0 by adding Xerces into the /WEB-INF/lib directory?
That's going to be a problem. The current Struts 1.1 code depends on
JAXP/1.1.
Let me preface
Thanks for the explanation, Craig.
--
John
At 02:13 PM 8/5/2001 -0700, you wrote:
Oh, I see. That's what the parameter attribute is for!
Thanks.
Well, that is what the parameter value is used for in this
case, at
least :-). In practice, the parameter attribute is a
way to pass a
single string
40 matches
Mail list logo