My ListThread class extends Action. And in the
ListThread class, I first retrieve some of the text
fields; i.e., request.getParameter( ... );
Thereafter, I want to pass the request scope together
with some parameters to another class for some further
processing. This is what I do:
public final
I may be a little off here, but why are you using the
DynaValidatorActionForm ?
Try using the DynaValidatorForm and u should have client-side and
server-side validation working.
This is because, the DynaValidatorActionForm.getValidationKey returns the
mapping PATH, whereas the
HI,
Is it a bug or has been intentionally done like that?
I have a form with lots of CRUD buttons. The action path is
/maintainEmployeeDetails. I am using DispatchAction class for the
same.
But each of these buttons has specific javascript validations. So in the
validation.xml insted of
Hi Joe,
the thing with f:view was noticed in the online release-notes
that where shiped with the beta.(not more online, i guess) In
Early_Access_X there where the f:use_faces-Tag.
however, you must add the following to struts-cfg.xml:
controller
set-property property=inputForward value=true/
Buddies, Can anyone help with my below problem?
From: Mu Mike [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: about jsp:include and response already committed exception
Date: Fri, 09 Apr 2004 01:45:22 +
Hi,all
I m using a jsp:include in
Yes I know, and it's for a reason. DynaValidatorActionForm doesn't exist
by chance.
Regarding the javascript function names, it's not the main validation
function name that's the problem - it's the secondary functions which
instantiate the arrays for the different validations, e.g.
Kamakshya
Which version of Validator and which Form class are you using?
Adam
On 04/09/2004 10:08 AM Prasad, Kamakshya wrote:
HI,
Is it a bug or has been intentionally done like that?
I have a form with lots of CRUD buttons. The action path is
/maintainEmployeeDetails. I am using
Hi,
I am using 1.1 version.
KP
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 7:48 PM
To: Struts Users Mailing List
Subject: Re: Validation.xml form name parameter
Kamakshya
Which version of Validator and which Form class are you using?
and which form class? ValidatorForm or ValidatorActionForm
On 04/09/2004 12:53 PM Prasad, Kamakshya wrote:
Hi,
I am using 1.1 version.
KP
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 7:48 PM
To: Struts Users Mailing List
Subject: Re:
Hello !
Multibox made me crazy !! After having each problem detailled on the mailing
list i've got another not detailled...
I've got a jsp page with a multibox inside an iterate. the initial display
is correct and i can correctly retrieve the selected or unselected values
and, then write to the
You'll want to go to http://struts.apache.org, but the tiles stuff is
included with struts (at least 1.1). I'd suggest downloading a new copy of
struts (especially if you're using the old 1.0 version). I believe there is
even an example webapp that uses tiles included if you download the proper
Matthias-
I had most of the struts-cfg changes you mention, because they came in the
struts-faces docs.
Maybe my problem is my JSTL knowledge (surely it is, the question is, Is it
now?).
Maybe if it iss just easier if I explain what I am trying to accomplish.
I have List of Objects that I
A patch recently went into the various flavours of validator forms which
split out the logic which determines the validation key into a separate
method - so if you look at the current versions of either
ValidatorActionForm or DynaValidatorActionForm - they now only contain a
very simple
DynaValidatorForm dynaForm = (DynaValidatorForm) form;
String value = (String) dynaForm.get(myFieldName);
On 04/09/2004 02:52 PM Brad Balmer wrote:
Using the DynaValidatorForm, how do you get the form variable data out
of the form inside the action? All examples I've seen are purely the
setup
Hi,
I solved with your advice.
Thanks a lot!
Igor.
-Original Message-
From: Saul Q Yuan [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 10:03 PM
To: 'Struts Users Mailing List'
Subject: RE: DynaValidatorActionForm client-side validation
Hmmm, I don't seem to have that
Thanks for the responses. I was using the way that you showed. I
figured out that my problem was with my struts-config.xml where I should
have been using:org.apache.struts.validator.DynaValidatorForm instead of
org.apache.struts.action.DynaValidatorForm.
Adam Hardy wrote:
DynaValidatorForm
Hi All,
again with an issue :).
I'd like to put a new (non-standard) attribute on
html:text tag.
Whenever I try, Struts raise an error saying there's no
setter method for that attribute.
Here an example:
html:text property=name datafld=ID_NAME/
The datafld attribute is used just on
Are you trying to map your text field to a database column?
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]
- Original Message -
From: Igor Antonacci [EMAIL PROTECTED]
To: [EMAIL
I've found a way of bypassing the problem by using a logic:equal and
logic:notEqual inside the jsp and testing my row value. This way, the
display is correct... it's just not clean.
New jsp :
logic:equal name=uniteEnseignement property=temoinSession2 value=O
input type=checkbox name=valeurs
1.in my jsp page information.jsp I do this:
iframe width=100% height=400 frameborder=1 scrolling=Auto
src=/web-inf/test.jsp
but when the Tomcat 5.0 just tell me that such page is not available.
2.Then i try another way.
i created another page called import page,in this page:
c:import
Two things come to mind:
1. Try increasing the buffer size on myjsp.jsp. Default is 8kb
2. Make sure that you are not changing the header portion of the
response in your included jsp page.
[EMAIL PROTECTED] wrote:
Buddies, Can anyone help with my below problem?
From: Mu Mike [EMAIL
Hello All,
I have been scouring the mailing list archives and lot of other
places. I am seeing a problem configuring a datasource with Tomcat. I
saw a lot of posts where the drivername was not being picked up but none
where the driver name was being picked up and yet people were getting
the
Do you have your client driver installed?
In DB2 I have to install the driver in my local machine and that also sets the
path up (Db2 uses some native dll stuff) in order to get the driver to load.
I used to get the same error.
I hope it helps.
Jose
Quoting MARU, SOHIL (SBCSI) [EMAIL
From: Mathieu Grimault [mailto:[EMAIL PROTECTED]
I've found a way of bypassing the problem by using a logic:equal and
logic:notEqual inside the jsp and testing my row value. This way, the
display is correct... it's just not clean.
You really shouldn't need to do all that. Here's a working
No, an iframe cannot access resources under WEB-INF.
Note that 'WEB-INF' is case-sensitive. You will
eventually encounter problems if you don't use
'WEB-INF' in your paths.
Files located under the WEB-INF directory are only
accessible from within the web application (ie. from
servlets).
Regards,
I managed to solve this one, my database url was missing the schema
name, that was causing the problem. I changed it from
jdbc:oracle:[EMAIL PROTECTED] To jdbc:oracle:thin:[EMAIL PROTECTED] But it is still
throwing an exception though a different one. Any pointers?
java.lang.NullPointerException
Never mind, even though I am using jdk1.4 and tomcat5.0, I had to
replace ojdbc14.jar with classes version to get it to work.
-Original Message-
From: MARU, SOHIL (SBCSI)
Sent: Friday, April 09, 2004 11:29 AM
To: 'Struts Users Mailing List'
Subject: RE: No Suitable Driver problem
I
Shahak,
Why won't a filter work in you Servlet 2.3
environment? Filters exist in the Servlet 2.3 spec.
They don't exist in the Servlet 2.2 spec.
Regards,
Richard
--- [EMAIL PROTECTED] wrote:
I'm trying to use a custom tag to gzip (compress)
pages (filter won't work because I'm in a servlet
Well there is for global forwards, but it seems to be missing for the
forwards in an action. For global forwards you can create your own
ModuleConfigFactory, in which you can set the global forward class name (as
well as the Action Mapping class). But from what I see, you can't change the
default
Joe Hertz wrote:
Matthias-
I've tried it both ways. I suspect the problem is my JSTL Knowledge. Code
follows.
The problem, I believe boils down to, How do I get at the item var declared
in the datatable/foreach? I can't use a ., right?
Actually, you can, in JSF expressions (#{foo.bar}).
I have a problem I need advice solving.
The Validate method does not allow me to check if the session has expired
and throw a suitable exception.
I have the possible scenario where a user calls up a page. Leaves it idle
long enough to expire the session. Then hits the update button.
What happens
Hi!
I'm trying to implement a Filter that tells the Browser to cache images for
a few URLs as the article from
http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
...but it isn't working with my Struts apps.
I'd like to know if the cache=false attribute in the controller section
could
What is the best way to deal with a Date property in an ActionForm? My
ActionForm has a object that has a Date property that I want to set.
So I have
html:text property=object.date
If I populate the that property in the Action like this:
MyObject obj = new MyObject();
obj.setDate(new
ActionForm has a object that has a Date property that I want to set.
So I have
html:text property=object.date
If I populate the that property in the Action like this:
MyObject obj = new MyObject();
obj.setDate(new Date());
form.setObject(obj);
The html:text tag does a toString()
Found my error! I seem to have problems with spelling (form-properly?
hehe)
Sorry for the spam :)
Jin Lee
-Original Message-
From: Jin Lee [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 11:16 AM
To: [EMAIL PROTECTED]
Subject: no getter method found for property - using
Yeah, I guess I could do that. I think need 2 properties. I would
create a dateAsString property, have the form get and set that, and then
have the getters and setters set and convert the actual Date. This way
I can call getDate to get a Date and getDateAsString to get it as a
formatted
On Friday 09 April 2004 21:33, Erez Efrati wrote:
Already tried s/th like jsp:forward page=/main.do /
in your index.jsp? :-)
HTH,
-- Chris.
Hi,
Like all Struts application I have the index.jsp redirecting the user
client to my home.do struts action.
Is it possible to get rid of the
The RequestProcessor processPreprocess(request, response) method seems the
best but
I'm not sure how to override it for my first login page where the valid
session is not set up yet.
Can I give a specific requestProcessor for an individual action mapping?
Thanks for the first response Niall.
Does anyone know whether Struts 1.1 is compatible with Commons-Lang 2.0? There are
some utilities in the latest version of the Commons-Lang library that we'd really to
use with our Struts 1.1 based application. Struts 1.1 comes with Commons-Lang 1.0.1
Thanks,
JOHN
From: Paul Barry [mailto:[EMAIL PROTECTED]
Are their other ways to handle this, so I don't need 2 properties?
String properties in the Form, and a utility class to do the conversions
when you need to use it as a Date. (Possibly a BeanUtils Converter to
do it as part of 'copyProperties' if you
Hi,
I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat 5.0.16 and
Apache 2.0.48. The documentation only talks about Tomcat 3.x.
My first try was to follow these instructions for Tomcat 3.2.1. I copied the
war files included with the binary distribution into the webapps
On Friday 09 April 2004 16:19, dream_and_yang wrote:
No, you can't include such files directly, as the container
forbids direct access to anything underneath WEB-INF.
But of course, you can always wrap test.jsp in a
ForwardAction and set your iframe tag to load
that instead: iframe src=/test.do
On Friday 09 April 2004 21:19, Paul Barry wrote:
Generally, it's a good idea to have only String and boolean
properties in an ActionForm and convert the information
gathered for further processing lateron. For complex
validations (like Dates), I usually check in validate() if
the value entered
Joe Hertz wrote:
Posted this once. Didn't see it show up. Trying again. Apologies if it shows
up twice.
Craig McC writes:
Could you refresh us on what your JSP code looks like now?
I've since gone to a datatable. Below is struts-faces and non-struts versions
I did recognize that the
Hi,
Iam using TimerFilter in my application which gives the response time taken for
executing the each Action class. Does this will affect the performance of the
application on production environment. Is there any known performance or stability
issues with Servlet filters with Struts?
On Friday 09 April 2004 21:56, Wendy Smoak wrote:
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Already tried s/th like jsp:forward page=/main.do /
in your index.jsp? :-)
But then the URL will still have 'index.jsp' in it, at least if
Tomcat is involved. IIRC, Tomcat redirects to
This seems to work pretty well:
private Date dateOfBirth;
private static final DateFormat dateOfBirthFormat =
new SimpleDateFormat(MM/dd/);
public Date getDateOfBirth() {
return dateOfBirth;
}
public void setDateOfBirth(Date dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
public
On Friday 09 April 2004 22:42, Craig McClanahan wrote:
Wendy Smoak wrote:
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Already tried s/th like jsp:forward page=/main.do /
in your index.jsp? :-)
But then the URL will still have 'index.jsp' in it, at least if
Tomcat is involved.
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Nope :-)
Yes, I stand corrected by Craig already. Tomcat used to redirect, and
I'd occasionally dig up an ancient bug report where the decision was
made in order to convince people that no, you can't make it stop
redirecting. But now you
On Friday 09 April 2004 21:55, Ralf Schneider wrote:
Hi,
I've experimented with the same setup some time
ago and found this helpful:
http://cymulacrum.net/writings/tomcat5/c831.html
HTH,
-- Chris.
NB. Luckily, there are binary versions of mod_jk2
available now, so you can skip the first part
Paul,
You shouldn't keep an instance of SimpleDateFormat as
an instance variable even though you are only using
the parse method. The reason is that the
SimpleDateFormat class is not thread-safe. This is
caused by the fact that the DateFormat class isn't
threadsafe due to the fact that a value
Okay, I aint crazy. And I don't think it's a trivial mistake on my part now.
In struts select boxes, and plain old HTML, if you don't specify a label for
a given item, you get the value used as your label.
In JSF however, if you don't specify itemLabel for a selectItem, you get
that incredibly
You're creating the bean status in the varStatus declaration in your c:forEach
action. It's in scope in the loop as status already, so you don't need to
re-initialize it. You can access its attributes inside your loop:
c:out value=$status.begin /
c:out value=$status.count /
c:out
Curtis Taylor wrote:
You're creating the bean status in the varStatus declaration in your
c:forEach action. It's in scope in the loop as status already, so you
don't need to re-initialize it. You can access its attributes inside
your loop:
c:out value=$status.begin /
c:out value=$status.count
Hi,
does anyone know of a code prettyfier (like Jalopy) to formatte Struts tag and JSP.
thanks,
-
Post your free ad now! Yahoo! Canada Personals
Hi all,
before I start with this large mail I have to say that I'm fully aware that STRUTS
framework is intended for dealing with presentation and controll flow of application -
not for persitance in database but this is exactly what I'd like to discuss with other
experienced STRUTS users
56 matches
Mail list logo