I've always wanted this feature myself. However, no such validation
exists.. but if you write it, you could share it back to the Struts
community.
So you'll have to add this validation yourself by override the
validate() method of your form, checking the property's length; if it is
not null t
Can struts validator validate that at least one checkbox in a set is
checked? I guess somehow it has to validate that a String[] array property
of the form has size of 1 or more, but I dont know how.
myval must be a server side Java variable. Do you have this value
declared and with a value? Check by printing it out onto the JSP
normally, it should be there; if it is not, you have another problem.
chamal desilva wrote:
Hi,
Can we pass an expression to onclick handler of struts
html:submit
In Resin (and I think the spec), request.getRequestURL() should give you
back the URL (minus the query arguments) that was used. You can build the
query String using request.getParameterNames() & getParameterValues() and
rebuild it yourself, but since HttpUtils.getRequestURL has been deprecated,
Hi,
Can we pass an expression to onclick handler of struts
html:submit tag.
We tried this. But the HTML is generated as
onclick="hilightButton2('<%=myval%>');"
The value of myval variable is not printed in html.
Plz help us to solve this problem.
Best Regards,
Chamal.
__
Hello,
I mail you to announce that JSControlsTags project include new controls :
SLIDER (with or without AJAX)
and TREEVIEW (with or without AJAX) control.
JSControlsTags is a taglib to easily manage javascript controls on client
side (without AJAX)
or on server side (with AJAX) in your JSP.
It
sorry, it was a typo. I have a rigt method 'calc' itself.
From: "Wendy Smoak" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006 13:23:36 -0700
On 9/19/06, fea jabi <
Bob wrote:
I have a map of ui controls passed to a JSP. Each entry in the map contains
a "label", "name", "value". The key used in the map is the "name". I
iterate through as follows:
sorry, it was a typo. I have a rigt method 'calc' itself.
From: "Wendy Smoak" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: Re: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006 13:23:36 -0700
On 9/19/06, fea jabi <
On 9/19/06, fea jabi <[EMAIL PROTECTED]> wrote:
public class DispatchAction extends LookupDispatchAction {
That's confusing... Struts already has a DispatchAction.
protected Map getKeyMethodMap() {
Map map = new HashMap();
map.put("btn.calc",
thanks for you reply.
may I know why this has to be done.
The form-bean is in session. I thought it can be set from any action. is it
not so?
From: "Givler, Eric" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: "Struts Users Mailing List"
Subject: RE: form-property value set
Do you have to issue code after the call here:
frm.set("typeName", "x");
like:
placeFormBackInScope( mapping, frm, request );
which would place the updated form back in scope:
public void placeFormInScope(ActionMapping mapping,
ActionForm form,
I do have the dynamic="true" set too.
..
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006 15:43:37 -0400
In struts config have a Dynavalidator
In struts config have a Dynavalidator form-bean
..
have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp
in the config which are session scoped.
redirect="false"/>
redirect="false"/>
In the jsp have a submit button whi
On 9/19/06, Givler, Eric <[EMAIL PROTECTED]> wrote:
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Any of the URLs at the bottom do not appear to work.
Thanks. Fixed.
-
To unsubscribe, e-mail: [EMAIL
I have a map of ui controls passed to a JSP. Each entry in the map contains
a "label", "name", "value". The key used in the map is the "name". I
iterate through as follows:
This
Was it such a leap to consider posting the tile-def?
Does '/coeuslite/mit/irb/common/cwIRBHeader.jsp' exist? Assuming you have a
tag named "header" in your main tile-def, it appears as though you're trying
to pass in the name of a file that does not exist or is otherwise
inaccessible.
On 9/19/
On this page: http://wiki.apache.org/struts/ActionErrorsAndActionMessages
Any of the URLs at the bottom do not appear to work.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, I am trying to run my web application ,
It displays the page in cwInformationLayout.jsp until
and stop.
cwInformationLayout.jsp :
Here is the error :
javax.servlet.jsp.JspException: ServletException in
'/coeuslite/mit/utils/layouts
Hi,
I know this was asked a while ago in this mailing list, but I couldn't
find the answer. My problem is that I want a generic way to get the
client URL in my action class. In Tomcat 5.0, I was able to do so by
calling request.getRequestURL(), but apparently I was just lucky,
because it wa
Hi
Configure struts config like this
in jsp
you can use image message resources as
and default message resources can be used as
I hope this would solve your problem.
Bals
-Original Message-
From: SrinivasaReddy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 5:51 PM
That's the whole point. I do not understand why it is
looking for this mapping when it has been set to be
GroupRulesManager/returnToPrev. By the way, I tried
changing the mapping to Global/returnToPrev and still
got the same error.
Using Firefox, I get redirected to google's search
page after makin
It appears that the value for your paymentPropertyName is not pointing to the
INDIVIDUAL property, but to the ArrayList as a whole. Try setting it to a
property of the object that is in the array list. ie. payments[#].amount
Be sure your form has a getPayments method as well.
-Original M
You may want to use an struts mailing list archive search, and look at this
thread:
how to handle requests submitted using java script with a LookupDispatchAction
subcalss
http://article.gmane.org/gmane.comp.jakarta.struts.user/124351/match=lookupdispatchaction+subcalss+javascript
Or a similar
Could you set a hidden parameter before submitting-
And write code in the function setDependentList() of the LookupDispatchAction
Here i am assuming document.forms[0].operation is the name of the property the
DispatchAction expects.
-Original Message-
From: Domingo A. Rodriguez
Have an ArrayList in the form-bean
This contains the list of row objects required for the below table.
using displaytag to display the the list of elements.
requestURI="PrepareAction.do" class="table1">
..
...
I tried using
On 9/19/06, Ted Husted <[EMAIL PROTECTED]> wrote:
The SASH-Safari site demonstrates using a Struts/Apache/Spring/Hibernate stack.
* http://ibatis.apache.org/javadownloads.html
Oops, the clipboard stuck: * http://swik.net/SASH-Safari
-T.
---
Some teams do try to specialize, but the underlying purpose is
"separation of concerns".
As the website says: "Web applications based on JavaServer Pages
sometimes commingle database code, page design code, and control flow
code. In practice, we find that unless these concerns are separated,
lar
javascript remoting or ajax should do fine there. google for it.
--- yamilka vallejo ramos <[EMAIL PROTECTED]> escribió:
> Hii everyone,
> I have two drop downs in my jsp page, and I need to the contents of
> the
> second dependent on the value selected in the first.
> To handle this, I need
Ex code here
null="false"/>
null="false" key="esell.image"/>
parameter="comresources.ErrorMessageResources" null="false"
key="esell.error" />
parameter="comresources.ButtonMessageResources" null="false"
key="esell.button" />
parameter="com.
Hi Friends
my application in big and it moduled into 4
i wnat to use one properties file for each module
let me know how to configure in struts-config.xml
and how can i specify which file to use
thanks inadvance
ur's
Mallik
--
View this message in context:
http://www.nabble.com/how-can-i-use
use OScache
With Best Regards,
I.Hari krishna.
Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
-Original Message-
From: Puneet Lakhina [mailto:[EMAIL P
Hi,
I have an application whereby i first load all the data from the
database(using joins etc. about 400 rows an 20 columns). Then the user is
given an option to filter this data based on some parameters. Now instead of
hitting the database again, wouldn't it be better if I could somehow reuse
the
what is the actual purpose of struts ? is it that one person will be devoted
to developing beans while the other will be involved in designing ? Would
you please give me a sample appln that uses EJB with Oracle (SQL Plus)
database.. a small one.. I dont know how to start off with it.
Thanks :) Got it done :)
On 9/19/06, Juanjo Cuadrado <[EMAIL PROTECTED]> wrote:
Hi,
the problem is the sequence of tags you have to put
before
Sorry for my English.
2006/9/19, Tom Jerry <[EMAIL PROTECTED]>:
>
> why do I get this error ?
>
> SEVERE: Parse Error at line 87 colum
Hi,
I don't know if I have you understands, but I think that this mail of
Eric Givler responds to your question
You'd need to rebuild the second list on the posting of the form, i.e.
1. get value selected from first list
2. invoke method to refresh dependent list based on user prm from fis
Hi,
the problem is the sequence of tags you have to put before
Sorry for my English.
2006/9/19, Tom Jerry <[EMAIL PROTECTED]>:
why do I get this error ?
SEVERE: Parse Error at line 87 column 19: The content of element type
"form-validation" must match "(global*,formset*)".
org.x
37 matches
Mail list logo