u need to add html:javascript tag into ur form.
did u add this
On 5/30/06, M.Liang Liu [EMAIL PROTECTED] wrote:
I tried to use validator in my struts application and I find a problem
occurred:
The form did not validate itself and the execute method is
always called.
I
Suresh,
I think what Liang is using server side validation.,
Please post all the XML config files, JSP for us to debug.
Thanks and regards,
Pazhanikanthan. P (Paz)
Suresh Babu S [EMAIL PROTECTED]
30/05/2006 04:30 PM
Please respond to Struts Users Mailing List
To: Struts
Hello everyone,
Within our struts web application in which we have edit-actions within a user
can be busy editing data in the form for several minutes.
The problem is, if another user is also editing the data at the same time, one
of the is eventually going to overwrite the changes of the
Thanks for your reply.
*paz.periasamy got the point:I am just trying to use server validate.
The validator-rules.xml is as following ,the one I copyed from the
struts-blank:
*
!DOCTYPE form-validation PUBLIC
-//Apache Software Foundation//DTD Commons Validator Rules
Configuration
Hi,
this sounds like a common database problem. You might want to consider
some kind of pessimistic locking. Basically you lock the object when
you start editing and prevent all access to it for the duration of the
lock. You could also do an optimistic lock which means that when you
change an
The html:javascript tag to allow front-end validation based on the xml in
validation.xml. For example the code: html:javascript
formName=\logonForm\ dynamicJavascript=\true\ staticJavascript=\true\
/ generates the client side java script for the form \logonForm\ as
defined in the validation.xml
Hi,
try changing the validation to:
form name=/s
field property=name depends=required/field
/form
note, you are now referencing the action not the page.
Also, you might want to extend ValidatorActionForm instead of
ValidatorForm, but to tell the truth I'm not sure I
Hi,
Am using struts and my requirement is i have two selects i a jsp. On change
of value in the first select, the values in the secon select should pop up. Is
there any way to do this using remote scripting.
Please give me solution.
Thanks and Regards,
MSV Lakshmi.
Thanks a lot for your answer!
My thinking behind is the application level!
I’m not sure but the goal is (my hope..)to solve
this problem using aspect oriented programming or Spring
although I’m not very aware of it.
For example it would be nice to have one central configuration there you
i think transaction manager will take care of this.
On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote:
Thanks a lot for your answer!
My thinking behind is the application level!
I'm not sure but the goal is (my hope..)to solve
this problem using aspect oriented programming or Spring
I'm using tomcat, and the first 2 errors in the log follow. And
note that the class it is complaining about is in my tiles-core.jar
file in the WEB-INF/lib directory:
$ jar tvf WEB-INF/lib/tiles-core.jar | grep Exception
1109 Tue Aug 30 21:26:50 EDT 2005
thx
hmm, where can I find it, is it part of Spring?
Original-Nachricht
Datum: Tue, 30 May 2006 18:36:06 +0800
Von: Lixin Chu [EMAIL PROTECTED]
An: Struts Users Mailing List user@struts.apache.org
Betreff: Re: Re: How to lock the access of methods within an action?
#xA i
You can indeed use scriptlet like this:
bean:define id=myform name=myform type=com.MyForm/
mytags:indicatorEndDisplay
indicatorType=%=myform.getSampleIndicator()%/
Note: he scriptlet %=myform.getSampleIndicator()% must return exactly
the type the setIndicatorType() method (of the tag class that
Julian,
you can use the lock provided by Java 1.5 API...they are very simple to use.
For istance, I use java.util.concurrent.Semaphore.
The code above sho how to use it:
private Semaphore sceneryLock = new Semaphore(1, true);
public void removeScenery() throws Exception {
try {
Hi Miguel,
thanks for the tip, is it possible to use this in a struts action which is not
thread save?
ciao 4 now
Julian
Original-Nachricht
Datum: Tue, 30 May 2006 09:28:36 -0300
Von: Miguel Galves [EMAIL PROTECTED]
An: Struts Users Mailing List user@struts.apache.org
Sure...
On 5/30/06, Julian Tillmann [EMAIL PROTECTED] wrote:
Hi Miguel,
thanks for the tip, is it possible to use this in a struts action which is
not thread save?
ciao 4 now
Julian
Original-Nachricht
Datum: Tue, 30 May 2006 09:28:36 -0300
Von: Miguel Galves [EMAIL
That usually means you haven't included the %@ taglib %
directives in your JSP.
They aren't in the snippet of Layout.jsp that you posted... are
they in the actual source file?
No, they are not. They were in the initial page called. I assumed,
incorrectly it appears, that if
I have it working, although with a somewhat different setup (all my page
definitions are in my tiles.xml and this forces me to have a dummy
logon.jsp containing tiles:insert definition=.logon/ - and I
don't like having to create the extra jsp's to link to the definitions -
but havn't figured out a
Good Morning Antonisis-
If you are sending data which is of UTF-8 characterset then you need to
configure the request e.g. request.setCharacterEncoding(UTF-8) e.g.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String)
If you are receiving
For JavaScript, here is the easiest way to do this is for your case:
Use a hidden variable to store the number of packages.
For each package, I am guessing you have 3 fields: height, weight, and
length. The names for these fields should be something to the effect
of: height_1, weight_1,
Hi
Remove attribute=sForm from the tag 'action'.
And try again.
action
attribute=sForm
input=/form/s.jsp
name=sForm
path=/s
scope=request
type=com.eam.struts.action.SAction
validate=true
forward name=success path=/welcome.do /
Hello,
I've created an application on my webapps folder, copied the libraries
and tag descriptors needed, compiled the sources successfully and
wrote the struts-config.xml for my app. But it's not working properly.
=/
I'm trying the first example of the Struts In Action book. The JSP
form page
The Jasper wrote:
Also, you might want to extend ValidatorActionForm instead of
ValidatorForm, but to tell the truth I'm not sure I really understand
the difference.
For future reference and completeness:
You can specify validations based on either the form bean name or the
action mapping
Medicherla Lakshmi wrote:
Am using struts and my requirement is i have two selects i a jsp. On
change of value in the first select, the values in the secon select should
pop up. Is there any way to do this using remote scripting.
What's remote scripting?
Anyway, there are several
Grab the Java Web Parts cookbook:
http://sourceforge.net/project/showfiles.php?group_id=140728
...from the Java Web Parts project...
http://javawebparts.sourceforge.net
It includes such a dynamic double-select example using AjaxTags.
Frank
Dave Newton wrote:
Medicherla Lakshmi wrote:
Am
resume-oriented programming LOL.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 30, 2006 10:53 AM
To: Struts Users Mailing List
Subject: Re: [OT] Re: multiple html:select
Grab the Java Web Parts cookbook:
Homero,
Often, people starting with Struts see blank pages if they use the wrong
method in their Action class. Are you using perform() instead of execute()
as your method? Your struts-config.xml file suggests you are using an
outdated book because it lists your config DTD as version 1.0, not
Thanks for the help, David.
Yeah, I really think the book is a little outdated (i'm really using
perform() instead of execute()). I think the version I got is the same
as yours, since it mentions the execute() method and Struts 1.1.
I'm not able to test it right now (i'm at work), but when I
I can't believe there wasn't already a Wikipedia entry for ROP! There
is now...
http://en.wikipedia.org/wiki/Resume-oriented_programming
Frank
Chaudhary, Harsh wrote:
resume-oriented programming LOL.
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent:
hi there,
i'm fairly new to struts and it seems like i do have a more conceptual
problem which should be easy to solve...
i have a form including a dropdown list, fetching the entries from a
database.
i like to use DynaForms and validation.
in order to display the dropdown values, i
- link to
I had the same problem you had, and I didn't want to save lists in session,
for many reasons. After some researches, the solution I choosed is the
following: in forms where I have dropdown lists, I disable the automatic
validation. This can be done adding the parameter validate=false in the
Hi folks - appreciate any input on this one:
I have a menu in a Struts 1.2.9 modularized app.
The menu has links to some jsps and some actions.
When the app is launched, the links all work. However, once I've
navigated into a module, the links all get prefixed with that module,
and the links
At 3:50 PM -0400 5/30/06, Brian Long wrote:
Hi folks - appreciate any input on this one:
I have a menu in a Struts 1.2.9 modularized app.
The menu has links to some jsps and some actions.
When the app is launched, the links all work. However, once I've
navigated into a module, the links all
Hi,
I meet a problem using structs validator and reset button
The problem occurs when the validator find a validation error, then reset
button can not clear the input field but retain the error values.
BTW the respective form is in the session and I am using html:reset tag.
Hi-
I am trying to setup my application using maven. On the shale website, it
reads, Snapshots of Shale are also available in Maven repositories.
(http://struts.apache.org/struts-shale/index.html#Shale_Download).
However, the maven repositories only appear to have shale-test available.
For
35 matches
Mail list logo