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
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
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
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
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
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
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
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
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
Forgot the jsps -- sorry!
=
<%@ taglib prefix="s" uri="/struts-tags"%>
Add Music Recording
Enter New Music Recording Details
C2
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;
11 matches
Mail list logo