RE: JspException: null in doStartTag() of form tag

2006-10-02 Thread Samere, Adam J
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

RE: Issue with MappingDispatchAction

2006-09-12 Thread Samere, Adam J
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

RE: Field check using DynaValidatorForm

2006-09-07 Thread Samere, Adam J
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

RE: [SERVLET_FILTERS]

2006-08-28 Thread Samere, Adam J
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

RE: what's initial in form-bean ?

2006-08-28 Thread Samere, Adam J
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:

RE: Struts Version from struts.jar

2006-08-09 Thread Samere, Adam J
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

RE: Validator not getting called and I can't see why

2006-08-04 Thread Samere, Adam J
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:

RE: Exposing an attribute using tiles

2006-08-03 Thread Samere, Adam J
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

RE: Server side validation not working

2006-07-12 Thread Samere, Adam J
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

RE: Detection of process complete

2006-07-12 Thread Samere, Adam J
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

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread Samere, Adam J
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]

RE: Action called multiple times

2006-07-11 Thread Samere, Adam J
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

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
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

RE: how do I use a LazyDynaBean as an ActionForm?

2006-07-11 Thread Samere, Adam J
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

RE: How to get the action name (in addition to the context path name)?

2006-07-11 Thread Samere, Adam J
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).

RE: same name action in 2 diff struts-config.xml

2006-07-05 Thread Samere, Adam J
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

RE: struts portlet bridge - html rewrite

2006-07-05 Thread Samere, Adam J
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

RE: Help required: No bean found exception

2006-06-19 Thread Samere, Adam J
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

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Samere, Adam J
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

RE: How to avoid IllegalStateException ?

2006-06-16 Thread Samere, Adam J
/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

RE: html:checkbox not storing property

2006-06-15 Thread Samere, Adam J
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:

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
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

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
? 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

RE: ajax:autocomplete tag

2006-06-14 Thread Samere, Adam J
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

RE: web.xml specifications from 2.4 to 2.3

2006-06-14 Thread Samere, Adam J
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]

RE: best way to send parameters through more requests

2006-06-09 Thread Samere, Adam J
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,

RE: best way to send parameters through more requests

2006-06-09 Thread Samere, Adam J
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

RE: struts-config xml file throws a java exception

2006-06-08 Thread Samere, Adam J
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

RE: struts-config xml file throws a java exception

2006-06-08 Thread Samere, Adam J
/ /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

RE: message resources

2006-06-08 Thread Samere, Adam J
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

RE: struts-config xml file throws a java exception

2006-06-08 Thread Samere, Adam J
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

RE: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Samere, Adam J
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

RE: Digester Error while reading struts config file

2006-06-08 Thread Samere, Adam J
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:

RE: Digester Error while reading struts config file

2006-06-08 Thread Samere, Adam J
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

RE: Problem in a action

2006-06-07 Thread Samere, Adam J
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

RE: struts-config xml file throws a java exception

2006-06-07 Thread Samere, Adam J
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

RE: displaying ActionMessages.GLOBAL_MESSAGE messages only

2006-06-07 Thread Samere, Adam J
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

RE: Reset Image Button

2006-06-06 Thread Samere, Adam J
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

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
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

RE: Adding JSP tag as a parameter to another jsp tag

2006-06-06 Thread Samere, Adam J
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

RE: How to terminate the uploading process of Struts?

2006-06-06 Thread Samere, Adam J
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

RE: Image change on error

2006-06-06 Thread Samere, Adam J
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

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-05 Thread Samere, Adam J
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

RE: dispatch action error

2006-06-02 Thread Samere, Adam J
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

RE: dispatch action error

2006-06-02 Thread Samere, Adam J
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

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread Samere, Adam J
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

RE: [Struts + Tiles] JSTL problem on WebSphere Application Server 6

2006-06-02 Thread Samere, Adam J
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

RE: Image Button

2006-06-01 Thread Samere, Adam J
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,

RE: Image Button

2006-06-01 Thread Samere, Adam J
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:

RE: Validating in Action?

2006-06-01 Thread Samere, Adam J
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,

RE: Global forwards and actions

2006-06-01 Thread Samere, Adam J
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:

RE: html:link question

2006-05-31 Thread Samere, Adam J
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

RE: Displaying and error

2006-05-31 Thread Samere, Adam J
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

RE: Struts with Eclipse 3.1

2006-05-25 Thread Samere, Adam J
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

RE: iterating over multiple Collections in one loop with JSTL

2006-05-25 Thread Samere, Adam J
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