Re: File Upload into database

2008-10-20 Thread ManiKanta G
http://struts.apache.org/2.x/docs/how-do-we-upload-files.html have some info to start. ManiKanta

Re: File Upload into database

2008-10-20 Thread Mead Lai
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

File Upload into database

2008-10-20 Thread Narayana S
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

Re: How to bypass validation in struts2

2008-10-20 Thread newbie-gero
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

Re: How to bypass validation in struts2

2008-10-20 Thread Wes Wannemacher
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

How to bypass validation in struts2

2008-10-20 Thread newbie-gero
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.

Re: How to read selected items from listbox in action??

2008-10-20 Thread Mead Lai
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

Re: 404 error in struts 2 blank helloworld example in RAD7

2008-10-20 Thread Tim Jowers
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

How to read selected items from listbox in action??

2008-10-20 Thread A. Lotfi
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

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Chris Pratt
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

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread Nils-Helge Garli Hegvik
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

Re: Tons of Could not find property messages - log4j is not helping?

2008-10-20 Thread 928572663
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/";>

customization to always exclude a certain parameter

2008-10-20 Thread kdny
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

RE: Results Layout Question

2008-10-20 Thread Peterson, Ryan
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

Re: Results Layout Question

2008-10-20 Thread DEck
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

RE: Struts2 Collection validation

2008-10-20 Thread Néstor Boscán
>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

Re: how to find out the NULL value?

2008-10-20 Thread Dale Newfield
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

Re: Struts2+YUI

2008-10-20 Thread Owen Berry
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

Results Layout Question

2008-10-20 Thread Peterson, Ryan
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

Re: Error 404: SRVE0190E: File not found:

2008-10-20 Thread Trinad
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

Re: Struts2 Collection validation

2008-10-20 Thread gaelle
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

Re: Struts2: Custom Validation, message from property file

2008-10-20 Thread Paweł Wielgus
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

Struts2: Custom Validation, message from property file

2008-10-20 Thread lbastil
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.

Re: [S2] grabbing current URL in an interceptor

2008-10-20 Thread Tobin Juday
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

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
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

Confused by Result-generation

2008-10-20 Thread Stephan Schröder
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

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
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

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Lukasz Lenart
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

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Joris Kimpe
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

Re: How to handle different div's and 1 or more ActionForms

2008-10-20 Thread Lukasz Lenart
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 -

Re: how to find out the NULL value?

2008-10-20 Thread Mead Lai
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 >> >

Re: how to find out the NULL value?

2008-10-20 Thread Mead Lai
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

Re: how to find out the NULL value?

2008-10-20 Thread Al Sutton
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

how to find out the NULL value?

2008-10-20 Thread Mead Lai
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

RE: Struts2 with Annotation and problem (always returning the default action)

2008-10-20 Thread Romain Maton
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