Re: Internalization problem: two internalizations for the same key

2008-05-07 Thread Toni Lyytikäinen
Which version of Struts 2 are you using? 2.0.11.1 works fine for me in the same situation. Are you using the i18n interceptor? Also, how did you name your resource files? On Wed, May 7, 2008 at 11:30 AM, Jukka Välimaa <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have the following lines in m

share example

2008-05-07 Thread Frans Thamura
hi there i just success make a struts2/hibernate/spring programming using a standard Java Project (source java and class). this is the tutorial http://www.blueoxygen.org/wiki/index.php/Cimande:Getting_Started several my outstanding is 1. make all the result action to annoation 2. make all the

Can you set parameters in using in the tag body?

2008-05-07 Thread Eduardo Dela Rosa
Hi, I was trying to use the and invoke it with *some *parameters using . i.e., * * However, the parameters don't seem to be getting through to the HttpServletRequest object when interrogated inside the Action. I know I can use the instead, but I preferred the . I'm implementing Ser

log request and response time from filter

2008-05-07 Thread jacktie
Guys: I have one question about log request and response time from filter. We use jsp, filter, struts 1.2. We have one PerfermaceFilter class which implements filter. We calculate the time between FilterChain.doFilter and log that with request URL. Because sometimes when user do one click fr

Re: tomcat/struts ---> flash/.swf >> hang problem

