ajax and struts 2
I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] s:url escaping '' between params
Hi I'm facing a very annoying problem with s:url. For some reason it is encoding the '' between the params to amp; Here's my code s:url action=getfilebrowserbody encode=false id=filebrowserurl s:param name=currentdirectory value=strcurrentdir / s:param name=rootdirectory value=strrootdir / /s:url s:property escape=false value=filebrowserurl / The above code outputs the url with parameters and '' encoded What could be the reason? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wrong Content Type text/plain
hello, we had a similar problem and we solved it by using Tiles servlet instead of Tiles listener. Cheers, Teemu Torsten Römer wrote: I added Tiles to the struts2-blank-2.0.6 example webapp and started to work on my application. All works just fine on my Linux/Tomcat 5.5 development box but when I deploy the app to the provider's Linux/Tomcat 5.5 webspace the content type is suddenly text/plain instead of text/html and all I see is the HTML source. The funny thing is, that when an action is executed through s:action namespace=/test name=home executeResult=true/s:action the content type is text/html and the page displays correctly, but when the same action is executed through s:url action= Home the above described problem occurs. Setting something like %@ page language=java contentType=text/html; charset=ISO-8859-1 % in the Tiles template and even the subpages seems to be ignored. Calling a JSP directly works fine. -- View this message in context: http://www.nabble.com/Wrong-Content-Type-text-plain-tf3559135.html#a9954129 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] s:url escaping '' between params
I tried your code,but it worked fine! On 4/12/07, Manu Mahajan [EMAIL PROTECTED] wrote: Hi I'm facing a very annoying problem with s:url. For some reason it is encoding the '' between the params to amp; Here's my code s:url action=getfilebrowserbody encode=false id=filebrowserurl s:param name=currentdirectory value=strcurrentdir / s:param name=rootdirectory value=strrootdir / /s:url s:property escape=false value=filebrowserurl / The above code outputs the url with parameters and '' encoded What could be the reason? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 woes
2007/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: Also what supersedes the controllerClass tag? preparer attribute, and it must implement the ViewPreparer interface. Anyway this kind of question should be asked in the Tiles mailing list: http://tiles.apache.org/mail.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] Using struts-tags and Exception initializing TldLocationsCache
Hi, I'm trying to set up the Struts 2.0.6 example blank application using the J4 distribution and i'm having problems using struts-tags. Any jsp that uses this tag library (that is all jsp's that include the line %@ taglib prefix=s uri=/struts-tags %) give compilation errors (see below). I can't find any tld files in the struts blank application. Is this normal? Could anyone explain to me how the tag libraries are loaded in Struts 2.0 where the tld files are (i have'nt found them in the struts core jar either) and whether they should continue working with the j4 distribution. I'm running the application on Tomcat 4.1 with jdk 1.4.2. When compilation fails i get the message Exception initializing TldLocationsCache: in the Tomcat logs but no further information is given. Here's the compilation error: javax.servlet.ServletException: Archivo JSP /struts-tags no encontrado at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:144) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:138) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2459) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:132) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:126) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:595) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:432) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:954) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) Thanks, Max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Using struts-tags and Exception initializing TldLocationsCache
Hi Max On 12/04/07, Max Pimm [EMAIL PROTECTED] wrote: Hi, I'm trying to set up the Struts 2.0.6 example blank application using the J4 distribution and i'm having problems using struts-tags. Any jsp that uses this tag library (that is all jsp's that include the line %@ taglib prefix=s uri=/struts-tags %) give compilation errors (see below). I can't find any tld files in the struts blank application. Is this normal? Could anyone explain to me how the tag libraries are loaded in Struts 2.0 where the tld files are (i have'nt found them in the struts core jar either) The TLD file you're looking for (struts-tags.tld) is located in the struts core jar, under the META-INF folder. HTH, alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts 2 load problems?
I believe there is an open issue for localization, which is holding up the 2.0.8 release. Hopefully this will resolve the problem. Don On 4/10/07, Jeff C [EMAIL PROTECTED] wrote: This is an update to a queston I asked last week..with a little more info this time. We noticed last week the s:text calls would sometimes fail in our jsp files (we are running on tomcat 5.5 and using struts 2.0.6). Today, we finally tracked it down to a load issue. When there is light traffic on the server, everything is fine. When the server is under load, the s:text lookups fail. The rest of the logic works fine (i.e. the action itself does what its supposed to do). The only problem is the s:text failures, which cause the key to be displayed instead of the label, as if the property key lookup failed. The s:text works inside the i18n tag just fine..it only seems to fail when looking for properties files looking up the action class heirarchy. My first thought was that maybe it was an ognl or freemarker issue. I tried running with the 2 jars we were using with webwork, but still had the problem. I tried Struts 2.0.5 and still saw the problem. Has anyone else run into this? Its definitely a load related issue. When i am the only one hitting the machine, s:text calls work just fine. When i hit the server with JMeter load tests, the s:text starts failing. Stop the load test, and s:text once again works. Thought i would try to ask again if anyone else has seen this before, as i've spent 4 weeks upgrading our code, and now it appears to have been for nothing. (we did roll our site back to webwork 2.2.2, and of course the problem went away). Thoughts? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: autocompleter not working on Firefox 1.5 on Linux
Hi Musachy, I rebooted my linux machine for an unrelated reason and now cannot reproduce the issue. It is working now. Sorry for the bother. Regards, Rohit
Re: [s2] s:url escaping '' between params
I'm not sure that I understand you correctly, but has to be encoded to amp; in html. A html link http://bla?a=bc=d is invalid, the proper link would be http://bla?a=bamp;c=d regards Leon On 4/12/07, Manu Mahajan [EMAIL PROTECTED] wrote: Hi I'm facing a very annoying problem with s:url. For some reason it is encoding the '' between the params to amp; Here's my code s:url action=getfilebrowserbody encode=false id=filebrowserurl s:param name=currentdirectory value=strcurrentdir / s:param name=rootdirectory value=strrootdir / /s:url s:property escape=false value=filebrowserurl / The above code outputs the url with parameters and '' encoded What could be the reason? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] Using struts-tags and Exception initializing TldLocationsCache
I'm getting this error on jetty from time to time, and cleaning up and re-running seems to work musachy On 4/12/07, Alexis Pigeon [EMAIL PROTECTED] wrote: Hi Max On 12/04/07, Max Pimm [EMAIL PROTECTED] wrote: Hi, I'm trying to set up the Struts 2.0.6 example blank application using the J4 distribution and i'm having problems using struts-tags. Any jsp that uses this tag library (that is all jsp's that include the line %@ taglib prefix=s uri=/struts-tags %) give compilation errors (see below). I can't find any tld files in the struts blank application. Is this normal? Could anyone explain to me how the tag libraries are loaded in Struts 2.0 where the tld files are (i have'nt found them in the struts core jar either) The TLD file you're looking for (struts-tags.tld) is located in the struts core jar, under the META-INF folder. HTH, alexis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: autocompleter not working on Firefox 1.5 on Linux
I would expect that from a *windows* machine ;) musachy On 4/12/07, Rohit Dewan [EMAIL PROTECTED] wrote: Hi Musachy, I rebooted my linux machine for an unrelated reason and now cannot reproduce the issue. It is working now. Sorry for the bother. Regards, Rohit -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: ajax and struts 2
Did you realize about use struts tags? Inside an Action you can use ActionContext.getContext().getSession() to get a Map that represents the session. If you can't use Struts tags, then you can use DWR, but I don't know how to get session using DWR. Good Look. Felipe David Harland wrote: I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/ajax-and-struts-2-tf3563636.html#a9958559 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wrong Content Type text/plain
Thanks Teemu, You provided the hint that solved the problem! Because I was too lazy to check how to use the Tiles servlet I tried to use org.apache.tiles.listener.TilesListener instead of org.apache.struts2.tiles.StrutsTilesListener and already like that it works. However the documentation states that The latter [StrutsTilesListener] provides tighter integration with Struts features such as freemarker integration. so I wonder if this applies to the Tiles servlet as well and if it would be better to use it instead of the TilesListener? Torsten Teemu Tapper wrote: hello, we had a similar problem and we solved it by using Tiles servlet instead of Tiles listener. Cheers, Teemu Torsten Römer wrote: I added Tiles to the struts2-blank-2.0.6 example webapp and started to work on my application. All works just fine on my Linux/Tomcat 5.5 development box but when I deploy the app to the provider's Linux/Tomcat 5.5 webspace the content type is suddenly text/plain instead of text/html and all I see is the HTML source. The funny thing is, that when an action is executed through s:action namespace=/test name=home executeResult=true/s:action the content type is text/html and the page displays correctly, but when the same action is executed through s:url action= Home the above described problem occurs. Setting something like %@ page language=java contentType=text/html; charset=ISO-8859-1 % in the Tiles template and even the subpages seems to be ignored. Calling a JSP directly works fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wrong Content Type text/plain
2007/4/12, Torsten Römer [EMAIL PROTECTED]: However the documentation states that The latter [StrutsTilesListener] provides tighter integration with Struts features such as freemarker integration. so I wonder if this applies to the Tiles servlet as well and if it would be better to use it instead of the TilesListener? I think that this problem is solved in the Tiles SVN repository. The problem is that Struts 2 depends on a buggy version of Tiles 2 (yuk!). Do not try to replace a new build of Tiles 2 since it won't work, so maybe you have to wait until Tiles 2 is released and the integration with Struts 2 stabilizes. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles 2 woes
Thanks Antonio. This is what I decided after searching through the Tiles jar for prepare. Can you tell me if Tiles2 is documented somewhere. Also, is there a guide that explains the required changes when migrating Tiles1 to Tiles2? This looks like some really nice work and I'm happy to see that Tiles has remained in lockstep with Struts. I have used Tiles for years and have always thought it was one of the greatest strengths of Struts. In fact, most developers around here don't even view them as being unrelated. This is probably why I posted in the Struts area. Sorry about that, Scott On 4/12/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/4/11, [EMAIL PROTECTED] [EMAIL PROTECTED]: Also what supersedes the controllerClass tag? preparer attribute, and it must implement the ViewPreparer interface. Anyway this kind of question should be asked in the Tiles mailing list: http://tiles.apache.org/mail.html Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
Re: Tiles 2 woes
2007/4/12, [EMAIL PROTECTED] [EMAIL PROTECTED]: Thanks Antonio. This is what I decided after searching through the Tiles jar for prepare. Can you tell me if Tiles2 is documented somewhere. Documentation is on the way, since we were busy preparing a release (and having Easter holidays :-) ) it never came out, but I hope it is a question of some weeks. The official Tiles site is: http://tiles.apache.org/ Also, is there a guide that explains the required changes when migrating Tiles1 to Tiles2? I am working on it right now. This looks like some really nice work and I'm happy to see that Tiles has remained in lockstep with Struts. I have used Tiles for years and have always thought it was one of the greatest strengths of Struts. In fact, most developers around here don't even view them as being unrelated. This is probably why I posted in the Struts area. I assume that you are not alone, there are still some Struts pages that refer to Tiles 2 as a sandbox project, and Struts-Tiles is still there, though it seems not to be supported anymore. Sorry about that, Don't be sorry, you were in the *right* mailing list in your first questions, but then they became Tiles-related and not Struts-related. Anyway stay tuned for a release of Tiles 2 very soon. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wrong Content Type text/plain
Antonio Petrelli wrote: 2007/4/12, Torsten Römer [EMAIL PROTECTED]: However the documentation states that The latter [StrutsTilesListener] provides tighter integration with Struts features such as freemarker integration. so I wonder if this applies to the Tiles servlet as well and if it would be better to use it instead of the TilesListener? I think that this problem is solved in the Tiles SVN repository. The problem is that Struts 2 depends on a buggy version of Tiles 2 (yuk!). Do not try to replace a new build of Tiles 2 since it won't work, so maybe you have to wait until Tiles 2 is released and the integration with Struts 2 stabilizes. I'll gladly wait. I'm already happy that it works now, and I am glad I tried Struts2 after making two minor webapps with JSF/MyFaces/Tomahawk/Tiles - maybe a cumbersome combination, but I think Tiles is just too cool not to use it - because I feel much more comfortable with Struts2; it seems much more intuitive, the documentation is much better and the links to the example webapps actually work. I consider some good Getting Started docs and a working example app very important, as I think many beginners will give up in frustration when they haven't got anything to work after an hour or so... Sorry for being off-topic but I just felt like showing some appreciation for Struts2 :-) Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Losing session attributes between requests...
Hi folks, Have just started seeing a new problem in an application that is baffling me. I run this using Struts 1.3 on an Apache Tomcat server as I have been for a while. What I'm seeing is on one form I have information stashed away in a session as a session attribute as such: request.getSession().setAttribute(semester,semester); When a choice is made from a particular screen (in this case schedule class) we switch to a new form and during the reset() phase of this we pull the attribute out again as such: Semester semester = (Semester) request.getSession().getAttribute(semester); Now, this worked before, and now it isn't. Another oddity is when submit is being hit on that form we take another trip through reset() it seems which is not the behavior I expected. Any thoughts anybody? -- Peter L. Berghold Unix Professional [EMAIL PROTECTED] AIM: redcowdawg YIM: blue_cowdawg Those who fail to learn from history are condemned to repeat it. signature.asc Description: This is a digitally signed message part
Re: Wrong Content Type text/plain
2007/4/12, Torsten Römer [EMAIL PROTECTED]: Antonio Petrelli wrote: I'll gladly wait. I'm already happy that it works now, and I am glad I tried Struts2 after making two minor webapps with JSF/MyFaces/Tomahawk/Tiles - maybe a cumbersome combination It seems that you did not try Shale (including JSF, and MyFaces) and Tiles 2, or did you simply forget it? :-) Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[s2] How to use s:hidden
Hi, I am trying to use the s:hidden tag but i am having some problems. What i want to do is to fill the hidden tag with an array that I create using Javascript. My code: * In the jsp part i have this: a href=s:url action=Compare.do includeParams=get/s:url onclick=return prepareCheckList(); /a s:hidden id=compareList name=compareList / *the Javascript part: function prepareCheckList(){ var collectionChecks = document.getElementsByName(checkProduct); var totalChecked = 0; var list = newArray(); for(var i=0; icollectionChecks.length; i++) { if (collectionChecks[i].checked){ list[totalChecked] = collectionChecks[i].value; totalChecked ++; } if(totalChecked 5 ){ alert(Only 5 can be selected); return false; //we don't go to the Compare page. } } document.getElementById(compareList).value = list; return true;//we follow the url. } * In the Action, i have defined: private Collection compareList; public Collection getCompareList() { return compareList; } public void setCompareList(Collection compareList) { this.compareList = compareList; } But i don't manage to get the compareList in the Action. I don't know if i am doing something wrong in the JavaScript part or if i am doing something that is not possible. Can anybody help me??
Re: ajax and struts 2
Good Morning David- I would start with looking at the ajax examples from struts2-showcase-2.0.6 and find the example which mostly closely exemplifies your task for example example7 illustrates population of a div tag in your form and if you run struts from localhost on port 8080 you can view results at http://localhost:8080/struts2-showcase-2.0.6/viewSource.action?page=/ajax/remotediv/example7.jsp Note that In your WEB-INF/classes/struts-ajax.xml note the specification onf testjs.jsp which will store the results /ajax/testjs.jsp action name=Test3 result/ajax/testjs.jsp/result /action HTH Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: David Harland [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:14 AM Subject: ajax and struts 2 I am new to ajax and have just written my first ajax function. In my function I am passing a user id into the function and are being returned a List of Contacts to populate a select. Presently I am putting the id in a hidden field in the jsp and then passing it from there. What I would prefer to do is have the javascript function call an action so that the Java code can access the user id from the session. How do I do this please? Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.http://mobile.yahoo.com/mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED!!!! Re: Losing session attributes between requests...
Nevermind folks... I found it. I found a particularly inventive way of shooting myself in the foot when I installed a session listener. The offending line: session.setMaxInactiveInterval(3600); which was set originally to a ridiculously low value. That's what I get for developing code while watching TV at the same time. :-/ -- Peter L. Berghold Unix Professional [EMAIL PROTECTED] AIM: redcowdawg YIM: blue_cowdawg Those who fail to learn from history are condemned to repeat it. signature.asc Description: This is a digitally signed message part
Re: [s2] How to use s:hidden
This is not an Struts question, but I will give you some hints. The anchor tag does not submit a form to the server (unless you are using the AJAX theme, but that's another story), so you should put those checkboxes inside a form with a submit tag, and add an onsubmit event to the form for validation. hope that helps musachy On 4/12/07, Ezequiel Puig [EMAIL PROTECTED] wrote: Hi, I am trying to use the s:hidden tag but i am having some problems. What i want to do is to fill the hidden tag with an array that I create using Javascript. My code: * In the jsp part i have this: a href=s:url action=Compare.do includeParams=get/s:url onclick=return prepareCheckList(); /a s:hidden id=compareList name=compareList / *the Javascript part: function prepareCheckList(){ var collectionChecks = document.getElementsByName(checkProduct); var totalChecked = 0; var list = newArray(); for(var i=0; icollectionChecks.length; i++) { if (collectionChecks[i].checked){ list[totalChecked] = collectionChecks[i].value; totalChecked ++; } if(totalChecked 5 ){ alert(Only 5 can be selected); return false; //we don't go to the Compare page. } } document.getElementById(compareList).value = list; return true;//we follow the url. } * In the Action, i have defined: private Collection compareList; public Collection getCompareList() { return compareList; } public void setCompareList(Collection compareList) { this.compareList = compareList; } But i don't manage to get the compareList in the Action. I don't know if i am doing something wrong in the JavaScript part or if i am doing something that is not possible. Can anybody help me?? -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [OT] Re: Eclipse WTP / Struts 2 - Not working!!
Sorry, still I did not understand it quite well. But my non-struts web project is working fine along with Eclipse WTP. So that means the deployment is proper right? I understand that I sound dumb here. But why I get this problem when I include struts? which works fine when I deploy it separately in Tomcat. Vignesh Manickam Periaswamy Web Application Developer Intern, Information Management Section WPTD, EPA Region 5 312-886-0887 Dave Newton [EMAIL PROTECTED] 04/11/2007 04:51 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject [OT] Re: Eclipse WTP / Struts 2 - Not working!! --- [EMAIL PROTECTED] wrote: Sorry, I do not understand what you mean by publishing project. Did you add a project deployment for the Struts app and deploy it? In other words, did you configur things such that Eclipse/WTP knows things about your app, where you're deploying it to etc.? d. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Eclipse WTP / Struts 2 - Not working!!
--- [EMAIL PROTECTED] wrote: So that means the deployment is proper right? It means the deployment for the other web project is right; I have no real way of knowing if it is for the Struts project. But why I get this problem when I include struts? which works fine when I deploy it separately in Tomcat. This is why I believe it is an Eclipse/WTP deployment problem: if it works when you deploy it manually then the configuration files are most likely correct. Even if they weren't and you requested an action that wasn't mapped you'd get a Struts error page, not a 404. So the requests you are making are not being handled properly: either you're not requesting in the right context, or it's not being deployed properly, etc. Once you deploy from within Eclipse re-check the actual directory it's being deployed to and see if everything is where it should be. d. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Eclipse WTP / Struts 2 - Not working!!
If I do understand it right then your s2 app works when deploying the war manually to tomcat. But if you try to start within eclipse it does not work? There _must_ be some configuration issue with WTP. I guess there are some libraries from s2 that are packaged in the war but are not included if you deploy your ide project-path. I am a netbeans user so I can not help you much, sorry. Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts in Servlet 2.4
I'm still trying to move Struts apps from WL 8 (servlet 2.3 environment) to WL 9 (servlet 2.4 environment). I've change the top line in my web.xml to the long, complicated string that specifies 2.4. The app runs the first Action module, then forwards to a jsp page. In that page are both JSTL and Struts tags. The first tag it hits is this: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. What!!! What's going on? -- Tim Slattery [EMAIL PROTECTED]
Re: Struts in Servlet 2.4
--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. I don't recall, but did the TLD URIs change between 2.3/2.4? (I don't even know if it would matter if they did, actually, I guess.) I suppose it could also be a JSTL library issue etc. I'm sure it's something configurey or libraryey, though. d. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Eclipse WTP / Struts 2 - Not working!!
suggest searching for Struts2 Eclipse plugin here is a place to start looking http://cwiki.apache.org/WW/plugins.html With either sitemesh or tiles plugin You would have to -find the missing class -find the jar which contains the missing class -from Eclipse Go to 'Java Build Path' -add external library and select the jar you are currently missing Martin-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Piero Sartini [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:00 PM Subject: Re: [OT] Re: Eclipse WTP / Struts 2 - Not working!! If I do understand it right then your s2 app works when deploying the war manually to tomcat. But if you try to start within eclipse it does not work? There _must_ be some configuration issue with WTP. I guess there are some libraries from s2 that are packaged in the war but are not included if you deploy your ide project-path. I am a netbeans user so I can not help you much, sorry. Piero - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts in Servlet 2.4
Did you change the version of your jstl jars? I forget which version you need, but I think jstl 1.0 was 2.3 compliant, and 1.1 was 2.4 compliant. You'll need to upgrade both jstl.jar and standard.jar... -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:21 PM To: Struts Users Mailing List Subject: Re: Struts in Servlet 2.4 --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. I don't recall, but did the TLD URIs change between 2.3/2.4? (I don't even know if it would matter if they did, actually, I guess.) I suppose it could also be a JSTL library issue etc. I'm sure it's something configurey or libraryey, though. d. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts in Servlet 2.4
Did you change web.xml to this? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 musachy On 4/12/07, Frank Russo [EMAIL PROTECTED] wrote: Did you change the version of your jstl jars? I forget which version you need, but I think jstl 1.0 was 2.3 compliant, and 1.1 was 2.4 compliant. You'll need to upgrade both jstl.jar and standard.jar... -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:21 PM To: Struts Users Mailing List Subject: Re: Struts in Servlet 2.4 --- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. I don't recall, but did the TLD URIs change between 2.3/2.4? (I don't even know if it would matter if they did, actually, I guess.) I suppose it could also be a JSTL library issue etc. I'm sure it's something configurey or libraryey, though. d. 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
[OT] Mascot?
OK, maybe I have been working too much and now I had some beer... came to think that so many great OSS products have mascots... and in Swedish a Struts is an Ostrich (Struthio camelus), and an Ostrich's legs neck look like struts, don't you agree? ;-) http://www.wildanimalsonline.com/birds/ostrich-struthiocamelus.jpg Maybe some artistically gifted user here could design some cool Struts mascot in the style of the Linux penguin or so... There actually is a logo contest: http://www.ninsky.com/struts/logo/entries.do And a related thread: http://www.mail-archive.com/[EMAIL PROTECTED]/thrd50.html#11232 Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem passing form fields with autocompleter
I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
You should have a getBar() defined on your action, not a getFoo() regards musachy On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: Problem passing form fields with autocompleter
Scott: I had a similar problem, and I got around it by getting the parameter myself... (I know.. a little pain, but got it done) Let me know if you get the _correct_ way working. hf. On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided.
RE: Struts in Servlet 2.4
--- Slattery, Tim - BLS [EMAIL PROTECTED] wrote: c:forEach items=${RespData} var=resp Andit points to items and gives this message: This attribute does not support request time values. I don't recall, but did the TLD URIs change between 2.3/2.4? (I don't even know if it would matter if they did, actually, I guess.) I suppose it could also be a JSTL library issue etc. I'm sure it's something configurey or libraryey, though. I'd been usuing the Struts-supplied JSTL stuff: c.tld, jstl.tld. For my new deployment, I got rid of those, and used: %@ taglib uri=http://java.sun.com/jstl/core; prefix=c % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? Regarding passing the field as a parameter, I am not too proud for that. Could you post a little example code? I tried to do something like this: s:url id=autosportsteam action=LookupSportsTeam s:param name=foo value=23/ /s:url And that worked, but I want the value of the foo field, not a hard-coded value. How do I specify another field in the param tag? Thanks again, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: You should have a getBar() defined on your action, not a getFoo() regards musachy On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
I am sure it should NOT be getBar() either. It should be getFoo(). Perhaps there is a bug with the framework on not processing/doing reflection on hidden fields? hf. On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? Regarding passing the field as a parameter, I am not too proud for that. Could you post a little example code? I tried to do something like this: s:url id=autosportsteam action=LookupSportsTeam s:param name=foo value=23/ /s:url And that worked, but I want the value of the foo field, not a hard-coded value. How do I specify another field in the param tag? Thanks again, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: You should have a getBar() defined on your action, not a getFoo() regards musachy On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided.
Re: Problem passing form fields with autocompleter
the value for the field comes from the value attribute, which is evaluated against the Value Stack. musachy On 4/12/07, Harring Figueiredo [EMAIL PROTECTED] wrote: I am sure it should NOT be getBar() either. It should be getFoo(). Perhaps there is a bug with the framework on not processing/doing reflection on hidden fields? hf. On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? Regarding passing the field as a parameter, I am not too proud for that. Could you post a little example code? I tried to do something like this: s:url id=autosportsteam action=LookupSportsTeam s:param name=foo value=23/ /s:url And that worked, but I want the value of the foo field, not a hard-coded value. How do I specify another field in the param tag? Thanks again, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: You should have a getBar() defined on your action, not a getFoo() regards musachy On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax href=%{#autosportsteam} cssStyle=width: 500px; dropdownHeight=180; loadMinimumCount=2 loadOnTextChange=true autoComplete=false showDownArrow=false delay=100 searchType=substring forceValidOption=true/ /div s:hidden name=foo value=bar/ /s:form I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set correctly. Any ideas on this? This works in other pages that do not have the autocompleter tag. Thanks, Scott Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sincerely, Harring Figueiredo Sr. Software Engineer Email: [EMAIL PROTECTED] Telephone: 941-256-0600 We never become truly spiritual by sitting down and wishing to become so. You must undertake something so great that you cannot accomplish it unaided. -- Hey you! Would you help me to carry the stone? Pink Floyd
RE: Struts in Servlet 2.4
-Original Message- From: Frank Russo [mailto:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:40 PM To: Struts Users Mailing List Subject: RE: Struts in Servlet 2.4 Did you change the version of your jstl jars? I forget which version you need, but I think jstl 1.0 was 2.3 compliant, and 1.1 was 2.4 compliant. You'll need to upgrade both jstl.jar and standard.jar... I got rid of the jstl.jar from Struts. Wouldn't WL version 9 have a newer JSTL built-in? Also...this is using an older version of Struts, I think it's 1.1. -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 Action Validation
Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? Scott On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all. On 4/10/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: addFieldError(course.text... I really do not like placing a jsp field name name in Java source code, but I could not find another way to correlate the message to the field. No, I think that's how it works. Technically you already have the field name in the java code since you're using a Java object. I'm not really sure what the alternatices would be. is there an easy way to get the messages to appear to the right of the field as opposed to the top? There's a labelposition parameter but I don't recall what the options are; I think if you want any major changes you'd have to modify the theme. A general comment (not directed specifically at you): my view is that the default themes and templates are intended to serve as a launching point: they cover simple use cases, but if your pages have a specific layout then extension, modification, and/or creation of existing or new templates is almost certain to be required. And lastly, can I specify the color I would like the messages to be. CSS-ily, errorMessage class. d. Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
Re: S2 Action Validation
IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? Scott On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote: I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all. On 4/10/07, Dave Newton [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: addFieldError(course.text... I really do not like placing a jsp field name name in Java source code, but I could not find another way to correlate the message to the field. No, I think that's how it works. Technically you already have the field name in the java code since you're using a Java object. I'm not really sure what the alternatices would be. is there an easy way to get the messages to appear to the right of the field as opposed to the top? There's a labelposition parameter but I don't recall what the options are; I think if you want any major changes you'd have to modify the theme. A general comment (not directed specifically at you): my view is that the default themes and templates are intended to serve as a launching point: they cover simple use cases, but if your pages have a specific layout then extension, modification, and/or creation of existing or new templates is almost certain to be required. And lastly, can I specify the color I would like the messages to be. CSS-ily, errorMessage class. d. _ ___ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: S2 Action Validation
--- [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. Ouch. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? What do you mean by that? The distro files are in the JAR; won't yours be local to the web-app? d. Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem passing form fields with autocompleter
--- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value' attribute is an object: s:hidden name=foo value=bar/ *is* looking for a getBar(), and you also need a get/setFoo() to get the value back to the action. If you wanted a hardcoded string value, for example, you'd have to say value=%{'bar'} (or something like that) etc. d. Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.SecurityException: No class by name: validator
Hi guys, Have somebody ever seen this message when trying to validate a form with ajax theme? java.lang.SecurityException: No class by name: validator and of course, knows how to fix that? I think it can be a classpath problem or something I'm missing, but can't figure out what is that. I've followed some tutorias on the internet and got nothing. Thanks, Felipe -- View this message in context: http://www.nabble.com/java.lang.SecurityException%3A-No-class-by-name%3A-validator-tf3569251.html#a9971513 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.SecurityException: No class by name: validator
Seems to me it is the same issue from the Showcase App. Does Anyone knows how to fix that? Thanks, Felipe Felipe Rodrigues wrote: Hi guys, Have somebody ever seen this message when trying to validate a form with ajax theme? java.lang.SecurityException: No class by name: validator and of course, knows how to fix that? I think it can be a classpath problem or something I'm missing, but can't figure out what is that. I've followed some tutorias on the internet and got nothing. Thanks, Felipe -- View this message in context: http://www.nabble.com/java.lang.SecurityException%3A-No-class-by-name%3A-validator-tf3569251.html#a9972074 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]