Struts2 and html select tag problem

2009-10-05 Thread calintz
Hi everyone, I'm having some problems on html select Tag. This is part of my jsp code Testing This is part of my action.java HttpServletRequest request = (HttpServletRequest)ActionContext.getContext().get(ServletActionContext.HTTP_REQUEST); String[] de

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
It could be a character that represents which tab is selected. A, B, C, etc. On Mon, Oct 5, 2009 at 9:40 PM, SanJ.SANJAY wrote: > > Paul, > > I will try that..hidden field will be a java variable. So it should be like > a boolean which toggles every user select Tab? > > Thanks .. > > > > Paul Ben

Re: Problem adding sslext to Struts application

2009-10-05 Thread sonavor
I solved my problem. As I had determined earlier, it was a problem with the Apache - to - Tomcat connection configuration. What I didn't realize was that when SSL is turned on in Apache through the httpd-ssl.conf file, the mapped URL patterns that the AJP13 (mod_jk) connector is supposed to send

Re: Struts2 and TestNG

2009-10-05 Thread Alex Siman
Look here: http://struts.apache.org/2.x/docs/testing-actions.html dolsen-2 wrote: > > I am looking for some good ways of using TestNG to test my actions. I > know I can test them like any other POJO but I would like it to include > all the interceptors if possible. Can anyone give me any good

Re: Struts 2 runtime variable names

2009-10-05 Thread hisameer
Hi Alex, Thank you very much for your help=). It worked like a charm. I tried using s:set but forgot to put .count at the end of the index_count. But thanks for figuring this out. -Sameer Alex Siman wrote: > > I use such approach: > > > > ... > "%{'form.cvgcode' + #i}" > .

Struts2 and TestNG

2009-10-05 Thread Dan R. Olsen III
I am looking for some good ways of using TestNG to test my actions. I know I can test them like any other POJO but I would like it to include all the interceptors if possible. Can anyone give me any good resources on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I am also

Re: Struts 2 runtime variable names

2009-10-05 Thread Tommy Pham
From: Alex Siman To: user@struts.apache.org Sent: Mon, October 5, 2009 8:10:53 PM Subject: Re: Struts 2 runtime variable names I use such approach: ... "%{'form.cvgcode' + #i}" ... "%{'form.cvglimit' + #i}" ... hisameer wrote: >

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
It is found at the bottom of this message. On 10/5/2009 6:29 PM, Martin Gainty wrote: what is the exact error and or stacktrace from console or log? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachr

Re: Struts 2 runtime variable names

2009-10-05 Thread Alex Siman
I use such approach: ... "%{'form.cvgcode' + #i}" ... "%{'form.cvglimit' + #i}" ... hisameer wrote: > > hello everyone, > > I need to change the s:select name parameter's value depending on the > index of the list. > > I have the following code : > > <%! int i=1;

Re: Struts 2 runtime variable names

2009-10-05 Thread Alex Siman
I use such approach: ... "%{'form.cvgcode' + #i}" ... "%{'form.cvglimit' + #i}" ... hisameer wrote: > > hello everyone, > > I need to change the s:select name parameter's value depending on the > index of the list. > > I have the following code : > > <%! int i=1;

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
Paul, I will try that..hidden field will be a java variable. So it should be like a boolean which toggles every user select Tab? Thanks .. Paul Benedict-2 wrote: > > SanJ, > > When a user selects the tab, modify a hidden form field that indicates > the tab selected. Do you know javascript?

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
SanJ, When a user selects the tab, modify a hidden form field that indicates the tab selected. Do you know javascript? That's what you would use. Paul On Mon, Oct 5, 2009 at 9:15 PM, SanJ.SANJAY wrote: > > Thanks Paul, > >                 I thought about that also but selecting a tab isn't alwa

Re: Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
Thanks Paul, I thought about that also but selecting a tab isn't always mean that I change the data inside that tab. Paul Benedict-2 wrote: > > SanJ, > > Can you track which tab the user selected? Perhaps you can set a > javascript variable when one is selected. The only do

Struts 2 runtime variable names

2009-10-05 Thread hisameer
hello everyone, I need to change the s:select name parameter's value depending on the index of the list. I have the following code : <%! int i=1; %> <%= i %> <% i++; %> All I want is if the list is in

Re: Struts 1 form data change

2009-10-05 Thread Paul Benedict
SanJ, Can you track which tab the user selected? Perhaps you can set a javascript variable when one is selected. The only down side here is that you'll have to hardcode which fields belong to which tab. Once you do that, you can do what you want. Paul On Mon, Oct 5, 2009 at 7:42 PM, SanJ.SANJAY

Struts 1 form data change

2009-10-05 Thread SanJ.SANJAY
I am using struts 1. I have Adobe SPRY tabs in my JSP. There are two separate set of fields/ data in each tab. So suppose someone changes fields in Tab 2 only and save the JSP, I do not want to save the tab 1 fields also because those fields are not changed. I was wondering if there is any way

RE: Access Denied error with Struts 2.1.8

2009-10-05 Thread Martin Gainty
what is the exact error and or stacktrace from console or log? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten w

Re: Problem adding sslext to Struts application

2009-10-05 Thread sonavor
Some additional information - I added some debug logging to monitor the URL requests passing through my Struts application servlet filter. For the HTTP requests I see my logs in the tomcat server log. For example I see - request URI: /MyWebApp/ and request URI: /MyWebWeb/sectPh.do When I c

Problem adding sslext to Struts application

