Can you post the stack trace from your application log along with the
version of struts you are using and the class ContactUsTestForm inherits
from?
Adam
-Original Message-
From: Jennifer Jacobs [mailto:[EMAIL PROTECTED]
Sent: Monday, October 02, 2006 1:44 PM
To: user@struts.apache.org
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
You have validate=false in your action mapping. Change that to true.
Adam
-Original Message-
From: leo mj [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 07, 2006 6:59 AM
To: user@struts.apache.org
Subject: Field check using DynaValidatorForm
hi all,
I want to do Dynamic field
Short answer: Yes.
An instance of the filter-class will be created for each filter you define,
regardless of how many times you reuse a filter class in a single deployment
descriptor.
Adam
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006
The initial attribute on the form-property allows you to initialize
the value of the property when the form instance is created by the
framework.
Adam
-Original Message-
From: A. Lotfi [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 3:15 PM
To: Struts Users Mailing List
Subject:
Have a look at the manifest in the jar. META-INF/manifest.mf
-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 9:10 AM
To: user@struts.apache.org
Subject: Struts Version from struts.jar
I have struts.jar in WEB-INF/lib folder.
How to find
Sure you can, just follow Eric's example and subclass DynaValidatorForm.
Then change your form-bean declaration to
form-bean name=createStudentGroupForm
type=view.struts.forms.Page_6_Form
...
/form-bean
Adam
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent:
Tiles assembles pages using dynamic (runtime) inclusion. The logic:iterate tag
defines a page scoped attribute under the key specified by the id tag
attribute. The nextPage.jsp will have it's own pageContext, so the
outageElement is not visible. Perhaps you could put the outageElement into
Did you set the input attribute on your action mapping in
struts-config.xml ?
-Original Message-
From: Pankaj Gupta [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 12, 2006 8:55 AM
To: Struts Users Mailing List
Subject: Re: Server side validation not working
Yes I did.
Krishna, Hari
Since you are using Ajax, the returned value is not going to cause the
browser to navigate to a new page. You can parse the returned value and
manually direct the browser to a new page by setting the document
location.
// check status of ajax request, parse data
If not done
... Do nothing
If
You can set the page attribute on your form validation definition, then
use client side script to set the page request parameter based on which
button is clicked.
You might want to look at MappingDispatchAction as well.
-Original Message-
From: David Durham [mailto:[EMAIL PROTECTED]
Also, if you are submitting the request with script (i.e. onclick event
of a button) it's possible that the browser is submitting the form and
the call for the onclick.
-Original Message-
From: Ulrich Elsner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 10:35 AM
To: Struts
The class specified by the type attribute in your form bean must be a
concrete implementation of org.apache.struts.action.ActionForm (as the
signature of the Action.execute method indicates).
You can create your own implementation of ActionForm backed by a
LazyDynaBean, or try
The class you are missing is part of the commons validator framework.
http://jakarta.apache.org/commons/validator/
commons-validator.jar is certainly a part of the core struts
distribution though. Make sure you include all the struts dependencies
for your version.
If all you need is to define
The org.apache.struts.action.ActionMapping class provides access to this
information. It is provided as the first parameter to the Action.execute
method, and is also stored as a request attribute under the
org.apache.struts.Globals.MAPPING_KEY key
(org.apache.struts.action.mapping.instance).
If you use modules rather than just multiple config files the action
name is relative to the module name, so you can use the same path. If
you are not using modules, you need to name them differently so that the
RequestProcessor knows which Action instance to invoke.
Adam
-Original
You could try storing the output of html:rewrite into a variable (or
using c:url), then use the variable as the value of the page attribute.
jsp:include's page attribute will allow expressions (EL or scripting)
http://java.sun.com/products/jsp/syntax/2.0/syntaxref2020.html#8828
Adam
Perhaps your session timed out?
-Original Message-
From: Bharat Kumar Meda [mailto:[EMAIL PROTECTED]
Sent: Monday, June 19, 2006 12:57 PM
To: Struts Users Mailing List
Subject: Help required: No bean found exception
Hi,
I have a struts based application for adding, deleting and
You aren't calling FilterChain.doFilter(req,res) after sending the
redirect are you? Are there any other filters ahead of this filter in
the pipeline that use the response? Perhaps you could post the
applicable code from your Filter and information regarding any other
filters you are using.
-Adam
/servlet-mapping
Regards,
Bharat
-Original Message-
From: Samere, Adam J [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 6:45 PM
To: Struts Users Mailing List
Subject: RE: How to avoid IllegalStateException ?
You aren't calling FilterChain.doFilter(req,res) after sending the
redirect
Browsers do not send a request parameter for check boxes that are not
checked. Input of type text is always sent. I'm guessing what you see is
the box not being unchecked... You need to set it in the reset method.
-Original Message-
From: Sebastian Stein [mailto:[EMAIL PROTECTED]
Sent:
There are probably numerous ways to accomplish this, what I like to do
is define/instantiate the Map using the jsp:useBean/ tag, then set the
key/value pairs using the c:set/ tag from JSTL.
jsp:useBean id=paramsMap class=java.util.HashMap/ You MUST to use
a concrete implementation of
?
On 6/15/06, Samere, Adam J [EMAIL PROTECTED] wrote:
There are probably numerous ways to accomplish this, what I like to do
is define/instantiate the Map using the jsp:useBean/ tag, then set
the key/value pairs using the c:set/ tag from JSTL.
jsp:useBean id=paramsMap class=java.util.HashMap
You can forward to a JSP from your action rather than coding tags into
your action, then generate XML in your JSP rather than HTML.
Your JSP (aside from taglib directives etc) may look like this:
?xml version=1.0 encoding=UTF-8?
ajax-response
response
c:forEach var=user
You need to use the 1.0 JSTL implementation as you said.
Your taglib directives will then need to use the 1.0 uri, for example:
[EMAIL PROTECTED] uri=http://java.sun.com/jstl/core; prefix=c % (no /jsp/
in
the path)
-Adam
-Original Message-
From: chuanjiang lo [mailto:[EMAIL PROTECTED]
You also may be able to store state in hidden fields in the rendered
markup, or by encoding the raw binary data in a single hidden field.
This goes a bit beyond the scope of this list though.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09,
Message-
From: Samere, Adam J [mailto:[EMAIL PROTECTED]
Sent: vrijdag 9 juni 2006 13:57
To: Struts Users Mailing List
Subject: RE: best way to send parameters through more requests
You also may be able to store state in hidden fields in the rendered
markup, or by encoding the raw binary data
ActionMessage(errors.username.required));
}
return errors;
}
}
-Message d'origine-
De : Samere, Adam J [mailto:[EMAIL PROTECTED] Envoyé : mercredi 7 juin 2006
19:04 À : Struts Users Mailing List Objet : RE: struts-config xml file throws a
java exception
Can you post the form bean
/
/action
[...]
/action-mapping
Olivier.
-Message d'origine-
De : Samere, Adam J [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 juin 2006 14:10
À : Struts Users Mailing List Objet : RE: struts-config xml file throws a java
exception
Where is loginRequired referenced in your struts-config
Internally the DynaForm (i.e. DynaBean) uses a Map to store the
properties. This is what allows it to provide dynamic properties and
save you from writing ActionForm subclasses.
When you reference myDynaForm with a JSP Expression Language (EL)
expression like ${myDynaForm.description} reflection
Does your struts-config have:
action-mappings type=com.ex.struts.EmployesActionMapping
...
/action-mappings
It didn't in the example you provided earlier.
-Original Message-
From: Olivier Bex [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 9:58 AM
To: 'Struts Users
Browsers are only required to submit values for checkboxes when they are
selected. So when a box is not checked, no value is sent, so the state
on the server is not changed. When using session scoped objects to store
the value of checkboxes your processing needs to be aware of the fact
that values
What container are you using? By moving xerces 2.8 inside my war do
you mean the xercesImpl.jar? Which JVM you are using may also be of
interest.
What is bluecast? I bet your Sax Parser factory is picking the wrong
one...
-Original Message-
From: RickD [mailto:[EMAIL PROTECTED]
Sent:
The concrete SAXParserFactory implementation to use is determined as
follows:
1. Use the javax.xml.parsers.SAXParserFactory system property if it is
set. (with -Djavax.xml.parsers.SAXParserFactory=my.factory.impl for
example)
2. If JRE/lib/jaxp.properties exists and has a
Looks like your form is failing validation, and you do not have an input
attribute on your action element.
action path=/inicio type=seda.incidencias.struts.action.ActionInicio
name=formInicio input=inputPage.jsp
/action
-Original Message-
From: José María Tristán [mailto:[EMAIL
Can you post the form bean declaration from struts config and the ActionForm
subclass?
-Original Message-
From: Olivier Bex [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 12:51 PM
To: 'Struts Users Mailing List'
Subject: RE: struts-config xml file throws a java exception
Hi
How about just:
logic:messagesPresent message=true
property=%= ActionMessages.GLOBAL_MESSAGE %
.
/logic:messagesPresent
You don't want to tie your code to the actual key since that is an
implementation detail, that's what the public constant is for.
-Original Message-
From: Joe
You may just need to return false after calling reset.
onclick=document.MyForm.reset(); return false;
Or just use a standard img or the html:img tag instead of html:image
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 7:50
Assuming your test:example tag's property attribute supports
expressions, you could set the value of the title:renderTitle/ into a
page scoped variable then write it into the property attribute using an
expression. For example, using c:set from JSTL:
c:set var=myTitletitle:renderTitle//c:set
libraires
c:set var=myTitletitle:renderTitle//c:set
-Original Message-
From: Samere, Adam J [mailto:[EMAIL PROTECTED]
Sent: 06 June 2006 14:02
To: Struts Users Mailing List
Subject: RE: Adding JSP tag as a parameter to another jsp tag
Assuming your test:example tag's property attribute
You may be able to configure this in your web server.
-Original Message-
From: Al Eridani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 06, 2006 10:29 AM
To: Struts Users Mailing List
Subject: Re: How to terminate the uploading process of Struts?
On 6/4/06, Truong Xuan Tinh [EMAIL
The message attribute is a boolean indicated whether messages should be
checked for under Globals.ERROR_KEY or Globals.MESSAGE_KEY.
You probably want to use the name or property attributes. See the online
docs.
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL
prefix=tiles % %@ taglib
uri=struts-html.tld prefix=html %
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
**
**
-Rafael T Icibaci
- Original Message -
From: Samere, Adam J [EMAIL PROTECTED
I don't think your method param is being passed when the form is
submitted. You should probably make the parameters you are passing in
the query string hidden fields on the form you are submitting. If you
need to dynamically set the method parameter you can then do so in the
onclick event of the
the parameter because it does,
the issue I don't understand is why would it pass '' initially then in
the same request it finds the correct parameter
Any pointers
-Original Message-
From: Samere, Adam J [mailto:[EMAIL PROTECTED]
Sent: 02 June 2006 13:09
To: Struts Users Mailing List
Subject
I doubt that the include is not working. What version of JSTL are you
using? Do you have taglib entries in web.xml?
Can you explain JSTL stopped working a little more extensively?
-Original Message-
From: Rafael [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 11:01 AM
To: Struts
Dumonceaux
Samere, Adam J [EMAIL PROTECTED]
06/02/2006 10:36 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6
I doubt that the include
html:image src=/path/to/resource/
Or you could just put javascript in the onclick handler for a regular
image.
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 01, 2006 5:59 AM
To: Struts Users Mailing List
Subject: Image Button
Hi,
The html:image tag renders an input of type image, which is a submit
type button. If all you are looking for is to customize the size of the
standard submit button you can achieve this using CSS.
-Original Message-
From: marcus biel (innoWake gmbh) [mailto:[EMAIL PROTECTED]
Sent:
You can use the ActionMessage constructor that takes a string and a
boolean indicating whether or not the string is a key to be looked up in
a resource bundle. By setting this to false, the string is taken as a
literal.
public ActionForward execute(ActionMapping mapping, ActionForm form,
Maya,
It looks like you need to use the html:rewrite/ tag to generate your url to
the /Delete action.
form.action=html:rewrite action='/Delete'/;
The tag will look up your action and prepend the context path etc.
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED]
Sent:
You could use the message tag from JSTL to lookup and store the message
from your resource bundle. Then use the EL version of the Struts HTML
tag library to output the saved value.
%-- This stores the value of my.link.1 in myLink1 --%
fmt:message var=myLink1 key=my.link.1/
%-- now plug it in for
Try ${requestScope['org.apache.struts.action.EXCEPTION']}
-Original Message-
From: John Hutchinson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 31, 2006 1:41 PM
To: user@struts.apache.org
Subject: Displaying and error
Anyone know why this doesn't work in a JSP error page:
%@ page
The best IDE support for struts in eclipse I've found is now owned by
BEA, and is called BEA Workshop Studio. It was formerly NitroX from m7.
It does a great job of providing development time error checking and
code completion in jsp and xml configuration files, including validation
and tiles
How about creating a single list with an object to encapsulate the
values from list1 and list2 in a single entity?
Public class MyClassContainer {
private MyClass1 my1;
private MyClass2 my2;
...
}
ListMyClassContainer = ...
myClassContainerList.add(new
55 matches
Mail list logo