Unix server it does not have
permission to access the filesystem using FileInputStream, , am I right ?
- What should I do ?
- Is there other way to convert a file to inputStream without accessing the
filesystem ?
-taltun
--
View this message in context:
http://www.nabble.com/Fileupload
Thank you very much!!
During my research, I remember some one solved the issue by creating an
Struts 2 intercepter. He placed the intercepter right after the
validationIntercepter. The job of the intercepter was to check if
getActionErrors or getFieldErrors collections was not empty than it close
By the way, how can I let JPA return a deatached object ?
I make use of GenericDaoJpa.java which is attached to this message.
http://www.nabble.com/file/p24571326/GenericDaoJpa.java GenericDaoJpa.java
Greg Lindholm-2 wrote:
>
>> I use JPA (hibernate) to persist.
>>
>>
>>
>> An example of acti
Ok.
- What is the best way to copy a persistent object ? Using BeanUtil.copy or
clone, etc?
Greg Lindholm-2 wrote:
>
>> I use JPA (hibernate) to persist.
>>
>>
>>
>> An example of action that use prepare to load a person object from
>> transactional manager. When the validate fails and it r
() {
manager.savePerson(person);
return SUCCESS;
}
public void validate() {
if (person.firstName.length < 5 and person.firstName > 10) {
addActionError("Firstname length should be between 5 and 10
characters.");
}
}
}
taltun wrote:
>
> When submitti
e.g an user object from a
manager/service. And the data relates to the user object that is about.
-taltun
--
View this message in context:
http://www.nabble.com/Prevent-persisting-data-when-validation-fails-tp24566713p24566713.html
Sent from the Struts - User mailing list archive at Nabble.com
6 matches
Mail list logo