2009-10-05 Thread sonavor
I am trying to provide http/https switching on some URL patterns in my web application. This web application is running on Tomcat 5.5 and is using Apache 2.2 as the web server. The version of Struts that I am using is 1.2.9. I have the Apache 2.2 web server setup with a self-signed certificate

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Musachy Barroso
did you try asking in the GAE forums? This is more of a GAE problem, so you have a better chance to find an answer there. musachy On Mon, Oct 5, 2009 at 12:58 PM, Dan R. Olsen III wrote: > I have been able to open the jar with WinZip so I don't think it is an > invalid jar. > > I am using Google

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
I have been able to open the jar with WinZip so I don't think it is an invalid jar. I am using Google App Engine so there is no catalina.policy. Also, since I am on Windows permissions are done a different way and I have given all the permissions my working 2.1.6 jar has but to no avail. On

RE: Access Denied error with Struts 2.1.8

2009-10-05 Thread Martin Gainty
1)check that the jar is located is a valid jar(can be opened by tomcat container) chances are if you cant open with winzip or 7zip its an invalid jar 2)in $CATALINA_HOME/conf/catalina.policy grant permissions for catalina container to read that jar grant codeBase "file:${catalina.home}/webapps

RE: Need immediate help - Struts, my job is stuck

2009-10-05 Thread Kawczynski, David
It looks like the help Paul gave was spot-on, and sufficient. If you have a focused question on one aspect of your code, please post it here. If you want someone to write or modify code for you, perhaps you should ask some co-workers, classmates, or the person who originally wrote the code. >

Re: Struts validation (validwhen)

2009-10-05 Thread Andre Rodrigues
Hi, validator-rules contents: Thanks again, André From: Martin Gainty To: acastanheira2...@yahoo.com.br Sent: Monday, October 5, 2009 3:19:25 PM Subject: RE: Struts validation (validwhen) please post contents of validator-rules.xml Martin Gainty

File upload in struts2 using Ajax.

2009-10-05 Thread sharath karnati
Hi All,      Anyone implemented struts2 file upload with Ajax? file upload will display progress bar for showing file upload status.      I tried below one but it is not working      http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/      Please send me links/docum

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
I am still looking for a solution to my problem. Does anyone have any other ideas. I'm not quite sure how to go about checking the security manager as mentioned below. I tried the 2.1.8.1 version but that didn't work. That's what I expected since it looks like 2.1.8.1 did not touch the struts2

File upload in struts2 using Ajax.

2009-10-05 Thread sharath karnati
Hi All,      Anyone implemented struts2 file upload with Ajax? file upload will display progress bar for showing file upload status.      I tried below one but it is not working      http://www.struts2.org/ajax-file-upload-in-struts2-using-ajax-file-upload-plugin/      Please send me links/docum

Re: Struts 1 new bean in form.

2009-10-05 Thread Eduard Neuwirt
Hi, perhaps a simple type : omg.alocation try with allocation (twin l) Regards Eduard SanJ.SANJAY schrieb: I am setting this new bena in form like this: private NewBean omg= new NewBean (); public NewBean getOmg() { return omg; } public void setOmg(Ne

Struts validation (validwhen)

2009-10-05 Thread acastanheira2001
Hi, I have a form with two fields, when one is null the other is required, so I need to check one against the other. I´ve done the config below, but nothing happens: test ((codigo == null) or (*this* != null)) mask ${alfa} test ((nome == null) or (*this* != null)) mask ${numInst}

Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-05 Thread phillips1021
Nils - thanks for the assistance. I did add the ".action" to the actionName and it now works in my Portlet Container (Pluto 2.0). For example: index.action /portlet/employe

Re: Struts 1 new bean in form.

2009-10-05 Thread Paul Benedict
Sanj, When you create a new bean in your code, you need to attach it to the request. Otherwise, how else will the page find it? Remember, all JSP expressions look into the request scope, session scope, or application scope or beans. Do something similar: request.setAttribute("omg", omg); And in

Re: Struts 1 new bean in form.

2009-10-05 Thread SanJ.SANJAY
I am setting this new bena in form like this: private NewBean omg= new NewBean (); public NewBean getOmg() { return omg; } public void setOmg(NewBean omg) { this.omg= omg; } Now I have the instance of bean (omg) in my form. So to call

Re: Struts 1 new bean in form.

2009-10-05 Thread Paweł Wielgus
Hi, where are You setting this bean into form? Try < bean:write name="myForm" property="omg" /> in jsp, it might be null. Best greetings, Paweł Wielgus. 2009/10/5 SanJ.SANJAY : > > Hello, > >       I am using Struts 1. I am having some issue with creating a new bean > inside the form. > > I have

Struts 1 new bean in form.

2009-10-05 Thread SanJ.SANJAY
Hello, I am using Struts 1. I am having some issue with creating a new bean inside the form. I have JSP with its form. Now I need to add a feature in my same JSP page. With this feature will come lots of new fields in JSP. So I thought instead of writing the fields and getter/setters in t

Re: Struts2 2.1.8 MD5 not found

2009-10-05 Thread mailtolouis2020-struts
Hi Wes, I just notice that I can select mirror from the download page, I tried many different mirrors site, but still the MD5 and PGP link still not work. Could you give me the mirror you use which is working for your? Thanks Louis From: "mailtolouis2020-str.

Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction

2009-10-05 Thread Nils-Helge Garli Hegvik
Yes, that was what I meant, and I worked just fine with me, using your web application (on Jetty/pluto). I haven't had time looking any more into it, but I'll keep you updated. Nils-H On Fri, Oct 2, 2009 at 3:40 PM, phillips1021 wrote: > > Nils - I'm not following how to implement your quick fix