Hi -
In our application, we have quite a few multi-page
forms, where the ActionForm had to be created at the
session scope. A typical example is an entry screen,
where the user enters a record (spanning multiple
pages) and presses submit. The record gets inserted
into the database and the form
Hi Jonathan,
you don't have the problem with RequestDispatching to JSPs underneath
WEB-INF in weblogic 5.1 with sp 10 any more.
regards,
Turaj
-Original Message-
From: Jonathan M Crater [mailto:[EMAIL PROTECTED]]
Sent: Montag, 24. September 2001 17:49
To: [EMAIL PROTECTED]
Subject:
Hi,
I've been using the struts database connection pool successfully for a
while now, but without really thinking about it I've completely failed
to implement any sort of Prepared Statement pooling. I assume I need
to, I can imagine the threaded mess otherwise when our site goes live,
but can
Wrong idea ! EJB entity are made to store one and only one record or
ValueObject. findByPrimaryKey entity method is designed to retrieve one
record, depending on a primary key object. If you use only one entity class
with a hashtable, you'll have a lot of problem to solve :
1 - your primary key
Hi,
There was a problem preventing Tiles to run correctly with latest
commons-digester. This is now corrected.
The error Can't get component definition ... usually happen when no definitions
exist, or when ActionServlet fails to start. In this later case, you can check
servlet log to see
Still another way is to do what Debassish suggest and then add the
action listener classes in the way that Gary Geary suggests
in his Advanced Java Server Pages book. In the book
action events (nothing to do with JFC/Swing) are fired in the Preprocess
and the Postprocess stages.
--
Peter
Hi,
i've been developing an app with Struts lately and i've reach the point
where i just have to make the database related work in order to acomplish
trasactional and persistence properties. To do so, i was thinking in using
the appropriate Oracle driver, but looking at the the Struts example i
Hi,
my problem is as follows:
I would like to use the html:link tag with multiple
dynamic parameters. I've tried to use the a
java.util.Map, but it seems to handle only fixed
values. Please, correct me if I'm wrong.
In the example I'm iterating through a company list. I
create two links for
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * ) --- --
_Cafe_Savannah,_San Antonio,Ibiza__
--
This e-mail may contain confidential and/or privileged information. If you are not the
Hi,
I didn't used Tomcat 4.0 for a long time, but as I remember, all tomcat
names were replaced by Catalina names (name of the project)...
So, you should find catalina.xml in place of toimcat.xml for configuration,
and something like catalina-apache.conf in place of tomcat-apache.conf ...
Hope
Its hidden away under the Utilities section on the website
http://jakarta.apache.org/struts/api/org/apache/struts/util/package-summary.html#doc.JDBC
and there's a little example of how to use it in the user guide
http://jakarta.apache.org/struts/userGuide/building_model.html#databases
should be
Hi,
A lot of people is using PoolMan.
The next version due for release October 8 will support PreparedStatement
pooling.
See http://www.codestudio.com.
Adriano Labate
-Original Message-
From: C O'Connor [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 11:21 AM
To: [EMAIL
Interesting. A reply from their tech support indicates that WebLogic 6 still
does not permit this, as do my own tests.
Khorramrouz, Turaj wrote:
Hi Jonathan,
you don't have the problem with RequestDispatching to JSPs underneath
WEB-INF in weblogic 5.1 with sp 10 any more.
regards,
Antigen for Exchange found Struts.zip-error_Login.js matching =*.js file
filter.
The file is currently Removed. The message, JavaScript with html:errors -
new STRUTS validation, was
sent from Adam Grohs and was discovered in IMC Queues\Inbound
located at ZDF/ZDF_MAINZ/NT_49613125.
Antigen for Exchange found Struts.zip-error_Lib.js matching =*.js file
filter.
The file is currently Removed. The message, JavaScript with html:errors -
new STRUTS validation, was
sent from Adam Grohs and was discovered in IMC Queues\Inbound
located at ZDF/ZDF_MAINZ/NT_49613125.
Antigen for Exchange found flat files.zip-error_Lib.js matching =*.js file
filter.
The file is currently Removed. The message, JavaScript with html:errors -
new STRUTS validation, was
sent from Adam Grohs and was discovered in IMC Queues\Inbound
located at ZDF/ZDF_MAINZ/NT_49613125.
Antigen for Exchange found flat files.zip-error_Login.js matching =*.js
file filter.
The file is currently Removed. The message, JavaScript with html:errors -
new STRUTS validation, was
sent from Adam Grohs and was discovered in IMC Queues\Inbound
located at ZDF/ZDF_MAINZ/NT_49613125.
I seem to have run into a problem with Struts 1.0 and ActionForwards.
I have an action that has a relatively large number of ActionForwards
(32 of them) that seems to work ok initially. However, after a few
minutes I get to the point where some random ActionForward stops working
I get a
I am trying to use the html:link tag in a j2ee application and getting
unusual results.
The source code (in the jsp file)
libean:message key=index.demonstrate/
html:link href=/editAddress.do?action=Create
bean:message key=index.createAddress/
/html:link
/li
When this code is evaluated
Hi Ali,
You may be interested in the Composite Entity pattern in our book Core J2EE
Patterns. It describes creating course-grained Entities that manage finer
grained dependent objects, which are not implemented as Entity beans, but rather
pojos (Plain Old Java Objects).
The book includes
What do you about event programming in Java Server
Side programming ?
With this html button :
lt;input type=submit name=ok value=ajoutergt;
invoke method onAjouter(,,,)
lt;input type=submit name=ok
value=enregistrergt; invoke method
onEnregistrer(,,,)
Etc...
font size=1 color=#00
What do you about event programming in Java Server
Side programming ?
With this html button :
lt;input type=submit name=ok value=ajoutergt;
invoke method onAjouter(,,,)
lt;input type=submit name=ok
value=enregistrergt; invoke method
onEnregistrer(,,,)
Etc...
font size=1 color=#00
What do you about event programming in Java Server
Side programming ?
With this html button :
input type="submit" name="ok" value="ajouter"
invoke method onAjouter(,,,)
input type="submit" name="ok"
value="enregistrer" invoke method
onEnregistrer(,,,)
Etc...
package com.csi.controller;
Sorry but HTML mail is not easy with notepad.exe ;)
What do you about event programming in Java Server Side programming (using java.lang.reflect ?
With this html button :
input type="submit" name="ok" value="ajouter" invoke method onAjouter(,,,)
input type="submit" name="ok"
Hi All,
I got tomcat and apache integrated and working together, however I do not seem to
have the struts part configured correctly. I followed the installation directions to
the letter on the web site. I am using the struts example as my test. If I use tomcat
directly(port 8080) every
Title: RE: Tomcat-Apache Struts Intergration?
Cameron
You need to tell apache which files will be served by Tomcat. You do this by adding entries in the httpd.conf file in $APACHE_HOME/conf directory
What I do in development is to get Tomcat to serve all the files in a given web app. So
Cameron,
i went through the integration last week. I'm using 3.2.2 version of tomcat,
apache v 1.3.19 and struts v 1.0
I, like yourself, had the Apache/tomcat intergation working fine. The
instruction for then integrating Struts was wrong in one part - i presume you
found the the
I need help on iterate within an iterate.
Outer Iterate is a ArrayList which contains an array
Inner Iterate is an array
The property needs to set on the JSP as text boxes.
Here is what I have (it works):-
logic:iterate id=pList name=currentForm type=fal.Location
property=locations
Hi,
I'm trying to use
this feature but when I had a html:text tag for exemple, I get this
error
javax.servlet.ServletException :Cannot find ActionMappings
or ActionFormBeans Collections.
Is there something
missing in my classpath ?
Thanks
Frederic
Chicken and the egg
I have a data source and bean with a list of items
One JSP view that list the content of the data source.
I have one action.
I want to allow the user to choose an element from the data source.
My action populates the bean with the items, then go to the view.
The problem is
Hi,
There is several way to have dynamic definition.
The first one is to write your own definitions factory implementing
'ComponentDefinitionsFactory'. The getDefinition() method is called each time you
insert
a definition. So you can implement your own to serve your dynamic definition.
Yes it does ! I've spend all the night on this
problem. Try to print your classpath and check it.
- Original Message -
From:
Frédéric
Houbie - ABSIS-GROUP
To: Struts-User
Sent: Monday, October 01, 2001 4:05
PM
Subject: Dreamweaver Custom Tag
Support
Hi,
Sorry if this has already been asked/answered here - the mail archive doesn't
let me search for AND OR.
Is there a way to have multiple conditional logic with the Struts logic taglib?
For example, IF (user is present) OR (visitor equals true).
TIA,
Eric
--
Eric Rizzo, Software
Hi all,
i have the following
problem.
I've installed jdk1.4 / JRun 3.1 / struts1.0. and got
the effect that all
relative paths are
incorrect.
At my test-installation: jdk1.4 / Tomcat 3.2.3 /
struts1.0 i have no problems.
Does anyone know how to solve this problem
?
Thanks
Manfred
The best thing is to link only to ActionMappings and never to JSPs. Then
they can only bookmark the mapping. If anything is missing, it is much
easier to handle that from an Action than from a JSP.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1
A real shame!
To answer my on own question.
The only way it does work though is by hard coded scriptlets or by
writing custom DB tags that populate the beans with item from the
database in the JSP. Then you can surely guarantee that
when the surfer hits the submit button that the data you
are
I am having a problem with setting and retrieving cookies within an action
class. From a servlet with a simple test I can set and retrieve cookie
values, with the example code below:
Setting the cookie:
Cookie c = new Cookie(test, testvalue);
c.setMaxAge(60*60*24*90);
Ah! but what if your action redirects to a view JSP, and then they book mark that?
Are we talking the same lingo here. What do you mean by link to action mappings ?
--
Peter Pilgrim | |++44 (0)207-545-9923
\ \ ___ / / ... .
- ( * )
the idea is not to have your JSPs available for bookmarking. if all your links point
to action mappings (e.g., *.do URIs) and you do forwards to all your JSPs, then a JSP
will never be visible in the URL pane of the user's browser. that way, s/he can never
bookmark a JSP which could
I think a browser can only store the requested URL,
not the redirect-to one... So you can only bookmark the requested URL, which is
your action...
Linking to an action mapping is something like
action
path="/tour"
forward="/tour.jsp" /action
- Original Message -
From: "Peter
I have heard a rumor that IBM was going to deliver a fix to 4.0 of
Websphere that would allow struts based applications to run in that
environment. Does anyone know when that fix is due. We have received
4.0.1 but there is no indication whether the bug is fixed. We would
like to move from
I have to show all required fields with * sign at
the end. Do we have any struts tag which can do this.
Thanks
Prakhar
Scott,
I and a number of others are already using Struts (1.0) in WAS 4.0.0 and it works fine.
Here to help,
Stephen :-{)
Stephen Brand
Software Architect
[EMAIL PROTECTED]
Hello All,
I am trying to dynamically load a URL from the ApplicationResources file via
the bean:message tag in order to make it the href target of a html:link or a
A HREF tag. I keep running into errors when trying to do this. I have
tried:
A HREF=bean:message key=company.url/something/A
This
is true! :) Not sure what they'd be patching it outside of upgrading their
servlet spec to take care of an un-patched form tag.
Chris
Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA
Moving Your Business from Point A to Point
e.SM
I would look at alternatives to the generic connection pooling. I have
found it unreliable under heavy load. Poolman is a good alternative.
Furthermore Ted H. indicates generic pooling could be deprecated in later
releases of Struts. It's fine for getting started but I wouldn't depend on
it.
Is there any issue regarding the use of Tomcat 4.0 and struts when dealing
with the digester parsing of the struts-config.xml ?
This is what´s been written to log file in tomcat 4.0
2001-10-01 11:28:58 StandardContext[/extranet]: Servlet /extranet threw
load() exception
I made a mistake when writing about the location of the xml parser...
It is Xerces 1.4.1 and is placed in $TOMCAT/webapps/myapp/WEB-INF/lib
-Mensaje original-
De: Domingo Aguilera [mailto:[EMAIL PROTECTED]]
Enviado el: Lunes, 01 de Octubre de 2001 12:47 p.m.
Para: [EMAIL PROTECTED]
Hey all,
I have an issue that has probably been addressed previously, however, I cant find any references to it
in the archive. I recently installed
Catalina (Tomcat 4) and installed a webapp that works
on Tomcat 3.2. I am receiving the
following error (included below) on startup of
Place
all related toservlet element at first place in
web.xml,
that
is right after web-app
-Mensaje original-De: Carl Sziebert
[mailto:[EMAIL PROTECTED]]Enviado el: Lunes, 01 de
Octubre de 2001 01:47 p.m.Para:
[EMAIL PROTECTED]Asunto: Tomcat 4.0/Struts/Web.xml
Question
Hey
Thanks. We will give it another try.
Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044
[EMAIL PROTECTED] 10/01/01 11:39AM
Scott,
I and a number of others are already using Struts (1.0) in WAS 4.0.0
and it
works fine.
Here to help,
Stephen :-{)
Does anyone know how to get the servletContext from within a custom tag
(public class MyTag extends SupportTag...)
Thanks!
Nate
Make sure you use the modified struts jar from
http://www.enfused.com/struts.jar
Chris
Christopher Assenza
Phone: 412.201.6026
Fax: 412.201.6060
Email: [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/
-Original Message-
From:
try
pageContext.getServletContext()
HTH,
Pete
Johnson, Nathaniel wrote:
Does anyone know how to get the servletContext from within a custom tag
(public class MyTag extends SupportTag...)
Thanks!
Nate
begin:vcard
n:;
x-mozilla-html:FALSE
org:BRIMG
Antigen for Exchange found peter.alfors.vcf matching =*.vcf file filter.
The file is currently Deleted. The message, Re: getting the servlet
context, was
sent from Peter Alfors and was discovered in IMC Queues\Inbound
located at IBC/PA1/MG01.
DISCLAIMER
Try this
ServletContext con = pageContext.getServletContext();
regards
Thomas
-Ursprüngliche Nachricht-
Von: Johnson, Nathaniel [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 1. Oktober 2001 21:49
An: '[EMAIL PROTECTED]'
Betreff: getting the servlet context
Does anyone know how to get
I have tried that and it fails... when I debug, it says that pageContext is
returning null. Is there something that I have to do to enable page context
in the tag class or the jsp using the tag?
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01,
Johnson, Nathaniel a écrit :
Does anyone know how to get the servletContext from within a custom tag
(public class MyTag extends SupportTag...)
Thanks!
Nate
i did it that way seems to work
ActionMappings mappings =
I got it to work... thanks to all... the problem was that I was trying to
get the pageContext in the tags constructor and I guess in is not available
until the doStartTag() method. I am new the this environment.
-Original Message-
From: Thomas Schnelle [mailto:[EMAIL PROTECTED]]
Sent:
ServletContext application = pageContext.getServletContext();
Regards.
Luis Olivares.
[EMAIL PROTECTED]
--
Intelligence is the ability to avoid doing
work, yet getting the work done
If I want to use form validation with my ActionForm bean, what should I
specify for the input attribute of my action defition? Should it
reference the JSP page that renders the form (e.g. /login.jsp) or should
it reference the action responsible for presenting the form (e.g.
/login.do)?
All of
Chris,
Now I am confused. I am trying to get away from having to use a
modified struts jar. The reason the jar needs to be modified is because
IBM has a problem with their implementation of Jasper. I saw in an
email on this forum that IBM had comitted to fix this problem but did
not commit to
I have been trying to get a struts application to switch between HTTP and
HTTPS using the approach Ted and Craig have suggested in the past
(http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg07841.html)
I am using WebLogic 6.1 with IIS 4 as the web server. It appears that the
Love the site!
-Original Message-
From: Frederick N. Brier [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: New professional STRUTS website
Beautiful site! I haven't been through it all yet, but a very impressive
web application.
Well that's your call. The changes to the form tag are very minor at best,
and I don't really see the them having any significant negative impact for
most projects, but yours may be that unfortunate exception.
If it makes you uneasy or annoyed (which the later does me), then I
recommend
Strichartz, Beth wrote:
Love the site!
Except for the Javascript popup in every page I visit saying that My
browser/OS is not supported!, it looks fine. :-)
--
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
We're an underground revolution working overtime
You can put in any url in the input attribute. So
there isn't a problem having input go through an
action.
David
--- DEHAMER,BRIAN (HP-MountainView,ex1)
[EMAIL PROTECTED] wrote:
If I want to use form validation with my ActionForm
bean, what should I
specify for the input attribute of my
I am a new-bie to Struts and have just installed 1.0 with Tomcat 3.2.2 and
Apache. I followed the instructions in the installations
(tomcat-apache.conf). But when trying to run an example like struts-example,
I am encountering the below error. In the documentation there is a
description for
Scott,
I have to agree with Chris on this one... the 2 line change in one method is extremely minor for all the benefit (you get to use struts :). I further agree that if you want IBM's action... to contact IBM directly. On the plus side... in my direct experience with IBM, then have been pretty
For me
I'm curious if you use html:errors (ActionErrors) at all? More
specifically, how did you pop up the singin error on another window instead of
on the same window if html:errors were used?
Nice
site, thanks for sharing.
Thinh
-Original Message-From: Adam Grohs
Hello Experts,
I'm using Tomcat3.2.1 and struts 1.0
When I try to Access the JSP from browser got following ServletException :-
Cannot find ActionMappings or ActionFormBeans collection
I have my struts-config.xml in which action-mapping has been declared.
Here I'm attaching my web.xml and
I am looking for some confirmation of the approach I have taken in
developing an ActionForm that represents an Entity bean hierarchy that nests
several beans deep.
I have a form bean that I use to update a Candidate entity bean. The
Candidate bean has an Address entity bean associated with it,
I have a set of tags based on If that includes AND/OR, which can be
downloaded from Ted husted's site (reference is shown under Contributor
Taglib on the strust site):
http://jakarta.apache.org/struts/userGuide/resources.html
http://husted.com/about/struts/logic-niallp.htm
However this was
Title: RE: Tomcat 4.0 and Struts.
I had the same problem. I removed jaxp.jar from the tomcat lib directory, as it seemed to be conflicting with Xerces. Removing Xerces from the classpath also works, but I use another library that depends on it.
Cheers,
Brett
-Original Message-
Title: RE: deep nesting of value objects in a form bean
I've sucessfully used a VO structure in a struts app and
used dot notation to access the data in just the way you
describe. However, in our case the VO's were immutable.
O.K., now for my 2c worth...
I'd be very careful using generic
Title: RE: deep nesting of value objects in a form bean
for
anyone interested.. here's the URL to the project...
http://www.tstrata.trysoft.com
it's
an extranet app, so there isn't too much facinating stuff to look
at. ;-)
-Original Message-From: Matthew O'Haire
Title: RE: Tomcat 4.0 and Struts.
There
is no jaxp.jar in $TOMCAT/lib but these files:
jasper-runtime.jar
naming-factory.jar
In
$TOMCAT/commons/lib are the crimson files:
crimson.jar and jaxp.jar , but don't know if you are talking about these
files.
Thanks.
-Mensaje
Title: RE: Tomcat 4.0 and Struts.
yep,
sorry. $CATALINA_HOME/common/lib/jaxp.jar was the one I renamed. This may or may
not be the best solution, but I haven't encountered any problems so far. AFAIK
Xerces contains all the classes supplied by JAXP, but not
vice-versa.
Cheers,
Brett
Hey guys,
Quick question.. can an action forward to another action? If so, how can
I do it?
Thanks,
jeff --
--
Jeff Gutierrez
Mapua Online!
http://www.mapua.org
http://www.mapua.com
http://www.mapua.net
Pinoy Ako! May reklamo?
Title: RE: Forward To Another Action
yes, it's very easy...
in your struts-config.xml put a forward/ tag in your action map, thus:
action path=/myAction
type=com.matto.myAction
name=myForm
scope=request
input=/index.jsp
forward name=nextAction path=/nextAction.do/
/action
in
Well- I think I didn't explain myself well enough. I try again between the
lines.
-Original Message-
From: Christophe Marchand [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 6:00 AM
To: [EMAIL PROTECTED]
Subject: Re: ejb design
Wrong idea ! EJB entity are made to store one
Using nested double quotes, as you are doing, could be confusing the parser.
Try this instead:
A HREF=bean:message key='company.url'/something/A
Note the use of single quotes around the 'key' value.
Hope this helps.
--
Martin Cooper
- Original Message -
From: Sean [EMAIL
Title: RE: ejb design
exposing your database field names out of your Entity beans is a bad idea, as
it increases the coupling between your clients and database. You can't refactor
your schema without affecting your client code!
This is a common error made by people new to EJB but with a lot
83 matches
Mail list logo