I got the same thing.. but I figured out the mistake that I used perform( )
instead of execute( ) method. After replacing it with execute ( ) method, I
got the output. There is one more thing.. If you use ActionErrors validate (
) method, then you have to set the validate attribute to true right
maybe we could do something like this in the JSP - the idea is taken
from the TextTag.java which knows to use the errorStyleClass when theres
an error.
...
%@ page import=java.util.Iterator %
%@ page import=org.apache.struts.Globals %
%@ page import=org.apache.struts.taglib.TagUtils %
%@ page
HI friends
i am using validator framework for client side validations in my web
application
i added login page validations in validator.xml file , it working fine
the problem starts when i added another collegeForm fields,
if i added atleast one field like id
the server saying that no
Darren Hall ha scritto:
(Please disregard the earlier post with the same subject)
Greetings,
I'm using struts 1.2.9 with Tomcat 5.5 and Apache 2.2.
Here's my issue -
I'm looking to create a default error page for my application. One thing you
should know... my application is using
add something like this to your struts config...
global-exceptions
exception handler=flc.handlers.GlobalExceptionHandler
type=java.lang.Exception
key=errors.exception.system.unexpected
path=flc.error /
/global-exceptions
code
public class
Strachan, Paul ha scritto:
add something like this to your struts config...
Cool! Why don't you add this code to the wiki?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello Darren,
I'm aggree with Larry. If you want you can see Architecture shema with
Service/DAO pattern in my open source project Gestcv at
http://gestcv.sourceforge.net/fr/architecture.html (sorry it's in frensh).
You can download the application WEB to see how I use Spring with Struts.
Hello,
I was need to manage focus on the first field with error. With your
solution, the problem is
errors collection is sorted, so your focus will not go to the first field
with error in your JSP.
So I extends doErrorExist of TextTag to manage it, like this :
protected boolean doErrorsExist()
Hi,
I have to start working on Jasper Reports now and I will be doing this from
scratch. So can you please guide me. Also if there is some tutorial or a PDF
available with u do let me know. Another thing I have to add the plug-in to
my eclipse. If u have any information regarding to this please
Hi,
Beside the fact that this has nothing to do with struts,
You may find something here
i believe this has all you need
http://jasperforge.org/sf/projects/jasperreports
hth
marco
-Original Message-
From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: 12 September 2006 09:09
Sahil Gupta ha scritto:
Hi,
I have to start working on Jasper Reports now and I will be doing this from
scratch. So can you please guide me. Also if there is some tutorial or a PDF
available with u do let me know. Another thing I have to add the plug-in to
my eclipse. If u have any
Hi,
Yeah thanks for the URL but I thought may be some of us are using Jasper
Reports on eclipse and would be able to help me.
Anyways thanks
Regards,
Sahil Gupta
-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 1:33 PM
To:
Hello,
If you are looking for a plugin for eclipse,
You might want to have a look at jasperassistant
http://www.jasperassistant.com/installation.html
hth
marco
-Original Message-
From: Sahil Gupta [mailto:[EMAIL PROTECTED]
Sent: 12 September 2006 09:19
To: 'Struts Users
On form submit, already validate method is called..
David Pinho (Hexadecimal) [EMAIL PROTECTED]
09/12/2006 12:13 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
RE: Hi Need help .. on javascript validation
try to call your javascirpt method before the validate method. for example
you can call many javascript methods by sperateing them with a semicolan (;)
On 9/12/06, Sheetal Gupta [EMAIL PROTECTED] wrote:
On form submit, already validate method is called..
David Pinho (Hexadecimal) [EMAIL
Hi,
Thanks for your feedback, but according to the struts source code below it
seems the items are sorted in their initial order. I tested the code (in its
scriptlet format) and it seemed to be working OK, that is the order as defined
in the validations.xml
Can you please show me where the
would something like this work?
script type=text/javascript
function validateRadio() {
if ( self.document.mystrutsform.myradio.value = a good value ) { return
true; }
else {
alert('Error with radio');
return false; // should prevent submit
}
}
/script
html:submit onclick=return
HI friends
i would like to say thanks to every one on this forum for your support
the problem is..
i have some forms, each from has some common fields like id, name, etc
i would like to specify the validations only once in validator.xml for all
forms ( globalizing them for all forms)
if
Hi,
How do u deploy ur product or software at the client side? We use JBoss
server and whenever we need to deploy the product what we do is that we have
the full Jboss unzipped there and then the server and ear and war is placed
there and all that stuff... There is no proper setup. Do u use a
hi all,
I think some fellow member has asked the same question.But I didn't find any
reply for the old thread.
So i have a scenario
I have a login page with
1.Username
2.Password
3.Language
Based on the language selected I have to reload the page.
I have used internationalization
Hello Everyone,
I have a question regarding validation.
I have JSP that uses the Html:Options tag to populate a DDLB. The action
class creates the collection and puts it in the Form. All works fine until
the form validation fails. When I come back from the form validation, I am
getting a Bean
Hello,
I do have a problem, because I don't know how to submit a form with javascript
in struts.
Normally, I'm submitting forms like this:
html:form action=somepath
html:submit property=myvalue value=send
/html:form
I'm receiving the value with the getter-method getMyvalue() of the
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I do have a problem, because I don't know how to submit a form with
javascript
in struts.
Normally, I'm submitting forms like this:
html:form action=somepath
html:submit property=myvalue value=send
/html:form
I'm receiving the
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I do have a problem, because I don't know how to submit a form with
javascript
in struts.
Normally, I'm submitting forms like this:
html:form action=somepath
html:submit property=myvalue
JasperAssistant's support is questionable at this point, iReports has
become part of the JAsperSoft bundle and in my humble opinion is a better
IDE. Additionally, there is a How To booklet available for
JasperReports on their website...its pretty comprehensive, now, scoot
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hello,
I do have a problem, because I don't know how to submit a form with
javascript
in struts.
Normally, I'm submitting forms like this:
IDE's are ok for building initial reports but since you cannot use IDE's in a
production environment you'll need to automate this
because of that limitation
Export your build.xml and or pom and verify that works in fully automated
staged environment (i.e. ant or maven script)
If you need any
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hello,
I do have a problem, because I don't know how to submit a form with
javascript
in struts.
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
On 9/12/06, puneet.lakhina wrote:
On 9/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hello,
I do have a problem, because I don't
Thanks a lot for the information. Will try and get back to u for further
assistance
Regards,
Sahil Gupta
Extn : 339
Mobile: 91 9899468288
Email : [EMAIL PROTECTED]
**
NetEdge Computing Global Solutions Private Limited.
A-14,
Have a html:text . onchange of the value entered in this field, have to
submit the form.
Using LookupDispatchAction.
script
function onNumChange(numObj)
document.forms[0].method.value=numPay;
document.forms[0].submit();
}
script
html:hidden property=method/ // used for
I'm confused here. Is it your intent to pass a variable 'what' from your
form to the action?
I think the problem is that you need to assign the value what to a hidden
element
html:hidden property=cpKey/
then in your java script assign the value to the value of the hidden element
Hi All,
Action which is derived from org.apache.struts.actions.DispatchAction
was working fine with this entry,with the appropriate method being called.
Please note that as yet I had not made any entry for the form bean in
struts-config.xml.
action
Is there an alternative to Spring Integration. I have a project that I need
to get a prototype out to the client FAST and I simply want to implement a
Model layer with connection pooling. I have gone to the Spring Framework
site and I don't have the time to come up to speed on how to make this
Can you provide the connection pool from your Container's defined data-source
and then use iBATIS for persistence?
http://ibatis.apache.org.
There's a 9 page Java tutorial at:
http://people.apache.org/dist/ibatis/ibatis.java/docs/iBATIS-SqlMaps-2-Tutorial_en.pdf,
and the total docs are less
Ray Madigan ha scritto:
I have a project that I need
to get a prototype out to the client FAST and I simply want to implement a
Model layer with connection pooling. I have gone to the Spring Framework
site and I don't have the time to come up to speed on how to make this
useful. Any
On 9/12/06, Givler, Eric [EMAIL PROTECTED] wrote:
Can you provide the connection pool from your Container's defined
data-source and then use iBATIS for persistence?
Yes, create the DataSource using JNDI, then see page 14 of this document:
Thanks all for the responses.
I got it working now =}
-Original Message-
From: Strachan, Paul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:01 AM
To: Struts Users Mailing List
Subject: RE: default error page with tiles? (repost)
add something like this to your struts
I suggest that you try sending a page with dummy data to a browser
I sent a large page (about 7MB of html) to the browser and it was pretty
fast. There is no problem with the browser rendering the data. My current page
html is around 2.7MB.
Are all your filter-mappings really needed
FYI setting validate=true makes the whole thing work somehow.
-Original Message-
From: Asthana, Rahul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 11:47 AM
To: user@struts.apache.org
Subject: [struts 1.2.4] Problem with DispatchAction
Hi All,
Action which is
Antonio Petrelli wrote:
Ray Madigan ha scritto:
I have a project that I need
to get a prototype out to the client FAST and I simply want to
implement a
Model layer with connection pooling. I have gone to the Spring Framework
site and I don't have the time to come up to speed on how to make
Hi
I'm using the html:multibox / struts tags.
I need validate the total of checked that have been selected.
I can do that with java script code, but i need put a var in the session
scope with the purpose of show the error message later, and that, i can not
do that with the java script code.
If
Hello,
I am encountering some issues with using the MappingDispatchAction. The
situation is that we (developers) are using a base class that extends
MappingDispatchAction. Now I have a jsp page that has 2 buttons in it,
one is Search and the other is Download. Now the form action for the
On 9/12/06, Ray Madigan [EMAIL PROTECTED] wrote:
Is there an alternative to Spring Integration. I have a project that I need
to get a prototype out to the client FAST and I simply want to implement a
Model layer with connection pooling. I have gone to the Spring Framework
site and I don't have
You could set the action of the single form using javascript in the
onclick event of the download button. LookupDispatchAction may be better
suited for what you are trying to do.
Adam
-Original Message-
From: Ruepen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 2:44 PM
On 9/12/06, fea jabi [EMAIL PROTECTED] wrote:
Have a html:text . onchange of the value entered in this field, have to
submit the form.
Using LookupDispatchAction.
script
function onNumChange(numObj)
document.forms[0].method.value=numPay;
document.forms[0].submit();
}
script
Thanks for the prompt reply. In regards to the javascript option, I've
actually created 2 forms, so that now the action is set to
DownloadSearch for the Download button and with that I've created a
respective Action and ActionForm. Which is mapped in the
struts-config.xml file. But when I
I would like to upload multiple files on a single web page by having
multiple html:file elements. The exact number of these are different
depending on the user who is using the application. So I want to store
this in an array (FormFile[]) in order to have N number of files
uploaded. When I try
What does the html:form for the DownloadSearch look like? It will be
easier to see what is going on if you post the code.
Adam
Ruepen wrote:
Thanks for the prompt reply. In regards to the javascript option, I've
actually created 2 forms, so that now the action is set to
DownloadSearch for
OK, I understand what you're doing now. It sounds like you have a couple
of options. You could override processCachedMessages() as you suggest,
which may be the easiest solution. Alternatively, since you need custom
message setup logic, perhaps it would make sense to provide a reciprocal
You are right about the jakarta commons fileupload and struts, you can't
use commons fileupload in an action, because struts have already taken
care of the multi-part parsing. You do have the option to make a servlet
and commons fileupload, where you will have total control of the form
data.
Mallik wrote:
HI friends
i would like to say thanks to every one on this forum for your support
the problem is..
i have some forms, each from has some common fields like id, name, etc
i would like to specify the validations only once in validator.xml for all
forms ( globalizing them for all
Hello
I'm new in struts, and in a example, the jsp is the next:
%@ taglib uri=/WEB-INF/struts-form.tld prefix=form %
form:form action=register.do
UserName:form:text property=username/br
enter password:form:password property=password1/br
re-enter
leo mj wrote:
hi all,
I think some fellow member has asked the same question.But I didn't find any
reply for the old thread.
So i have a scenario
I have a login page with
1.Username
2.Password
3.Language
Based on the language selected I have to reload the page.
I have used
John De Lello wrote:
I have JSP that uses the Html:Options tag to populate a DDLB. The action
Populate a what? :-)
class creates the collection and puts it in the Form. All works fine until
the form validation fails. When I come back from the form validation, I am
getting a Bean define
Jeremiah Johnson wrote:
I would like to upload multiple files on a single web page by having
multiple html:file elements. The exact number of these are different
depending on the user who is using the application. So I want to store
this in an array (FormFile[]) in order to have N number of
leo mj wrote:
mallik,
use java.lang.Integer for integer and java.util.GregorianCalendar for Time.
Yeah, but you don't really want to do that, either. You're best bet is
to use String types for form-bean values, and convert to a different
type while handing off to a model layer.
David Grundberg wrote:
You are right about the jakarta commons fileupload and struts, you
can't use commons fileupload in an action, because struts have already
taken care of the multi-part parsing. You do have the option to make a
servlet and commons fileupload, where you will have total
Hi,
would like to check if there is existing tag available to allow method
invocation from JSP directly, something similar to this :
Call JavaBean methods from JSP 2.0 pages
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html
thanks
lx
David,
struts-form.tld was deprecated before Struts v1.0 and the current version is
1.2.9. That suggests the documentation you are following is frightfully old
(like 2001, 2002 old). If that is the case, keep in mind any references to
perform() were replaced by execute() in actions. That was a
hai,
i am inserting new row into database using struts?Its perfectly inserted.
Suppose i am right click the mouse then press refresh again row inserted once
again(same value).
How to solve this probleem.
thanks and advance
gomes
Try struts tokens.
-Original Message-
From: Gomathi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 12:33 AM
To: Struts Users Mailing List
Subject: insertion problem view
hai,
i am inserting new row into database using struts?Its perfectly
inserted.
Suppose i am right
put the actionform scope in session in your action mapping in
struts-config.xml
-Original Message-
From: John De Lello [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 4:44 PM
To: user@struts.apache.org
Subject: Validation and Form Collections
Hello Everyone,
I have a
for document.formname.value to be worked you need to use
html:hidden name=...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 4:50 PM
To: user@struts.apache.org
Subject: Submitting forms with javascript in struts
Hello,
I do
64 matches
Mail list logo