2008-05-07 Thread Laurie Harper
john lee wrote: Any expert can tell me why for the following? i have an flash file (.swf), it is running fine under regular apache server. But, it hang forever after i put it under tomcat/struts home directory. What do you mean by 'hang forever'? Do you mean the browser locks up?

Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper
The OP wrote: >> we are trying to use file upload in Struts 2... Martin wrote: Struts 1.2.9 Doh! org.apache.struts.chain.servlet.validateActionForm where the validate method is declared as protected ActionErrors validate(Context context, ActionConfig actio

Re: Struts 2 file upload size validation

2008-05-07 Thread Laurie Harper
Rubbinio wrote: Hi, we are trying to use file upload in Struts 2 and run into the following problem. We have a form with multiple fields among which one is a file input field. The user must complete the form and then select a file to upload. If the file size is larger than what we specify in th

Re: Capturing the TransferObjectSelect object

2008-05-07 Thread Laurie Harper
Arpan Debroy wrote: Hi, Can anyone successfully implemented "optiontransferselet" tag. Suppose I want to capture the RightSideDropDown box in action class. How can I capture that in action class.Is it will be a collection field or array or something else... It should be an array or collection

Re: Struts 2.1.2 action url fails (possible bug)

2008-05-07 Thread Laurie Harper
Struts Two wrote: I have deployed the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2. Whenever I type a url as follows: https://localhost:9445/struts2.1.2/example/HelloWorld.action I get "page not

Re: html:multibox read but not write

2008-05-07 Thread Laurie Harper
None of the JSP code made it out of your mail client into the message I'm afraid. Try re-posting with your mail program set for plain text instead of multipart/mime. L. houser wrote: Hi All, I am in very strange situation, and stuck! please help, I have found one thread that much more or les

Re: Struts 2 file upload size validation

2008-05-07 Thread Martin
Struts 1.2.9 org.apache.struts.chain.servlet.validateActionForm where the validate method is declared as protected ActionErrors validate(Context context, ActionConfig actionConfig, ActionForm actionForm) //reference the actionF

tomcat/struts ---> flash/.swf >> hang problem

2008-05-07 Thread john lee
Hi, Any expert can tell me why for the following? i have an flash file (.swf), it is running fine under regular apache server. But, it hang forever after i put it under tomcat/struts home directory. tks in advance john - Be a be

Struts 2 file upload size validation

2008-05-07 Thread Rubbinio
Hi, we are trying to use file upload in Struts 2 and run into the following problem. We have a form with multiple fields among which one is a file input field. The user must complete the form and then select a file to upload. If the file size is larger than what we specify in the struts.properti

RE: Action servlet becomes null in UNIX environment

2008-05-07 Thread Allen, Daniel
> are using html in java code because the JSP changes at run time according to > the user inputs. But that's exactly what the Logic tags are for: a JSP that produces different output according to inputs. For example: If, in your Java code, you have: if (reqType == A) sb.append ("User made

Re: UnknownAction

2008-05-07 Thread kal stevens
Oops Sorry I meant UnknownHandler On Wed, May 7, 2008 at 11:16 AM, kal stevens <[EMAIL PROTECTED]> wrote: > I am not very familiar with struts2, but I need to implement an Unknown > Action. > > I could not find any examples on the internet. > > I think that for handleUnknownAction, I just wanted

Re: Action servlet becomes null in UNIX environment

2008-05-07 Thread Raghuveer Rawat
Thanks for the prompt reply. Its a late 90's huge application in which now i cannot start using Strus 2 as iam the only developer working on this. We are using html in java code because the JSP changes at run time according to the user inputs . Yeah , i agree that coz of diff environment we face

UnknownAction

2008-05-07 Thread kal stevens
I am not very familiar with struts2, but I need to implement an Unknown Action. I could not find any examples on the internet. I think that for handleUnknownAction, I just wanted to go to the with failure, for now and then we might change the behavior. This happens when a user types in a bogus

RE: Action servlet becomes null in UNIX environment

2008-05-07 Thread Allen, Daniel
A couple of things strike me as really odd about this. First: why are you creating HTML using strings in Java code? The whole point of JSPs was to avoid doing exactly that. You should either make use of .jsp files and the logic tags in Struts [1] or just use regular servlets if you really want to

Action servlet becomes null in UNIX environment

2008-05-07 Thread Raghuveer Rawat
Hi, I have a problem with my application where actionServlet becomes null in UNIX environment and works fine in windows XP system. While saving data on test environment (UNIX) I am getting action servlet as null in My Action class. The jsp is built dynamically in as below *JSP code:* if (newGuide

Re: problem

2008-05-07 Thread Rushikesh Thakkar
On Wed, May 7, 2008 at 6:10 PM, Arpan Debroy <[EMAIL PROTECTED]> wrote: > > But nothing is displaying in my drop down box when I put listkey and > listvalue. > > If it's working without using listKey and listValue, then make sure you have defined getters and setters for "id" and "name" attributes

problem

2008-05-07 Thread Arpan Debroy
I have a JPA query like that Query query = em.createQuery("*SELECT c.name, c.id FROM Group c ORDER BY c.name*"); List resultList = query.getResultList(); In Action class I have *resultList *and *GroupId *declared with getter and setters private List resultList ; private long GroupId; In

Capturing the TransferObjectSelect object

2008-05-07 Thread Arpan Debroy
Hi, Can anyone successfully implemented "optiontransferselet" tag. Suppose I want to capture the RightSideDropDown box in action class. How can I capture that in action class.Is it will be a collection field or array or something else... Thanks

Re: How to build Struts 2.0.11.1?

2008-05-07 Thread Musachy Barroso
Also make sure that you download and build xwork (needs to be on the same folder as struts). Following the steps (in the link), and adding -Dmaven.test.skip=true to maven commands should be enough. musachy On Wed, May 7, 2008 at 10:48 AM, Graham Leggett <[EMAIL PROTECTED]> wrote: > Hans-Georg wro

Re: How to build Struts 2.0.11.1?

2008-05-07 Thread Graham Leggett
Hans-Georg wrote: Thanks for the link - I already found it but it doesn't help me. Is there anyone else who is able to build struts from the source? Can anyone tell what he did to set up the "development" environment? After correctly installing a recent copy of maven2, make sure you have an

Re: How to build Struts 2.0.11.1?

2008-05-07 Thread Hans-Georg
Thanks for the link - I already found it but it doesn't help me. Is there anyone else who is able to build struts from the source? Can anyone tell what he did to set up the "development" environment? Musachy Barroso wrote: > > This link could help: > > http://struts.apache.org/2.x/docs/buildi

Steve Bott is out of the office.

2008-05-07 Thread Steven_Bott
I will be out of the office starting 05/07/2008 and will not return until 05/13/2008. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Struts 2.1.2 action url fails (possible bug)

2008-05-07 Thread Struts Two
I have deployed the two blank war files for struts 2.0.11 and struts 2.1.2. While struts 2.0.11 works perfectly fine, I have the following problem with struts 2.1.2. Whenever I type a url as follows: https://localhost:9445/struts2.1.2/example/HelloWorld.action I get "page not found" error. Howeve

Re: How to build Struts 2.0.11.1?

2008-05-07 Thread Musachy Barroso
This link could help: http://struts.apache.org/2.x/docs/building-with-maven.html musachy On Wed, May 7, 2008 at 4:39 AM, Hans-Georg Kruse <[EMAIL PROTECTED]> wrote: > Hello, > > I wan't to build Struts 2.0.11.1 - to get more into the code and maybe try > to patch something. > > I have install

How to build Struts 2.0.11.1?

2008-05-07 Thread Hans-Georg Kruse
Hello, I wan't to build Struts 2.0.11.1 - to get more into the code and maybe try to patch something. I have installed Maven under: C:\Program Files\Java\apache-maven-2.0.9 Java Version used: java version "1.5.0_09" Checktout Struts from: https://svn.apache.org/repos/asf/struts/struts2/tags/ST

html:multibox read but not write

2008-05-07 Thread houser
Hi All, I am in very strange situation, and stuck! please help, I have found one thread that much more or less but does not help.. http://www.nabble.com/Check-a-multibox-dynamically-to6630704.html#a6630704 http://www.nabble.com/Check-a-multibox-dynamically-to6630704.html#a6630704 I have alread

Internalization problem: two internalizations for the same key

2008-05-07 Thread Jukka Välimaa
Hi everyone, I have the following lines in my jsp file: Of these two, using text tag gives me the internalization that has been selected as internationalization for the application. Using getText for select label gives me internalization in Finnish, no matter what is the selected international