Hi,
You need to define a secruity constaint similar to the following in web
application. Once this done, container takes care of the two issues
transperantly.
Regards,
Raja Nagendra Kumar,
C.T.O,
www.tejasoft.com
session-config
session-timeout10/session-timeout
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.xml.sax.SAXParseException: The content of element type form-validation
must match (global*,formset*).
form-validation
formset
form
As per the dtd, global attributes should come first and formset later..
Move the global tags before formset and this should fix it.
Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
- Original Message -
From: Tom Jerry [EMAIL PROTECTED]
To: Struts Users Mailing List
Hi,
the problem is the sequence of tags you have to put global before
fromset
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
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
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 global
before
fromset
Sorry for my English.
2006/9/19, Tom Jerry [EMAIL PROTECTED]:
why do I get this error ?
SEVERE: Parse Error at line 87
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.
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
use OScache
With Best Regards,
I.Hari krishna.
Franklin Templeton Investments
+91- 44 - 24407000 Extn:17123
--
-Original Message-
From: Puneet Lakhina [mailto:[EMAIL
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:
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,
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.
Have an ArrayList in the form-bean
form-property name=payments type=java.util.ArrayList/
This contains the list of row objects required for the below table.
using displaytag to display the the list of elements.
display:table name=sessionScope.Form1.payments id=row
Could you set a hidden parameter before submitting-
html:select property=orgId
onchange='document.forms[0].operation='setDependentList';
document.forms[0].submit()'
html:options collection=orgList property=value
labelProperty=longName/
/html:select
And write code in the function
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
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
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
Hi
Configure struts config like this
message-resources parameter=com.resources.MessageResources
null=false/
message-resources parameter=comresources.ImageResources
null=false key=image/
in jsp
you can use image message resources as
bean:message bundle='image'
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
Hi, I am trying to run my web application ,
It displays the page in cwInformationLayout.jsp until tiles:insert
attribute=header /
and stop.
cwInformationLayout.jsp :
body text=#00 link=#023264 alink=#023264 vlink=#023264
style='#D1E5FF'
table border=0 height=100%
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]
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
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:
TABLE
c:forEach var=entry
items=${requestScope[param.forName].uiControls}
TR
TD
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
In struts config have a Dynavalidator form-bean
form-bean name=Form1 type= DynaValidatorForm
form-property name=typeName type=java.lang.String/
..
/form-bean
have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp
in the config which are session scoped.
action
I do have the dynamic=true set too.
form-bean name=Form1 type= DynaValidatorForm dynamic=true
form-property name=typeName type=java.lang.String/
..
/form-bean
From: fea jabi [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: user@struts.apache.org
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,
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 user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
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,
sorry, it was a typo. I have a rigt method 'calc' itself.
From: Wendy Smoak [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006
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:
TABLE
c:forEach var=entry
items=${requestScope[param.forName].uiControls}
TR
TD
sorry, it was a typo. I have a rigt method 'calc' itself.
From: Wendy Smoak [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: form-property value set in dispatch action is lost
Date: Tue, 19 Sep 2006
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
Hi,
Can we pass an expression to onclick handler of struts
html:submit tag.
html:submit styleClass=headerclk property=submit
value=%=String.valueOf(ArrEmpList.get(i))%
styleId='%=String.valueOf(ArrEmpList.get(i))%'
onclick=hilightButton2('%=myval%');
/html:submit
We tried this. But the HTML is
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,
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
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.
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
38 matches
Mail list logo