http://struts.apache.org/2.x/docs/how-do-we-upload-files.html
have some info to start.
ManiKanta
There is Example in the "show-case" app, which is contain with the struts
Full Releases package.
simplely,
U add into Action:
private String uploadContentType;
private String uploadFileName;
private File upload;
and use Tag in the jsp Page.
U can get file just call upload field.
On Tu
Hi,
i am new to struts 2, want to use file upload control. once the file
is uploaded i want to store its content into the database, i didn't work on
the file upload previously also. so any one can please tell me the best way
to access the uploaded file and store that into database? any lin
Hi,
thanks for the solutions. It works when i follow your advise.
I will like to ask another question. It seems that when i use this example
to escape the validation, i'm not able to access to another page when i
click on the submit button. Please correct me if i'm wrong.
It is because of this
Your problem is in the following line in your struts.xml file -
/{1}.jsp
In itself, this configuration is not a bad thing, but it's location is
your problem. I think order is important in the struts.xml file. Since
this wildcard is located before
Hi,
i'm new to struts 2 and i'm trying out the example in the struts2 webpage.
Currently i'm trying on the struts2 tutorial on bypassing the validation as
listed on http://struts.apache.org/2.x/docs/validating-input.html
However i encounter a few problems when i deploy the code in tomcat server.
private List checkBoxIds;
use bove List in Action;
You'll get some String about 'fieldValue' in Tag.
On Tue, Oct 21, 2008 at 4:34 AM, A. Lotfi <[EMAIL PROTECTED]> wrote:
> Hi,
> If you have a listbox and you selct items or all items and submit to an
> action, how to read the selected items in
Thanks for the help. It works now: RAD7.0.0.6 and WAS 6.1.0.17. Works.
Struts2-core-2.0.11.jar
timjowers
On Fri, Oct 17, 2008 at 3:48 PM, Tim Jowers <[EMAIL PROTECTED]> wrote:
>
> Thanks for the emails. I downgraded and made the setting but haven't solved
> my malfunction yet. I'm on WebSphere Pl
Hi,
If you have a listbox and you selct items or all items and submit to an
action, how to read the selected items in the action ?
thanks
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Personally, I seem to be able to control everything but these messages, so
I'm fairly confident that the configuration is in the right place.
(*Chris*)
On Mon, Oct 20, 2008 at 12:12 PM, Nils-Helge Garli Hegvik
<[EMAIL PROTECTED]>wrote:
> You're probably not editing the log4j config that is pick
You're probably not editing the log4j config that is picked up at
runtime. Maybe your server has it's own config (since you're saying
that log4j is in the appserver classpath)?
Nils-H
On Mon, Oct 20, 2008 at 8:47 PM, 928572663 <[EMAIL PROTECTED]> wrote:
> Any suggestions on how to reduce the amou
Any suggestions on how to reduce the amount of struts logging?
928572663 wrote:
I have a log4j.xml file located in my /src directory in my webapp
(Dynamic Web Project from eclipse ganymede).
http://jakarta.apache.org/log4j/";>
Hi,
I'd like to customize the s:url to always exclude a certain parameter,
without having that customization apply globally every time I use the s:url
throughout the app.
Any thoughts? We've also looked at the ExtraParameterProvider and the
ParameterRemoverInterceptor.
Thanks!
--
View t
I could attempt an example :-) (assuming the x's are radio buttons):
X Jim Hendrix
X Alec Baldin
X Tim Jones
X Jane Jones
X Bart Simpson
...
And etc, with up to a hundred or so rows. The list is populated from a
user selection on a previous page. The idea is the user submits a value
which resul
How about a link?
-"Peterson, Ryan" <[EMAIL PROTECTED]> wrote: -
To: user@struts.apache.org
From: "Peterson, Ryan" <[EMAIL PROTECTED]>
Date: 10/20/2008 12:03PM
Subject: Results Layout Question
Hey guys, quick question on how to display results:
I have a list of names/info that will be
>From what I have investigated 6 months ago there is no validation for
>collections. I think I even tested that you can create validators for
>employees[0].firstName, employees[1].lastName, but not something that will
>apply to all indexes. I even posted if it was possible to add expressions to
Mead Lai wrote:
Hi All,
Show something here
Show something here
Neither.
${} is el
%{} is ognl
%{} in ognl is sometimes optional, but always confusing when left out.
In fact, if it were not optional, then we could much more easily let
developers using struts select the expression language t
You need to use the Struts JSON plugin to format your list as a JSON
response. Your Javascript code can then call eval on the JSON string
to create a Javascript object. Either that, or look into the YUI JSON
module. Another alternative might be to look at the YUI datasource
module, although I haven
Hey guys, quick question on how to display results:
I have a list of names/info that will be displayed for users to choose
(possibility of 0-100+ "names") to submit a single one back to the
action. I have a collection and can display them in plain text, but
what's a recommended way to display thi
Laurie Harper wrote:
>
> Trinad wrote:
>> Hi,
>>
>> I have created a struts action which construts a json string in the
>> server
>> side,action class successfully returned json string in the response, but
>> I
>> am getting an Error 404: SRVE0190E: File not found: /Test.action
>>
>> Any Idea
I hope there exists a simpler solution, but here is my workaround: use an
expression validator.
This idea was taken from
http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html
webwork wiki: collection validator (it seems that the collection validator
is not yet available in str
Hi Ibastil,
try getText() method inside Your action.
Your action needs to extend ActionSupport.
Best greetings,
Paweł Wielgus.
2008/10/20 lbastil <[EMAIL PROTECTED]>:
>
> I have to use Custom Validation and set field errors like:
> addFieldError("", "
> instead of a plain string for the error me
I have to use Custom Validation and set field errors like:
addFieldError("", "http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.html
Sent from the Struts - User mailing list archive at Nabble.com.
I'm not sure what you're asking for. The code I posted is the code
that would live in the LoginInterceptor, along with any other code you
have for checking for a valid session.
Tobin
> Tobin-could you forward what the LoginInterceptor interface would look like?
>
> Thanks
> Martin
Seems like it has something to do with this part of the code:
If I remove this, the code works... What is wrong here? It is inside the
form in
hi,
as far as i understand it, the calling sequenze of an action mapping looks
like this:
Interceptor 1-> Interceptor 2->...-> Action-> Result->...-> Interceptor 2->
Interceptor 1
(see http://struts.apache.org/2.0.11.2/docs/big-picture.html)
But what happens when i use this AuthenticationInterce
The submit action is present... However, I don't use a submit button, I use
a button which performs the action using an Ajax call. I overruled the
submit, by using onsubmit="return false;" as an form attribute. Is this the
reason?
You are sure it has nothing to do with a div containing the for
2008/10/20 Joris Kimpe <[EMAIL PROTECTED]>:
> I know I can use the same form for different actions. That's what I was
> trying to do. But I'm afraid it has something to do with the different div
> sections.
No, it shouldn't, div's are used only for display and are not
submitted to the actions. S
I know I can use the same form for different actions. That's what I was
trying to do. But I'm afraid it has something to do with the different div
sections.
Do you know whether this can be done? If not, what's the best way to create
the application I want?
Joris
Lukasz Lenart wrote:
>
> H
Hi,
I'm not sure where you have problem, you can define the same form for
different actions in struts-config.xml
Each html form has to have input with type submit, that's all.
I only noticed that you are using action path (saveStatusChange.do)
instead of action name (/saveStatusChange)
Regards
-
I use can't find the blank String(""), like ''
On Mon, Oct 20, 2008 at 3:31 PM, Mead Lai <[EMAIL PROTECTED]> wrote:
> like this format?
> Show something here
> Thank you very much.
>
>
> On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
>
>> I use
>>
>> username neq null
>>
>
like this format?
Show something here
Thank you very much.
On Mon, Oct 20, 2008 at 3:26 PM, Al Sutton <[EMAIL PROTECTED]> wrote:
> I use
>
> username neq null
>
> or
>
> usename eq null
>
> Al.
>
> Mead Lai wrote:
>
>> Hi All,
>>
>> Show something here
>> Show something here
>> which is right Ta
I use
username neq null
or
usename eq null
Al.
Mead Lai wrote:
Hi All,
Show something here
Show something here
which is right Tag above?
I heared, It can't use like that expression after 2.0.11version, really?
Any feedback is appreciated.
--
Al Sutton
W: www.alsutton.com
B: alsutto
Hi All,
Show something here
Show something here
which is right Tag above?
I heared, It can't use like that expression after 2.0.11version, really?
Any feedback is appreciated.
--
BestRegards,
Mead
http://yayisoft.com
Bob Hope - "A James Cagney love scene is one where he lets the other guy
liv
Hi all,
No more news about that ?
I read all docs and faqs and I can not find anything...
De : Romain Maton
Envoyé : jeudi 16 octobre 2008 17:43
À : '[EMAIL PROTECTED]'; user@struts.apache.org
Objet : Struts2 with Annotation and problem (always returning th
35 matches
Mail list logo