Re: How to avoid validation if request was done by GET method?

2009-03-26 Thread boraldo
Do I understand properly that ActionSupport.validate method that you used here performs the same validation as validation interceptor ? How can I see if there were validation errors ? benjamin haimerl wrote: > > hi boraldo > > a very simple way should be: > > > Action: > > YourActionConne

Re: How to avoid validation if request was done by GET method?

2009-03-26 Thread benjamin haimerl
hi boraldo a very simple way should be: Action: YourActionConnetedToTheFormAction extends Action..{ execute(..){ String qString = request.getQueryString(); if(qString!=null && paramsFound(...)) // *paramsFound() = check if your formParams were given by query String } else { //check if your

RE: file download problem in application server

2009-03-26 Thread Martin Gainty
I assume your blob Class is Serializable? http://www.hibernate.org/hib_docs/v3/reference/en/html_single/ ? Martin __ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kin

Re: About File UploadSizeLimitExceededException

2009-03-26 Thread Burton Rhodes
I had a similiar problem which I solved this way: "struts.properties" #This is for the file upload. Set high on purpose, narrowed down below at the action definition struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest struts.multipart.maxSize=1 struts.c

RE: file download problem in application server

2009-03-26 Thread Shannon, Andrew
I was half wrong. It was a quirk for runnnig in OC4J but the Blob was being mangled coming out of the data base (which I had previously ruled out, doh). Adding a property to the hibernate.properties file for: hibernate.jdbc.use_streams_for_binary=true fixed my problem. Otherwise file handling i

ExecuteAndWaitInterceptor not working (2.1.6)

2009-03-26 Thread musomesa
execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below) java.lang.UnsupportedOperationException ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285) ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitIntercept

Re: About File UploadSizeLimitExceededException

2009-03-26 Thread Mageshwaran
Hi Nils-H , for the above issue, i had used "interceptor" tag in struts config xml and the mapping is given below, class="com.echelon.nem.client.configuration.struts.ImportDcMeterAction" method="readXLSFile"> 5203070

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Here is a smaller more succinct example to show the config-browser misbehaving. (No xml -- using convention plugin) Jars in WEB-INF/lib: commons-collections-3.2.1.jar commons-fileupload-1.2.1.jar commons-logging-1.1.1.jar freemarker-2.3.13.jar log4j-1.2.15.jar ognl-2.6.11.jar struts2-config-br

RE: checkboxlist

2009-03-26 Thread Muthu Velappan
list="activePermissions" hold the entire collection holding Map. value="permissions" holds the Set that are applicable for this user. So, you can assume it like this.. The set you provide in "list" will get rendered as checkboxes and set in "value" will be used to check the rendere

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Forgot the jsps -- sorry! = <%@ taglib prefix="s" uri="/struts-tags"%>             Add Music Recording                             Enter New Music Recording Details                                                                                                     C2          

Re: Config-browser properties tab broken (2.1.6)

2009-03-26 Thread musomesa
Here is an example and its struts.xml (you get the same result with convention plug-in) = package rain.actions.all; public class AddMusicRecordingAction{     private static final long serialVersionUID = 1L;     private String artist;     private String category;     private double price;