Struts2 and html select tag problem
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[] deleteList = request.getParameterValues("deleteList"); my deleteList is null, which means i'm not able to retrieve data from the submitted CUD form. Any idea on this issue? -- View this message in context: http://www.nabble.com/Struts2-and-html-select-tag-problem-tp25763661p25763661.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 form data change
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 Benedict-2 wrote: >> >> 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 >>> 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 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 wrote: > > 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 I can distinguish that only TAB 2 > fields > are changed so that I can process only those fields in action instead > of > processing all the JSP form fields. > > I would appreciate some inputs! > > > -- > View this message in context: > http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Struts-1-form-data-change-tp25758644p25761964.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Struts-1-form-data-change-tp25758644p25762087.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem adding sslext to Struts application
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 over to Tomcat have to be redefined in that file. Only that URL patterns though...not all of the stuff you have in the mod_jk.conf file though. Once I fixed that problem my sslext managed HTTPS links all started working fine. sonavor wrote: > > 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 click on my link for user registration - > https://localhost/MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 > > I only get the error message > Not Found > The requested URL > /MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 was not > found on this server. > > So that is from the Apache 2.2 web server and the request is never sent to > my Tomcat 5.5 server for processing. There must be some additional > configuration that needs to be in place on the Apache to Tomcat connector. > > -sonavor > > > sonavor wrote: >> >> 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 and >> it works fine. In the Struts application I have added the necessary >> sslext.jar and the tld as well as modified the struts-config.xml (and >> necessary JSP sections). Everything compiles and all of the non-SSL >> pages work fine. >> >> The problem I am having is with the links and pages that I have set to >> require HTTPS. For example, the login screen. I set my login path in my >> Struts configuration file like this - >> >> >> >> >> In the JSP I am using the sslext:link tag like this - >> > styleClass="logintext">Login >> >> When the application is running the login link looks correct to me - >> https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 >> >> However, when I try the link I end up with this failure message - >> Not Found >> The requested URL >> /MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not >> found on this server. >> >> I can change the Struts config action definition to this - >> >> >> >> >> and the login link will change to - >> http://localhost/MyWebApp/secure/userLogin.do >> >> That login works (but it uses HTTP and not HTTPS). >> >> Does anyone know why the Struts action path is not being found when HTTPS >> is turned on? >> >> Thanks, >> -sonavor >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25762561.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 and TestNG
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 resources > on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I > am also using annotations to declare my actions. > > -- View this message in context: http://www.nabble.com/Struts2-and-TestNG-tp25762448p25762551.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 runtime variable names
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}" > ... > "%{'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; %> >> >> >> >> >> > align="right"> >> >> <%= i >> %>> headerKey="0" headerValue="Please Select" >> required="true" list="cvgCode" cssStyle="width:150px" >> /> >> > align="center">> onchange="this.form.submit()" headerKey="0" >> headerValue="Please Select" required="true" >> list="cvglimit" cssStyle="width:150px" /> >> >> <% i++; %> >> >> >> >> >> All I want is if the list is in the first level the name should be >> form.cvgcode1 and so on. I tried using declaring a variable i and >> incrementing it everytime but its not working. The value always being set >> is form.cvgcodenull. Please advise me what should I do? >> > > -- View this message in context: http://www.nabble.com/Struts-2-runtime-variable-names-tp25761232p25762545.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 and TestNG
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 using annotations to declare my actions.
Re: Struts 2 runtime variable names
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: > > 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; %> > > > > > align="right"> > > <%= i > %> headerKey="0" headerValue="Please Select" > required="true" list="cvgCode" cssStyle="width:150px" > /> > align="center">http://struts.apache.org/2.1.8/docs/iterator.html > onchange="this.form.submit()" headerKey="0" > headerValue="Please Select" required="true" > list="cvglimit" cssStyle="width:150px" /> > > <% i++; %> > > > > > All I want is if the list is in the first level the name should be > form.cvgcode1 and so on. I tried using declaring a variable i and > incrementing it everytime but its not working. The value always being set > is form.cvgcodenull. Please advise me what should I do? > -- View this message in context: http://www.nabble.com/Struts-2-runtime-variable-names-tp25761232p25762277.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Access Denied error with Struts 2.1.8
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 Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 5 Oct 2009 13:58:02 -0600 From: danec...@gmail.com To: user@struts.apache.org Subject: Re: Access Denied error with Struts 2.1.8 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 10/5/2009 1:39 PM, Martin Gainty wrote: 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/war/WEB-INF/lib/struts2-core-2.1.8.jar" { permission java.security.AllPermission; }; 3)make sure the user running tomcat has read and execute access to the file e.g. ls -al ${catalina.home}/webapps/war/WEB-INF/lib/struts2-core-2.1.8.jar" $ ls -al struts2-core-2.1.8.jar -- 1 foouser foopasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar $ chmod +rx struts2-core-2.1.8.jar $ ls -al struts2-core-2.1.8.jar -r-xr-xr-x 1 Administrator mkpasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar foouser can now read and execute struts2-core-2.1.8.jar 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 wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 5 Oct 2009 12:41:34 -0600 From: danec...@gmail.com To: user@struts.apache.org Subject: Re: Access Denied error with Struts 2.1.8 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 core jar file. On 10/2/2009 2:01 AM, Allen Lee wrote: It kind of looks like a security manager / policy permissions issue to me from the access denied message. Like your app server has a grant codebase set for the old struts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen IIIwrote: When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I have checked the file permissions on the struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under 2.1.6 it works just fine. Any ideas? The error and stack trace I get are below. HTTP ERROR: 500 access denied (java.io.FilePermission jar:file:\C:\Documents and Settings\...\war\WEB-INF\lib\struts2-core-2.1.8.jar read) RequestURI=/success Caused by: java.security.AccessControlE
Re: Struts 2 runtime variable names
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; %> > > > > > align="right"> > > <%= i > %> headerKey="0" headerValue="Please Select" > required="true" list="cvgCode" cssStyle="width:150px" > /> > align="center"> onchange="this.form.submit()" headerKey="0" > headerValue="Please Select" required="true" > list="cvglimit" cssStyle="width:150px" /> > > <% i++; %> > > > > > All I want is if the list is in the first level the name should be > form.cvgcode1 and so on. I tried using declaring a variable i and > incrementing it everytime but its not working. The value always being set > is form.cvgcodenull. Please advise me what should I do? > -- View this message in context: http://www.nabble.com/Struts-2-runtime-variable-names-tp25761232p25762277.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2 runtime variable names
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; %> >0"> > > > > > > <%= i %> name="% > {'form.cvgcode'+i}" onchange="this.form.submit()" > headerKey="0" headerValue="Please Select" > required="true" list="cvgCode" cssStyle="width:150px" /> > name="%{'form.cvglimit'+i}" > onchange="this.form.submit()" headerKey="0" > headerValue="Please Select" required="true" > list="cvglimit" cssStyle="width:150px" /> > > <% i++; %> > > > > > All I want is if the list is in the first level the name should be > form.cvgcode1 and so on. I tried using declaring a variable i and > incrementing it everytime but its not working. The value always being set > is form.cvgcodenull. Please advise me what should I do? > -- View this message in context: http://www.nabble.com/Struts-2-runtime-variable-names-tp25761232p25762245.html Sent from the Struts - User mailing list archive at Nabble.com.
Re: Struts 1 form data change
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? 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 >> 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 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 wrote: 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 I can distinguish that only TAB 2 fields are changed so that I can process only those fields in action instead of processing all the JSP form fields. I would appreciate some inputs! -- View this message in context: http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Struts-1-form-data-change-tp25758644p25761964.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-1-form-data-change-tp25758644p25762087.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 form data change
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 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 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 wrote: >>> >>> 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 I can distinguish that only TAB 2 >>> fields >>> are changed so that I can process only those fields in action instead of >>> processing all the JSP form fields. >>> >>> I would appreciate some inputs! >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Struts-1-form-data-change-tp25758644p25761964.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 form data change
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 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 wrote: >> >> 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 I can distinguish that only TAB 2 >> fields >> are changed so that I can process only those fields in action instead of >> processing all the JSP form fields. >> >> I would appreciate some inputs! >> >> >> -- >> View this message in context: >> http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-1-form-data-change-tp25758644p25761964.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 2 runtime variable names
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 the first level the name should be form.cvgcode1 and so on. I tried using declaring a variable i and incrementing it everytime but its not working. The value always being set is form.cvgcodenull. Please advise me what should I do? -- View this message in context: http://www.nabble.com/Struts-2-runtime-variable-names-tp25761232p25761232.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 form data change
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 wrote: > > 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 I can distinguish that only TAB 2 fields > are changed so that I can process only those fields in action instead of > processing all the JSP form fields. > > I would appreciate some inputs! > > > -- > View this message in context: > http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 1 form data change
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 I can distinguish that only TAB 2 fields are changed so that I can process only those fields in action instead of processing all the JSP form fields. I would appreciate some inputs! -- View this message in context: http://www.nabble.com/Struts-1-form-data-change-tp25758644p25758644.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Access Denied error with Struts 2.1.8
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 wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 5 Oct 2009 13:58:02 -0600 > From: danec...@gmail.com > To: user@struts.apache.org > Subject: Re: Access Denied error with Struts 2.1.8 > > 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 10/5/2009 1:39 PM, Martin Gainty wrote: > > 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/war/WEB-INF/lib/struts2-core-2.1.8.jar" > > { > > permission java.security.AllPermission; > > }; > > > > 3)make sure the user running tomcat has read and execute access to the file > > e.g. > > ls -al ${catalina.home}/webapps/war/WEB-INF/lib/struts2-core-2.1.8.jar" > > > > $ ls -al struts2-core-2.1.8.jar > > -- 1 foouser foopasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar > > > > $ chmod +rx struts2-core-2.1.8.jar > > > > $ ls -al struts2-core-2.1.8.jar > > -r-xr-xr-x 1 Administrator mkpasswd 11142686 Oct 4 21:58 > > struts2-core-2.1.8.jar > > > > foouser can now read and execute struts2-core-2.1.8.jar > > 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 wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > > destinataire prévu, nous te demandons avec bonté que pour satisfaire > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > > de ceci est interdite. Ce message sert à l'information seulement et n'aura > > pas n'importe quel effet légalement obligatoire. Étant donné que les email > > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > > aucune responsabilité pour le contenu fourni. > > > > > > > > > > > >> Date: Mon, 5 Oct 2009 12:41:34 -0600 > >> From: danec...@gmail.com > >> To: user@struts.apache.org > >> Subject: Re: Access Denied error with Struts 2.1.8 > >> > >> 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 core jar file. > >> > >> On 10/2/2009 2:01 AM, Allen Lee wrote: > >> > >>> It kind of looks like a security manager / policy permissions issue to > >>> me from the access denied message. Like your app server has a grant > >>> codebase set for the old struts jar but not the new one. I'm not sure > >>> how to set the grant codebase perms on Jetty though (jetty.policy?). > >>> > >>> On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III > >>> wrote: > >>> > >>> > When I am trying to run my Struts application under 2.1.8 I am getting an > "Access Denied" error. I have checked the file permissions on the > struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under > 2.1.6 > it works just fine. Any ideas? The error and
Re: Problem adding sslext to Struts application
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 click on my link for user registration - https://localhost/MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 I only get the error message Not Found The requested URL /MyWebApp/register.do;jsessionid=6A98EBF46D98CEA31ADF9332A1CB8651 was not found on this server. So that is from the Apache 2.2 web server and the request is never sent to my Tomcat 5.5 server for processing. There must be some additional configuration that needs to be in place on the Apache to Tomcat connector. -sonavor sonavor wrote: > > 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 and > it works fine. In the Struts application I have added the necessary > sslext.jar and the tld as well as modified the struts-config.xml (and > necessary JSP sections). Everything compiles and all of the non-SSL pages > work fine. > > The problem I am having is with the links and pages that I have set to > require HTTPS. For example, the login screen. I set my login path in my > Struts configuration file like this - > > > > > In the JSP I am using the sslext:link tag like this - > styleClass="logintext">Login > > When the application is running the login link looks correct to me - > https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 > > However, when I try the link I end up with this failure message - > Not Found > The requested URL > /MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not > found on this server. > > I can change the Struts config action definition to this - > > > > > and the login link will change to - > http://localhost/MyWebApp/secure/userLogin.do > > That login works (but it uses HTTP and not HTTPS). > > Does anyone know why the Struts action path is not being found when HTTPS > is turned on? > > Thanks, > -sonavor > > > > > -- View this message in context: http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25757022.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Problem adding sslext to Struts application
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 and it works fine. In the Struts application I have added the necessary sslext.jar and the tld as well as modified the struts-config.xml (and necessary JSP sections). Everything compiles and all of the non-SSL pages work fine. The problem I am having is with the links and pages that I have set to require HTTPS. For example, the login screen. I set my login path in my Struts configuration file like this - In the JSP I am using the sslext:link tag like this - Login When the application is running the login link looks correct to me - https://localhost/MyWebApp/secure/userLogin.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 However, when I try the link I end up with this failure message - Not Found The requested URL /MyWebApp/register.do;jsessionid=263BFC7F3E6E33BAAC22A28723763FA4 was not found on this server. I can change the Struts config action definition to this - and the login link will change to - http://localhost/MyWebApp/secure/userLogin.do That login works (but it uses HTTP and not HTTPS). Does anyone know why the Struts action path is not being found when HTTPS is turned on? Thanks, -sonavor -- View this message in context: http://www.nabble.com/Problem-adding-sslext-to-Struts-application-tp25756892p25756892.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Access Denied error with Struts 2.1.8
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 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 10/5/2009 1:39 PM, Martin Gainty wrote: >> >> 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/war/WEB-INF/lib/struts2-core-2.1.8.jar" >> { >> permission java.security.AllPermission; >> }; >> >> 3)make sure the user running tomcat has read and execute access to the >> file e.g. >> ls -al ${catalina.home}/webapps/war/WEB-INF/lib/struts2-core-2.1.8.jar" >> >> $ ls -al struts2-core-2.1.8.jar >> -- 1 foouser foopasswd 11142686 Oct 4 21:58 >> struts2-core-2.1.8.jar >> >> $ chmod +rx struts2-core-2.1.8.jar >> >> $ ls -al struts2-core-2.1.8.jar >> -r-xr-xr-x 1 Administrator mkpasswd 11142686 Oct 4 21:58 >> struts2-core-2.1.8.jar >> >> foouser can now read and execute struts2-core-2.1.8.jar >> 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 wir hoeflich um eine Mitteilung. Jede unbefugte >> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht >> dient lediglich dem Austausch von Informationen und entfaltet keine >> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. >> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le >> destinataire prévu, nous te demandons avec bonté que pour satisfaire >> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie >> de ceci est interdite. Ce message sert à l'information seulement et n'aura >> pas n'importe quel effet légalement obligatoire. Étant donné que les email >> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter >> aucune responsabilité pour le contenu fourni. >> >> >> >> >> >>> >>> Date: Mon, 5 Oct 2009 12:41:34 -0600 >>> From: danec...@gmail.com >>> To: user@struts.apache.org >>> Subject: Re: Access Denied error with Struts 2.1.8 >>> >>> 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 core jar file. >>> >>> On 10/2/2009 2:01 AM, Allen Lee wrote: >>> It kind of looks like a security manager / policy permissions issue to me from the access denied message. Like your app server has a grant codebase set for the old struts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: > > When I am trying to run my Struts application under 2.1.8 I am getting > an > "Access Denied" error. I have checked the file permissions on the > struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under > 2.1.6 > it works just fine. Any ideas? The error and stack trace I get are > below. > > > HTTP ERROR: 500 > > access denied (java.io.FilePermission jar:file:\C:\Documents and > Settings\...\war\WEB-INF\lib\struts2-core-2.1.8.jar read) > > RequestURI=/success > > > Caused by: > > java.security.AccessControlException: access denied > (java.io.FilePermission > jar:file:\C:\Documents and Settings\DOLSEN\My > > Documents\Eclipse3.5Projects\Temp\war\WEB-INF\lib\struts2-core-2.1.8.jar > read) > at > > java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) > at > > java.security.AccessController.checkPermission(AccessController.java:546) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > at > > com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) > at > java.lang.SecurityManager.checkRead(SecurityManager.java:871) > at java.util.zip.ZipFile.(ZipFile.java:109) > at java.util.jar.JarFile.(JarFile.java:1
Re: Access Denied error with Struts 2.1.8
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 10/5/2009 1:39 PM, Martin Gainty wrote: 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/war/WEB-INF/lib/struts2-core-2.1.8.jar" { permission java.security.AllPermission; }; 3)make sure the user running tomcat has read and execute access to the file e.g. ls -al ${catalina.home}/webapps/war/WEB-INF/lib/struts2-core-2.1.8.jar" $ ls -al struts2-core-2.1.8.jar -- 1 foouser foopasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar $ chmod +rx struts2-core-2.1.8.jar $ ls -al struts2-core-2.1.8.jar -r-xr-xr-x 1 Administrator mkpasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar foouser can now read and execute struts2-core-2.1.8.jar 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 wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 5 Oct 2009 12:41:34 -0600 From: danec...@gmail.com To: user@struts.apache.org Subject: Re: Access Denied error with Struts 2.1.8 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 core jar file. On 10/2/2009 2:01 AM, Allen Lee wrote: It kind of looks like a security manager / policy permissions issue to me from the access denied message. Like your app server has a grant codebase set for the old struts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I have checked the file permissions on the struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under 2.1.6 it works just fine. Any ideas? The error and stack trace I get are below. HTTP ERROR: 500 access denied (java.io.FilePermission jar:file:\C:\Documents and Settings\...\war\WEB-INF\lib\struts2-core-2.1.8.jar read) RequestURI=/success Caused by: java.security.AccessControlException: access denied (java.io.FilePermission jar:file:\C:\Documents and Settings\DOLSEN\My Documents\Eclipse3.5Projects\Temp\war\WEB-INF\lib\struts2-core-2.1.8.jar read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.util.zip.ZipFile.(ZipFile.java:109) at java.util.jar.JarFile.(JarFile.java:133) at java.util.jar.JarFile.(JarFile.java:70) at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.needsReloading(FileManager.java:264) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:70) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:324) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) at com
RE: Access Denied error with Struts 2.1.8
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/war/WEB-INF/lib/struts2-core-2.1.8.jar" { permission java.security.AllPermission; }; 3)make sure the user running tomcat has read and execute access to the file e.g. ls -al ${catalina.home}/webapps/war/WEB-INF/lib/struts2-core-2.1.8.jar" $ ls -al struts2-core-2.1.8.jar -- 1 foouser foopasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar $ chmod +rx struts2-core-2.1.8.jar $ ls -al struts2-core-2.1.8.jar -r-xr-xr-x 1 Administrator mkpasswd 11142686 Oct 4 21:58 struts2-core-2.1.8.jar foouser can now read and execute struts2-core-2.1.8.jar 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 wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 5 Oct 2009 12:41:34 -0600 > From: danec...@gmail.com > To: user@struts.apache.org > Subject: Re: Access Denied error with Struts 2.1.8 > > 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 core jar file. > > On 10/2/2009 2:01 AM, Allen Lee wrote: > > It kind of looks like a security manager / policy permissions issue to > > me from the access denied message. Like your app server has a grant > > codebase set for the old struts jar but not the new one. I'm not sure > > how to set the grant codebase perms on Jetty though (jetty.policy?). > > > > On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: > > > >> When I am trying to run my Struts application under 2.1.8 I am getting an > >> "Access Denied" error. I have checked the file permissions on the > >> struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under 2.1.6 > >> it works just fine. Any ideas? The error and stack trace I get are below. > >> > >> > >>HTTP ERROR: 500 > >> > >> access denied (java.io.FilePermission jar:file:\C:\Documents and > >> Settings\...\war\WEB-INF\lib\struts2-core-2.1.8.jar read) > >> > >> RequestURI=/success > >> > >> > >> Caused by: > >> > >> java.security.AccessControlException: access denied (java.io.FilePermission > >> jar:file:\C:\Documents and Settings\DOLSEN\My > >> Documents\Eclipse3.5Projects\Temp\war\WEB-INF\lib\struts2-core-2.1.8.jar > >> read) > >> at > >> java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) > >> at > >> java.security.AccessController.checkPermission(AccessController.java:546) > >> at > >> java.lang.SecurityManager.checkPermission(SecurityManager.java:532) > >> at > >> com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) > >> at java.lang.SecurityManager.checkRead(SecurityManager.java:871) > >> at java.util.zip.ZipFile.(ZipFile.java:109) > >> at java.util.jar.JarFile.(JarFile.java:133) > >> at java.util.jar.JarFile.(JarFile.java:70) > >> at > >> com.opensymphony.xwork2.util.FileManager$JarEntryRevision.needsReloading(FileManager.java:264) > >> at > >> com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:70) > >> at > >> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:324) > >> at > >> org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) > >> at > >> com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) > >> at > >> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) > >>
RE: Need immediate help - Struts, my job is stuck
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. > -Original Message- > From: kaushal.sharma [mailto:kaushalksharma.mt...@gmail.com] > Sent: Sunday, October 04, 2009 4:52 PM > To: user@struts.apache.org > Subject: Re: Need immediate help - Struts, my job is stuck > > > Hi Paul, > > Thanks for your prompt reply. i can understand you were in hurry for > something important. not a prob. > > But as i am new to struts, i need suggestions with some code > help. Hope you > can help me at this level. > > > > -Thanks & Regards > Kaushal K. Sharma > > > > > > > Paul Benedict-2 wrote: > > > > Kaushal, > > > > I don't have time to read all the source you posted, but here's my > > answers to your direct questions: > > > > First : I need to populate the values from database to > this jsp page > > during the opening of this page > > > >>> You need to have an action mapping for this. Something like > >>> /loadmydata.do > > > > Second : how can I add row to this table dynamically so > that I can enter > > a > > few records and save the data to the database. > > > >>> You can use JSP to loop over a list of an > array, and produce > >>> new and elements. > > > > Third : When I save the records the values must go to > ActionServlet, > > where > > I need them all in an ArrayList. > > > >>> You need a second action mapping for this. Remember this > pattern: Use > >>> one action for loading data, another action for saving the data. > > > > Paul > > > > On Sun, Oct 4, 2009 at 6:40 AM, kaushal.sharma > > wrote: > >> > >> Hi, > >> > >> Sorry to be late here, but i need an immediate help. I am > new to struts > >> and > >> recently put into a struts project. > >> > >> FYI > >> > >> I have a jsp file, where I am getting values from SQL SERVER 2000 > >> database > >> using an Action Class and A Form Bean. > >> This jsp view is as a tabular format, where data is populated. > >> Selectbox text checkbox checkbox > text > >> text cancel_image > >> > >> This page having operations like cancel_row / save_table > / add_row > >> > >> First : I need to populate the values from database to > this jsp page > >> during the opening of this page > >> Second : how can I add row to this table dynamically so > that I can enter > >> a > >> few records and save the data to the database. > >> Third : When I save the records the values must go to > ActionServlet, > >> where > >> I need them all in an ArrayList. > >> > >> Kindly see the code below. > >> > >> -Thanks & Regards, > >> > >> > >> // JSP > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/Need-immediate-help---Struts%2C-my-job-i s-stuck-tp25737228p25742091.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts validation (validwhen)
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 __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 5 Oct 2009 10:53:45 -0700 > From: acastanheira2...@yahoo.com.br > To: user@struts.apache.org > Subject: Struts validation (validwhen) > > > 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: > > key="cab.nome"/> test > ((codigo == null) or (*this* != null)) > mask ${alfa} > > key="cab.codigo"/> test > ((nome == null) or (*this* != null)) > mask ${numInst} > -- > View this message in context: > http://www.nabble.com/Struts-validation-%28validwhen%29-tp25754823p25754823.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > Hotmail: Powerful Free email with security by Microsoft. Get it now.
File upload in struts2 using Ajax.
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/documention for doing this. Thanks in advance. Regards, Sharath.
Re: Access Denied error with Struts 2.1.8
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 core jar file. On 10/2/2009 2:01 AM, Allen Lee wrote: It kind of looks like a security manager / policy permissions issue to me from the access denied message. Like your app server has a grant codebase set for the old struts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I have checked the file permissions on the struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under 2.1.6 it works just fine. Any ideas? The error and stack trace I get are below. HTTP ERROR: 500 access denied (java.io.FilePermission jar:file:\C:\Documents and Settings\...\war\WEB-INF\lib\struts2-core-2.1.8.jar read) RequestURI=/success Caused by: java.security.AccessControlException: access denied (java.io.FilePermission jar:file:\C:\Documents and Settings\DOLSEN\My Documents\Eclipse3.5Projects\Temp\war\WEB-INF\lib\struts2-core-2.1.8.jar read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.util.zip.ZipFile.(ZipFile.java:109) at java.util.jar.JarFile.(JarFile.java:133) at java.util.jar.JarFile.(JarFile.java:70) at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.needsReloading(FileManager.java:264) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:70) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:324) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:819) at org.apache.struts2.dispatcher.ng.PrepareOperations.createActionContext(PrepareOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:78) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) /Powered by Jetty://
File upload in struts2 using Ajax.
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/documention for doing this. Thanks in advance. Regards, Sharath.
Re: Struts 1 new bean in form.
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(NewBean omg) { this.omg= omg; } Now I have the instance of bean (omg) in my form. So to call the properties inside omg, I call in jsp like this for which i get server error saying no getter method for the bean Paweł Wielgus wrote: 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 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 the same form, I will create a new bean where I will define all these new fields and getters/setters and then I will instantiate that bean in my form and read those fields in JSP. But JSP is not able to read thos fields. The part of code is below. JSP: OSP: This si only one field, but similarly there are set of other fields which I have not mentioned. I have a new bean with getters/setters for these new set of fields and I instantiate that bean in my form like this: private NewBean omg= new NewBean (); public NewBean getOmg() { return omg; } public void setOmg(NewBean omg) { this.omg= omg; } NewBean.java : private String alocation = ""; public String getAlocation() { return alocationOSP; } public void setAlocation(String alocationOSP) { this.alocationOSP = alocationOSP; } Any pointers what could be the issue here? The error message I am getting is: No getter method found for this bean omg.alocation -- View this message in context: http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753281.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts validation (validwhen)
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} -- View this message in context: http://www.nabble.com/Struts-validation-%28validwhen%29-tp25754823p25754823.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction
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/employeeFormPortlet.jsp Bruce 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 -- View this message in context: http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25754728.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 new bean in form.
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 your JSP you can do: Paul On Mon, Oct 5, 2009 at 11:19 AM, SanJ.SANJAY wrote: > > > > 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 the properties inside omg, I call in jsp like this > > > > for which i get server error saying no getter method for the bean > > > > Paweł Wielgus wrote: >> >> 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 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 the same form, I will create >>> a >>> new bean where I will define all these new fields and getters/setters and >>> then I will instantiate that bean in my form and read those fields in >>> JSP. >>> But JSP is not able to read thos fields. The part of code is below. >>> >>> JSP: >>> >>> >>> >>> OSP: >>> >>> >>> >>> >>> >>> >>> This si only one field, but similarly there are set of other fields which >>> I >>> have not mentioned. >>> >>> I have a new bean with getters/setters for these new set of fields and I >>> instantiate that bean in my form like this: >>> >>> private NewBean omg= new NewBean (); >>> >>> public NewBean getOmg() { >>> return omg; >>> } >>> >>> >>> public void setOmg(NewBean omg) { >>> this.omg= omg; >>> } >>> >>> NewBean.java : >>> >>> private String alocation = ""; >>> public String getAlocation() { >>> return alocationOSP; >>> } >>> >>> public void setAlocation(String alocationOSP) { >>> this.alocationOSP = alocationOSP; >>> } >>> Any pointers what could be the issue here? >>> >>> The error message I am getting is: >>> No getter method found for this bean omg.alocation >>> -- >>> View this message in context: >>> http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753281.html >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- > View this message in context: > http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753802.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 new bean in form.
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 the properties inside omg, I call in jsp like this for which i get server error saying no getter method for the bean Paweł Wielgus wrote: > > 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 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 the same form, I will create >> a >> new bean where I will define all these new fields and getters/setters and >> then I will instantiate that bean in my form and read those fields in >> JSP. >> But JSP is not able to read thos fields. The part of code is below. >> >> JSP: >> >> >> >> OSP: >> >> >> >> >> >> >> This si only one field, but similarly there are set of other fields which >> I >> have not mentioned. >> >> I have a new bean with getters/setters for these new set of fields and I >> instantiate that bean in my form like this: >> >> private NewBean omg= new NewBean (); >> >> public NewBean getOmg() { >> return omg; >> } >> >> >> public void setOmg(NewBean omg) { >> this.omg= omg; >> } >> >> NewBean.java : >> >> private String alocation = ""; >> public String getAlocation() { >> return alocationOSP; >> } >> >> public void setAlocation(String alocationOSP) { >> this.alocationOSP = alocationOSP; >> } >> Any pointers what could be the issue here? >> >> The error message I am getting is: >> No getter method found for this bean omg.alocation >> -- >> View this message in context: >> http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753281.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753802.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 1 new bean in form.
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 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 the same form, I will create a > new bean where I will define all these new fields and getters/setters and > then I will instantiate that bean in my form and read those fields in JSP. > But JSP is not able to read thos fields. The part of code is below. > > JSP: > > > > OSP: > > > > > > > This si only one field, but similarly there are set of other fields which I > have not mentioned. > > I have a new bean with getters/setters for these new set of fields and I > instantiate that bean in my form like this: > > private NewBean omg= new NewBean (); > > public NewBean getOmg() { > return omg; > } > > > public void setOmg(NewBean omg) { > this.omg= omg; > } > > NewBean.java : > > private String alocation = ""; > public String getAlocation() { > return alocationOSP; > } > > public void setAlocation(String alocationOSP) { > this.alocationOSP = alocationOSP; > } > Any pointers what could be the issue here? > > The error message I am getting is: > No getter method found for this bean omg.alocation > -- > View this message in context: > http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753281.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 1 new bean in form.
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 the same form, I will create a new bean where I will define all these new fields and getters/setters and then I will instantiate that bean in my form and read those fields in JSP. But JSP is not able to read thos fields. The part of code is below. JSP: OSP: This si only one field, but similarly there are set of other fields which I have not mentioned. I have a new bean with getters/setters for these new set of fields and I instantiate that bean in my form like this: private NewBean omg= new NewBean (); public NewBean getOmg() { return omg; } public void setOmg(NewBean omg) { this.omg= omg; } NewBean.java : private String alocation = ""; public String getAlocation() { return alocationOSP; } public void setAlocation(String alocationOSP) { this.alocationOSP = alocationOSP; } Any pointers what could be the issue here? The error message I am getting is: No getter method found for this bean omg.alocation -- View this message in context: http://www.nabble.com/Struts-1-new-bean-in-form.-tp25753281p25753281.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 2.1.8 MD5 not found
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...@yahoo.com" To: Struts Users Mailing List Sent: Fri, October 2, 2009 4:24:16 PM Subject: Re: Struts2 2.1.8 MD5 not found http://www.apache.org/dist/struts/binaries/struts-2.1.8-all.zip.md5 http://www.apache.org/dist/struts/binaries/struts-2.1.8-all.zip.asc From: Wes Wannemacher To: Struts Users Mailing List Sent: Friday, October 2, 2009 4:05:39 PM Subject: Re: Struts2 2.1.8 MD5 not found Can you tell which server? I'm guessing that it is a mirror that hasn't sync'd properly yet. -Wes On Fri, Oct 2, 2009 at 11:00 AM, wrote: > Hello, > > Click on the MD5 link for Struts 2.1.8 in > http://struts.apache.org/download.cgi#struts218 > > get this : > Not Found > The requested URL /dist/struts/binaries/struts-2.1.8-all.zip.md5 was not > found on this server. > > Regards > Louis -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Problem Using Struts 2.1.8 Portlet Plugin With redirectAction
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. Do you mean I > should do this: > > > index.action > > > I tried the above and it didn't work for me. > > Thank you for researching this issue so quickly. We would like to move to > Struts 2.1.8 (we are still on 2.0.14 for our Struts 2 applications that are > also portlets. > > Bruce > > > Definitively a bug somewhere. A quick fix is to add ".action" in the > configuration for the redirectAction result. > -- > View this message in context: > http://www.nabble.com/Problem-Using-Struts-2.1.8-Portlet-Plugin-With-redirectAction-tp25702898p25716027.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org