about yui
hi i impressed from yui i like to do work with it now i want something like that when yui widget highlight on the screen other area of my page will be shows in dark shadow ,it means remain unactive how i can achieve it please help me -- View this message in context: http://www.nabble.com/about-yui-tp15821595p15821595.html 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: sitemesh problem
aj2r wrote: > > > Can you put here your decorators.xml? > i have putted decoraters.xml at web-inf folder -- View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15820667.html 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: Rad 6.0
Here's the error: JSP Processing Error HTTP Error Code: 500 Error Message: JSPG0047E: Unable to locate tag library for uri http://struts.apache.org/tags-html Root Cause: com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate tag library for uri http://struts.apache.org/tags-html at com.ibm.ws.jsp.translator.visitor.tagfiledep.TagFileDependencyVisitor.visitCustomTagStart(TagFileDependencyVisitor.java:70) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:253) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:286) at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:125) at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:110) at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:168) at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:81) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:298) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:265) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:137) at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:394) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)atcom.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code)) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 1:47 AM Subject: Re: Rad 6.0 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: [3/3/08 1:17:00:062 PST] 001b jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [/WEB-INF/struts-tiles.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.tiles.taglib.UseAttributeTei] [3/3/08 1:17:00:062 PST] 001b jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts-tiles.tld] com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.tiles.taglib.UseAttributeTei] It seems that you have some mixed up jars... try to republish your application, or remove it from the server and redeploy. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rad 6.0
Antonio, I'm sorry I couldn't get back to you last night as I got too sleepy to continue. You gave me some ideas that something was wrong with the jar files. I realized that I was working with the individual components and when I imported the war file it ran fine which answers my original question about rad 6.0 and struts 1.3.8. I tired using the same jar files in the same order as the War file. That did not fix the problem. Then I started investigating the TLD files and found that the War file was picking the TLD files up from the apache site. I was getting them from /web-inf/. Now here is my current problem/question: When I use the current index.jsp (tlds pointing to apache), I get the following error: - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 1:47 AM Subject: Re: Rad 6.0 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: [3/3/08 1:17:00:062 PST] 001b jsp E com.ibm.ws.jsp.taglib.TldParser logParseErrorMessage Failed to parse Tag Library [/WEB-INF/struts-tiles.tld]: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.tiles.taglib.UseAttributeTei] [3/3/08 1:17:00:062 PST] 001b jsp W com.ibm.ws.jsp.taglib.TagLibraryCache loadWebInfMap webinf tld failed to load for resourcePath =[/WEB-INF/struts-tiles.tld] com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The JSP container failed to load the TagExtraInfo class [org.apache.struts.tiles.taglib.UseAttributeTei] It seems that you have some mixed up jars... try to republish your application, or remove it from the server and redeploy. Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 application does not work after converting from struts1
This will get you started.. 1st) Struts v1 take a look at legacy mapping in web.xml which maps *.do to action and action to ActionServlet as seen here action *.do action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 2nd)Struts2 has a different web.xml notice the url-pattern of action will map to faces which maps to FacesServlet faces *.action faces javax.faces.webapp.FacesServlet 1 //everything in dwr folder maps to dwr which maps to DWRServlet dwr /dwr/* dwr uk.ltd.getahead.dwr.DWRServlet debug true //any url-pattern not specifically assigned is assigned to struts which is mapped to FilterDispatcher struts /* struts org.apache.struts2.dispatcher.FilterDispatcher Martin - Original Message - From: "kal stevens" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 8:49 PM Subject: Struts2 application does not work after converting from struts1 > My company is in the process of converting our application from struts1 to > struts2. > > The JSP loads properly, but any actions do not respond. > > > Not Found > > The requested URL /member/signin.do was not found on this server. > > I put the log4j log level to ALL, and it looks like tomcat is loading the > actions, > Can anyone recommend a way to debug this to figure out what is wrong? Or > point me to a link that describes the problem? > > Thanks > > > Kal > > > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/validatesend in 'member' package:{ActionConfig > com.ss.actions.member.SendAction - action - file:/home/kal/tools/apache- > tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:186:61} > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/emailsend in 'member' package:{ActionConfig > com.ss.actions.member.EmailSendAction - action - > file:/home/kal/tools/apache-tomcat-6.0.16 > /webapps/cobalt/WEB-INF/classes/struts.xml:193:66} > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/sendpassword in 'member' package:{ActionConfig > com.opensymphony.xwork2.ActionSupport - action - > file:/home/kal/tools/apache-tomcat-6.0.16 > /webapps/cobalt/WEB-INF/classes/struts.xml:198:37} > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/validatesendpassword in 'member' package:{ActionConfig > com.ss.actions.member.SendpasswordAction - action - > file:/home/kal/tools/apache-tomcat-6.0.16 > /webapps/cobalt/WEB-INF/classes/struts.xml:203:69} > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/verifysetup in 'member' package:{ActionConfig > com.ss.actions.member.SigninSetupAction - action - > file:/home/kal/tools/apache-tomcat-6.0.16 > /webapps/cobalt/WEB-INF/classes/struts.xml:209:68} > DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider > Loaded /member/confirm in 'member' package:{ActionConfig > com.ss.actions.member.ConfirmAction - action - file:/home/kal/tools/apache- > tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:214:64} > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 application does not work after converting from struts1
Sorry I figured it out. It was combination of modjk and an apache rewrite rule. Sorry for being so vague :) Thanks Kal On Mon, Mar 3, 2008 at 5:54 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- kal stevens <[EMAIL PROTECTED]> wrote: > > The JSP loads properly, but any actions do not respond. > > You haven't provided much information to go on. > > Have you changed the extension to ".do"? Is the filter in your web.xml? > Have > you used the config browser to see how the system thinks your app is > configured? > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Package extends
config-browser doesn't deserve to be exposed to the binary mess I have created! I have refactored this Struts 2 application into oblivion. If package D extends packages A, B, and C and package A has a custom default-interceptor defined, shouldn't package D inherit this stack? I am having to duplicate the stack creation from package A inside package D! I think the only way to stop the decline of this application is to close the lid on my laptop and focus on the Kansas v. Texas Tech game. Have you ever "improved" code so much that you ended up where you began? Peace, Scott On Mon, Mar 3, 2008 at 7:40 PM, Wes Wannemacher <[EMAIL PROTECTED]> wrote: > Scott, > > Would it help if you dropped the config-browser into the app and saw how > badly you have it mangled ;) > > -Wes > > On Mon, 2008-03-03 at 18:58 -0600, [EMAIL PROTECTED] wrote: > > I am knee deep in a problem where I have looked at it so long that I am > > nearly wrapped around the axle. Before I get into the gory details, > what > > does a package extend when it specifies the extends attribute followed > by > > multiple coma separated packages? I am chiefly interested in a > > default-interceptor-ref that might have been established in only one > > "parent." Should this be the stack the child adopts? I'll stop here > before > > blathering on about my mess. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott [EMAIL PROTECTED]
Re: Selecting over Static Maps from Resource Bundle
On Mon, Mar 3, 2008 at 5:37 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > construct a public Map in your Action class and insert the key,value > pairings e.g. > public Map getDefaultFavouriteCartoonCharacters() { > Map m = new LinkedHashMap(); > m.put("heMan", "He-Man"); > m.put("popeye", "Popeye"); > m.put("mockeyMouse", "Mickey Mouse"); > return m; > } > > and reference the public Map via list attribute in your jsp >list="defaultFavouriteCartoonCharacters" > ... > /> > > or just use a set of hardcoded values in key:value pairings for the list > attribute >list="#{'heMan':'He-Man', 'popeye':'Popeye', [...]}" > .. > /> > > Martin > We could define them on the actions, but since we use lists like the list of States and Provinces, Gender List and a bunch of others all over the place, I didn't want to have to define them everywhere. So we created a BaseAction that defines all those lists, but now that list is growing and theres a bunch of useless methods on every action. I was looking for something more dynamic, and I was hoping the great and powerful OGNL could help out. I guess I'll try to write a static utility method that I can call with the @ syntax to return a map of data and see how that flies. Thanks for the input. (*Chris*) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 application does not work after converting from struts1
--- kal stevens <[EMAIL PROTECTED]> wrote: > The JSP loads properly, but any actions do not respond. You haven't provided much information to go on. Have you changed the extension to ".do"? Is the filter in your web.xml? Have you used the config browser to see how the system thinks your app is configured? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2 application does not work after converting from struts1
My company is in the process of converting our application from struts1 to struts2. The JSP loads properly, but any actions do not respond. Not Found The requested URL /member/signin.do was not found on this server. I put the log4j log level to ALL, and it looks like tomcat is loading the actions, Can anyone recommend a way to debug this to figure out what is wrong? Or point me to a link that describes the problem? Thanks Kal DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/validatesend in 'member' package:{ActionConfig com.ss.actions.member.SendAction - action - file:/home/kal/tools/apache- tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:186:61} DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/emailsend in 'member' package:{ActionConfig com.ss.actions.member.EmailSendAction - action - file:/home/kal/tools/apache-tomcat-6.0.16 /webapps/cobalt/WEB-INF/classes/struts.xml:193:66} DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/sendpassword in 'member' package:{ActionConfig com.opensymphony.xwork2.ActionSupport - action - file:/home/kal/tools/apache-tomcat-6.0.16 /webapps/cobalt/WEB-INF/classes/struts.xml:198:37} DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/validatesendpassword in 'member' package:{ActionConfig com.ss.actions.member.SendpasswordAction - action - file:/home/kal/tools/apache-tomcat-6.0.16 /webapps/cobalt/WEB-INF/classes/struts.xml:203:69} DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/verifysetup in 'member' package:{ActionConfig com.ss.actions.member.SigninSetupAction - action - file:/home/kal/tools/apache-tomcat-6.0.16 /webapps/cobalt/WEB-INF/classes/struts.xml:209:68} DEBUG main com.opensymphony.xwork2.config.providers.XmlConfigurationProvider Loaded /member/confirm in 'member' package:{ActionConfig com.ss.actions.member.ConfirmAction - action - file:/home/kal/tools/apache- tomcat-6.0.16/webapps/cobalt/WEB-INF/classes/struts.xml:214:64}
Re: Package extends
Scott, Would it help if you dropped the config-browser into the app and saw how badly you have it mangled ;) -Wes On Mon, 2008-03-03 at 18:58 -0600, [EMAIL PROTECTED] wrote: > I am knee deep in a problem where I have looked at it so long that I am > nearly wrapped around the axle. Before I get into the gory details, what > does a package extend when it specifies the extends attribute followed by > multiple coma separated packages? I am chiefly interested in a > default-interceptor-ref that might have been established in only one > "parent." Should this be the stack the child adopts? I'll stop here before > blathering on about my mess. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Selecting over Static Maps from Resource Bundle
construct a public Map in your Action class and insert the key,value pairings e.g. public Map getDefaultFavouriteCartoonCharacters() { Map m = new LinkedHashMap(); m.put("heMan", "He-Man"); m.put("popeye", "Popeye"); m.put("mockeyMouse", "Mickey Mouse"); return m; } and reference the public Map via list attribute in your jsp or just use a set of hardcoded values in key:value pairings for the list attribute Martin - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 8:02 PM Subject: Selecting over Static Maps from Resource Bundle > Is it possible to place the data for the list attribute of an > tag in a resource bundle (so that it can be > internationalized)? I have tried adding the data to my > application.properties file: > > gender.map='FEMALE':'Female','MALE':'Male' > > Then referencing it in the JSP as: > > > > But this produces, the fairly unusable code: > > > > > > Is there any way to get it to generate: > > > Female > Male > > > Thanks. > (*Chris*) > > - > 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: Selecting over Static Maps from Resource Bundle
Dave Newton wrote: --- Chris Pratt <[EMAIL PROTECTED]> wrote: Is it possible to place the data for the list attribute of an tag in a resource bundle (so that it can be internationalized)? I have tried adding the data to my application.properties file: gender.map='FEMALE':'Female','MALE':'Male' Then referencing it in the JSP as: You could try something like #{%{getText...}} but I suspect that wouldn't work. You might also try creating it with a specific map type: [EMAIL PROTECTED]@{ getText... } and see if that affects statement parsing. I suspect that won't work either, though. You could also do the work in the action, converting the text values into a real list/map. Dave Interesting little problem... so you want to call a method, get the string result and have OGNL evaluate that string as if it were a Map. Sounds plausible, but I don't like your chances. I throw a breakpoint in ListUIBean to see what object you're getting from OGNL. My guess is based on Dave's second one: parenthesis to ensure getText is evaluated first (should be anyway) Then construct a map [1] using the string as the parameter [1] http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Selecting over Static Maps from Resource Bundle
--- Chris Pratt <[EMAIL PROTECTED]> wrote: > Is it possible to place the data for the list attribute of an > tag in a resource bundle (so that it can be > internationalized)? I have tried adding the data to my > application.properties file: > > gender.map='FEMALE':'Female','MALE':'Male' > > Then referencing it in the JSP as: > > You could try something like #{%{getText...}} but I suspect that wouldn't work. You might also try creating it with a specific map type: [EMAIL PROTECTED]@{ getText... } and see if that affects statement parsing. I suspect that won't work either, though. You could also do the work in the action, converting the text values into a real list/map. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Selecting over Static Maps from Resource Bundle
Is it possible to place the data for the list attribute of an tag in a resource bundle (so that it can be internationalized)? I have tried adding the data to my application.properties file: gender.map='FEMALE':'Female','MALE':'Male' Then referencing it in the JSP as: But this produces, the fairly unusable code: Is there any way to get it to generate: Female Male Thanks. (*Chris*) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Package extends
I am knee deep in a problem where I have looked at it so long that I am nearly wrapped around the axle. Before I get into the gory details, what does a package extend when it specifies the extends attribute followed by multiple coma separated packages? I am chiefly interested in a default-interceptor-ref that might have been established in only one "parent." Should this be the stack the child adopts? I'll stop here before blathering on about my mess. -- Scott [EMAIL PROTECTED]
Re: Struts App - Tomcat on Windows in India and Poland
How bad is it? It the problem that: users in Poland see question marks but you don't them when you access their server; or you see question marks when you access their server but they don't; or you and they see question marks when you access the server? The issue is either: the pages include characters that are not supported by the server operating system; the font used by the client operating system doesn't support characters on the page That's why you need to isolated it to the server or to the browser. In English this is common with special punctuation characters (eg. em-dash and slanted quotes), especially when deploying a system developed with MS products to a non-MS server. If it's just some punctuation that's causing the problem then you just need to replace these with portable codes. If it's more than that you have a configuration error at the Java level. Raghuveer wrote: I have deployed a struts web application on Windows 2003 Server in Poland and India. Application needs to display Polish language coming from SAP. This is working in India on Windows 2003 Servers. But Messages are coming Question marks from Similar Configuration Server(language is polish) in Poland . Any advice on this? No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 2/03/2008 3:59 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with OGNL syntax
oscar perez wrote: I see what you're trying to do; you're asking OGNL to evaluate companyType first, and use the string result in the outer expression to evaluate. The %{} notation won't do this for you. According to the OGNL guide you should use parentheses to evaluate part of the expression as a unit and change the evlatulation order [1] eg Haven't tried that myself. see : Parenthetical Expressions [1] http://www.ognl.org/basicExpressions.html As a side note though... I don't like your approach. As your four objects share the same interface you should have just one property called Enterprise and your form should address that. Your action should implement Preparable and instantiate the appropriate concrete implementation prior to the params being set. If you use the params-prepare-params stack you can pass parameters to your action, then instantiate the appropriate concrete implementation, then set the parameters on the implementation. regards, Jromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with OGNL syntax
Hi! I am having a very strange problem with struts 2. I am newbie to Struts 2 so maybe it is a simple thing I misunderstood. I have an abstract class (enterprise) and 4 subclasses. I want to perform CRUD operations on them and since all the properties are common to all the subclasses I've decided to use only one form and one action for all of them. The problem is that I cannot use in the form the reference to the abstract class Enterprise since when I create a new entry the bean instantiation fails as Enterprise is an abstract class and I didnt want to create 4 forms either so I came up with the following In the form page to get the type of the company that I am editing and using logic tags to create a variable holding the name of the proper instance..: and this shows nothing as value If instead I use the following I get the string customer.name as value But now if I use the key field like this: Then it works just fine, It renders the value that customer.name holds. I would like to use value rather than key because I don't want to create more resource bundles for localization since enterprise.name suits to the 4 subclasses. I hope I managed to explain my issue clearly. Any help is highly appreciated. Thank you! Óscar
Re: More package weirdness
We used to be able to send "cancel" messages, but teh intarwebs are way too fast for them to have much effect anymore. --- Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > At one company I did consulting, they had an ancient mail system where > this was possible. The rumours had it that they were betting on > sending insults to their boss, and then betting on who could wait the > longest before hitting the "unsend" button :) > > Nils-H > > On Mon, Mar 3, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > > Why is there no UnSend button? > > > > On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik > <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > Posted what? :) > > > > > > On Mon, Mar 3, 2008 at 9:38 PM, <[EMAIL PROTECTED]> wrote: > > > > Doh! Can we pretend I didn't post this? > > > > > > > > > > > > > > > > > > > > On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > > > > > > [EMAIL PROTECTED] wrote: > > > > > > which resolves to be: > > > > > > > > > > > > > > > > > > > > > > The namespace is "/charts", but you use "charts". > > > > > > > > > > > > > > > > - > > > > > 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] > > > > > > > > > > > > -- > > Scott > > [EMAIL PROTECTED] > > > > - > 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: More package weirdness
At one company I did consulting, they had an ancient mail system where this was possible. The rumours had it that they were betting on sending insults to their boss, and then betting on who could wait the longest before hitting the "unsend" button :) Nils-H On Mon, Mar 3, 2008 at 9:43 PM, <[EMAIL PROTECTED]> wrote: > Why is there no UnSend button? > > On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> > wrote: > > > > > Posted what? :) > > > > On Mon, Mar 3, 2008 at 9:38 PM, <[EMAIL PROTECTED]> wrote: > > > Doh! Can we pretend I didn't post this? > > > > > > > > > > > > > > > On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> > wrote: > > > > > > > > > > > [EMAIL PROTECTED] wrote: > > > > > which resolves to be: > > > > > > > > > > > > > > > > > > The namespace is "/charts", but you use "charts". > > > > > > > > > > > > - > > > > 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] > > > > > > > -- > Scott > [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More package weirdness
Why is there no UnSend button? On Mon, Mar 3, 2008 at 2:40 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > Posted what? :) > > On Mon, Mar 3, 2008 at 9:38 PM, <[EMAIL PROTECTED]> wrote: > > Doh! Can we pretend I didn't post this? > > > > > > > > > > On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote: > > > > > > > > [EMAIL PROTECTED] wrote: > > > > which resolves to be: > > > > > > > > > > > > > > The namespace is "/charts", but you use "charts". > > > > > > > > > - > > > 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] > > -- Scott [EMAIL PROTECTED]
Re: More package weirdness
Posted what? :) On Mon, Mar 3, 2008 at 9:38 PM, <[EMAIL PROTECTED]> wrote: > Doh! Can we pretend I didn't post this? > > > > > On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote: > > > > > [EMAIL PROTECTED] wrote: > > > which resolves to be: > > > > > > > > > > The namespace is "/charts", but you use "charts". > > > > > > - > > 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: More package weirdness
Thanks Wes! I had a bald moment. On Mon, Mar 3, 2008 at 2:38 PM, <[EMAIL PROTECTED]> wrote: > Doh! Can we pretend I didn't post this? > > > > On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote: > > > > > [EMAIL PROTECTED] wrote: > > > which resolves to be: > > > > > > > > > > The namespace is "/charts", but you use "charts". > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Scott > [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
Re: More package weirdness
Doh! Can we pretend I didn't post this? On Mon, Mar 3, 2008 at 11:49 AM, Daniel Baldes <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > which resolves to be: > > > > > > The namespace is "/charts", but you use "charts". > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott [EMAIL PROTECTED]
Re: how to access a session variable in an action class?
I wonder what mojoRising is thrying to achieve. As Dave Newton said "setting something to session from the JSP is a little suspicious" because tipically you want things the other way around( from action to jsp) and if you need to send some data to the action, you have to use parameters (in the url or as a field in a form ). On Mon, Mar 3, 2008 at 1:13 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Oops, I misunderstood the question. > > Musachy's correct, though; setting something to session from the JSP is a > little suspicious. > > Dave > > --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > > That would be to set the value on your action. On your jsp, use the > > "set" tag, and set the "scope" attribute to session: > > > > http://struts.apache.org/2.x/docs/set.html > > > > btw, if you are setting something on the session in your jsp and using > > it on the actions, there is a good chance that you are doing something > > wrong. > > > > On Mon, Mar 3, 2008 at 2:03 PM, Dave Newton <[EMAIL PROTECTED]> > wrote: > > > --- mojoRising <[EMAIL PROTECTED]> wrote: > > > > Hi, I want to set a parameter in the session from my JSP, and then > > access > > > > it from my action class. I am not sure what the correct syntax is > for > > this. > > > > Could someone please explain? Thanks! > > > > > > > > > http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html > > > > > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: how to access a session variable in an action class?
Oops, I misunderstood the question. Musachy's correct, though; setting something to session from the JSP is a little suspicious. Dave --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > That would be to set the value on your action. On your jsp, use the > "set" tag, and set the "scope" attribute to session: > > http://struts.apache.org/2.x/docs/set.html > > btw, if you are setting something on the session in your jsp and using > it on the actions, there is a good chance that you are doing something > wrong. > > On Mon, Mar 3, 2008 at 2:03 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > > --- mojoRising <[EMAIL PROTECTED]> wrote: > > > Hi, I want to set a parameter in the session from my JSP, and then > access > > > it from my action class. I am not sure what the correct syntax is for > this. > > > Could someone please explain? Thanks! > > > > > http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html > > > > Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access a session variable in an action class?
That would be to set the value on your action. On your jsp, use the "set" tag, and set the "scope" attribute to session: http://struts.apache.org/2.x/docs/set.html btw, if you are setting something on the session in your jsp and using it on the actions, there is a good chance that you are doing something wrong. musachy On Mon, Mar 3, 2008 at 2:03 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- mojoRising <[EMAIL PROTECTED]> wrote: > > Hi, I want to set a parameter in the session from my JSP, and then access > > it from my action class. I am not sure what the correct syntax is for this. > > Could someone please explain? Thanks! > > http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html > > Dave > > > > > - > 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to access a session variable in an action class?
--- mojoRising <[EMAIL PROTECTED]> wrote: > Hi, I want to set a parameter in the session from my JSP, and then access > it from my action class. I am not sure what the correct syntax is for this. > Could someone please explain? Thanks! http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to access a session variable in an action class?
Hi, I want to set a parameter in the session from my JSP, and then access it from my action class. I am not sure what the correct syntax is for this. Could someone please explain? Thanks! -- View this message in context: http://www.nabble.com/how-to-access-a-session-variable-in-an-action-class--tp15810866p15810866.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2: Designing faceted search - a general architecture/design issue
Hi, Does anyone have any experience using Struts 2 to implement a web app that provides faceted search? (Using Lucene/LARQ etc.) I'm wondering what the best approach is, using SiteMesh/Tiles ie, when it comes to the architecture/design of the web app. The basic idea is to provide the user with a search function that presents the result list in the main content (center div) of the page, with faceted navigation based on the search results on the left (left div). Using the facets will then filter the search result, or perform a new search using the added search parameters. PS: I'm aware of Solr, but want to do it from "scratch". - Magnus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemesh problem
hns wrote: > > hi > i have one default namespace / and another /webmail > css applied to decorator is worked in / but it can not work at /webmail > what is problem? > Can you put here your decorators.xml? -- View this message in context: http://www.nabble.com/sitemesh-problem-tp15759026p15810702.html 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: get the Locale from Action[S2]
slideharmony wrote: > > Hello, > anybody knows how can I get the client machine's Locale from my action > struts 2? > any help would be apprecciated. > Riccardo > Your action must extend com.opensymphony.xwork2.ActionSupport and then you can use getLocale() -- View this message in context: http://www.nabble.com/get-the-Locale-from-Action-S2--tp15799905p15810617.html 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: More package weirdness
The questionChart action exists in a different namespace than the JSP. Try - namespace="/charts" The leading / is significant. -Wes On 3/3/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How can this JSP code > > > "/> > > which resolves to be: > > > > > be generating this exception? > 11:28:45,271 ERROR > org.apache.struts2.dispatcher.Dispatcher.serviceAction():512 > - Could not find action or result > There is no Action mapped for namespace */quiz* and action name > questionChart. - [unknown location] > > Here is my def for the chart: > > >"starter,jfreechart-default"> > > > >default="true"/> > > > > > > > > 400 > > 300 > > > > > > > > > > -- > Scott > [EMAIL PROTECTED] > -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More package weirdness
[EMAIL PROTECTED] wrote: which resolves to be: The namespace is "/charts", but you use "charts". - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
More package weirdness
How can this JSP code "/> which resolves to be: be generating this exception? 11:28:45,271 ERROR org.apache.struts2.dispatcher.Dispatcher.serviceAction():512 - Could not find action or result There is no Action mapped for namespace */quiz* and action name questionChart. - [unknown location] Here is my def for the chart: 400 300 -- Scott [EMAIL PROTECTED]
Re: [struts] How to use Action Mapper?
smart acer wrote: Unfortunately only apache opensource is allowed for us so we cant use this. I'm glad I don't have to deal with policies like this one. I think I can investigate putting the redirect in interceptor, and if that doesnt work then servlet filter? I thought ActionMapper does some of this. The first problem you'll have if you try to push this inside the struts portion of your web application is that you'll need to configure struts to handle EVERY request (i.e.: an empty extension matches everything), so then you'll have to jump through hoops to get static content (.css, .js, images, etc.) working again. Once you've got that fixed, you'll need to write a special purpose ActionMapper to handle this individual case (while not messing up the mapping for other actions), and then I predict you'll still have problems with "/StrutsBlankWeb/example/" vs "/StrutsBlankWeb/example". -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] How to use Action Mapper?
The URL is actually derived from namespace, not context. (eg: context is "StrutsBlankWeb", package namespace "/example"). And for whatever reason it didnt occur to me that I could create a directory example inside Web Content and put the welcome file! I am all set now, thanks! On 3/3/08, Dave Newton <[EMAIL PROTECTED]> wrote: > > You could also just use a welcome file with a redirect. > > --- smart acer <[EMAIL PROTECTED]> wrote: > > thanks, yes to some extent this is what I am looking for but not the > > complete features as mod_rewrite. Unfortunately only apache opensource > is > > allowed for us so we cant use this. > > > > I think I can investigate putting the redirect in interceptor, and if > that > > doesnt work then servlet filter? I thought ActionMapper does some of > this. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [struts] How to use Action Mapper?
You could also just use a welcome file with a redirect. --- smart acer <[EMAIL PROTECTED]> wrote: > thanks, yes to some extent this is what I am looking for but not the > complete features as mod_rewrite. Unfortunately only apache opensource is > allowed for us so we cant use this. > > I think I can investigate putting the redirect in interceptor, and if that > doesnt work then servlet filter? I thought ActionMapper does some of this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [struts] How to use Action Mapper?
Hi Dale, thanks, yes to some extent this is what I am looking for but not the complete features as mod_rewrite. Unfortunately only apache opensource is allowed for us so we cant use this. I think I can investigate putting the redirect in interceptor, and if that doesnt work then servlet filter? I thought ActionMapper does some of this. Thanks -Vj On 3/3/08, Dale Newfield <[EMAIL PROTECTED]> wrote: > > smart acer wrote: > > Could anyone please guide me how to setup/use ActionMapper --- > > > > I would like the URL http://localhost:9080/StrutsBlankWeb/example/ to > > redirect to > http://localhost:9080/StrutsBlankWeb/example/HelloWorld.action > > Sounds like you are looking for http://tuckey.org/urlrewrite/ > > -Dale > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [struts] How to use Action Mapper?
smart acer wrote: Could anyone please guide me how to setup/use ActionMapper --- I would like the URL http://localhost:9080/StrutsBlankWeb/example/ to redirect to http://localhost:9080/StrutsBlankWeb/example/HelloWorld.action Sounds like you are looking for http://tuckey.org/urlrewrite/ -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use Action Mapper?
Could anyone please guide me how to setup/use ActionMapper --- I would like the URL http://localhost:9080/StrutsBlankWeb/example/ to redirect to http://localhost:9080/StrutsBlankWeb/example/HelloWorld.action Thanks!
Re: Need help in Action class Design
can u post the code? cple of qns before that. Is the variable that holds the search list in session scope? try .. it could help. ravi Venkat Guru wrote: > > Hi, >This is Venkat. Iam new to struts2 framework. Iam struck up with a > small problem using tag. > > I have a page which contains a select tag . on page load i will populate > its list values from server. Its a search form. when i perform the search > the results are displayed in the same page. > > In the action class, iam using the String member to get the selected > value. > > but after displaying the results in the same page, iam unable to get > tag list data > > how can i maintain the list data, > > plz help me ASAP, > > Thanks in Advance, > Venkat > -- View this message in context: http://www.nabble.com/Need-help-in-Action-class-Design-tp15803822p15806361.html 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: Troubles getting validation to work
workflow interceptor was missing, this was the problem. newton.dave wrote: > > --- mteccles <[EMAIL PROTECTED]> wrote: >> I am trying to validate a form so that field 'username' is 3 characters >> or >> more. I have tried both xml configuration and annotations but seem to be >> missing something on how it works. The form is working perfectly, ie all >> properties on the class are being set. However the execute method is >> always >> called and returns SUCCESS. Should the validation interceptor stop >> invokation of the action and return Action.INPUT? Based on the S2 >> tutorials >> i did everything required. Could the use of tiles be breaking it? Pls see >> the source below. > > I don't see where you're defining your interceptor stacks. (And your > action > defs have interceptor-refs in two different places; I'd put them all in > one > place for clarity.) > > Do your interceptor stacks include the "workflow" interceptor? > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Troubles-getting-validation-to-work-tp15799918p15806043.html 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: Troubles getting validation to work
--- mteccles <[EMAIL PROTECTED]> wrote: > I am trying to validate a form so that field 'username' is 3 characters or > more. I have tried both xml configuration and annotations but seem to be > missing something on how it works. The form is working perfectly, ie all > properties on the class are being set. However the execute method is always > called and returns SUCCESS. Should the validation interceptor stop > invokation of the action and return Action.INPUT? Based on the S2 tutorials > i did everything required. Could the use of tiles be breaking it? Pls see > the source below. I don't see where you're defining your interceptor stacks. (And your action defs have interceptor-refs in two different places; I'd put them all in one place for clarity.) Do your interceptor stacks include the "workflow" interceptor? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help in Action class Design
Hi, This is Venkat. Iam new to struts2 framework. Iam struck up with a small problem using tag. I have a page which contains a select tag . on page load i will populate its list values from server. Its a search form. when i perform the search the results are displayed in the same page. In the action class, iam using the String member to get the selected value. but after displaying the results in the same page, iam unable to get tag list data how can i maintain the list data, plz help me ASAP, Thanks in Advance, Venkat -- View this message in context: http://www.nabble.com/Need-help-in-Action-class-Design-tp15803822p15803822.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts App - Tomcat on Windows in India and Poland
I have deployed a struts web application on Windows 2003 Server in Poland and India. Application needs to display Polish language coming from SAP. This is working in India on Windows 2003 Servers. But Messages are coming Question marks from Similar Configuration Server(language is polish) in Poland . Any advice on this?
encoding - web.xml,struts-config.xml
I am working on i18n application that needs to be worked in English and Polish language. This application is working on Tomcat Servers on windows system In India, But getting Question Marks Polish language in Poland Windows System. Is there anything that needs to be handled in "web.xml" and "struts-config.xml" with encoding attribute? I don't find any difference when modified to "ISO-8859-2" Any advice or suggestion ?
Re: about DAO
hns wrote: InputStream is = getClass().getResourceAsStream("/db.properties"); Don't include a leading slash unless you really mean the root directory (which you shouldn't do in a webapp). Instead, this line: InputStream is = getClass().getResourceAsStream("db.properties"); will look for the file in the base of the classpath. (eg WEB-INF/classes/db.properties or in a jar) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about DAO
i got one file dbconnmannager.java for pooling but it has some error i know its nt an s2 question but still wait 4 ans i put in one package connpool it gives error at specific point it can not load properties file /** * Loads properties and initializes the instance with its values. */ private void init() { InputStream is = getClass().getResourceAsStream("/db.properties"); Properties dbProps = new Properties(); try { dbProps.load(is); } catch (Exception e) { System.err.println("Can't read the properties file. " + "Make sure db.properties is in the CLASSPATH"); return; } is there any rule to properties file -- View this message in context: http://www.nabble.com/about-DAO-tp15798783p15799947.html 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: Rad 6.0
2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: > > [3/3/08 1:17:00:062 PST] 001b jsp E com.ibm.ws.jsp.taglib.TldParser > logParseErrorMessage Failed to parse Tag Library > [/WEB-INF/struts-tiles.tld]: JSPG0235E: The JSP container failed to load > the > TagExtraInfo class [org.apache.struts.tiles.taglib.UseAttributeTei] > > [3/3/08 1:17:00:062 PST] 001b jsp W > com.ibm.ws.jsp.taglib.TagLibraryCache loadWebInfMap webinf tld failed to > load for resourcePath =[/WEB-INF/struts-tiles.tld] > > com.ibm.ws.jsp.JspCoreException: org.xml.sax.SAXException: JSPG0235E: The > JSP container failed to load the TagExtraInfo class > [org.apache.struts.tiles.taglib.UseAttributeTei] > It seems that you have some mixed up jars... try to republish your application, or remove it from the server and redeploy. Antonio
Troubles getting validation to work
I am trying to validate a form so that field 'username' is 3 characters or more. I have tried both xml configuration and annotations but seem to be missing something on how it works. The form is working perfectly, ie all properties on the class are being set. However the execute method is always called and returns SUCCESS. Should the validation interceptor stop invokation of the action and return Action.INPUT? Based on the S2 tutorials i did everything required. Could the use of tiles be breaking it? Pls see the source below. This is my action-config: == http://struts.apache.org/dtds/struts-2.0.dtd";> search-advanced-search-logged-out.page.template search-search-results-logged-out.page.template search-advanced-search-logged-out.page.template search-advanced-search-logged-out.page.template == And the class == @Validation() public class SearchResultsAction extends ComPageAction implements NavigationPage { private NavigationElements navigationElement; private NavigationManagement navigationManager; private String username; private int minimumAge; private int maximumAge; private boolean male; private boolean female; private String lastLogin; private boolean photoChatters; private String sortCriteria; public String execute() { return SUCCESS; } @Override public void setAcceptableParameters(List acceptableParameters) { this.acceptableParameters = acceptableParameters; } public boolean acceptableParameterName(String param) { if (acceptableParameters != null ) return acceptableParameters.contains(param); else return false; } public void setNavigationElement(NavigationManagement.NavigationElements element) { this.navigationElement = element; } public List getNavigation() { try { return navigationManager.createNavigation(navigationElement); } catch (NavigationException e) { logger.error(e.getMessage(), e); return null; } } public void setNavigationManagement(NavigationManagement manager) { this.navigationManager = manager; } public void setNavigationManager(NavigationManagement navigationManager) { this.navigationManager = navigationManager; } public void setMinimumAge(int minimumAge) { this.minimumAge = minimumAge; } public void setMaximumAge(int maximumAge) { this.maximumAge = maximumAge; } public void setMale(boolean male) { this.male = male; } public void setFemale(boolean female) { this.female = female; } public void setLastLogin(String lastLogin) { this.lastLogin = lastLogin; } public void setPhotoChatters(boolean photoChatters) { this.photoChatters = photoChatters; } public void setSortCriteria(String sortCriteria) { this.sortCriteria = sortCriteria; } public void setUsername(String username) { this.username = username; } @RequiredFieldValidator(type=ValidatorType.FIELD, message="username must be provided") @StringLengthFieldValidator(fieldName="username", minLength="3", message="no good") public String getUsername() { return username; } } == -- View this message in context: http://www.nabble.com/Troubles-getting-validation-to-work-tp15799918p15799918.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts2, JDO transaction handling
Hi, If I want to edit my domain objects directly, how can I handle transactions? Example: My action has getLogin(), which returns a database-persistent object. In order to let struts set properties of the object, a transaction must be active. I wonder if there is a "common way" to do this, if you don't use spring. One way around this would be to return detached objects and attach them in a transaction, but this leads to rather complex code because our domain model is heavily networked and we would need to consider what to detach, we cannot link non-detached objects to detached ones etc. Any hints / suggestions? Thanks in advance, Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rad 6.0
Yes, I do get errors on startup of server: [3/3/08 1:16:40:297 PST] 0014 AdminHelper A ADMN1021I: An attempt is made to stop the server1 server. [3/3/08 1:16:40:406 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled WCInboundAdmin. [3/3/08 1:16:40:422 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled WCInboundDefault. [3/3/08 1:16:40:453 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled WCInboundAdminSecure. [3/3/08 1:16:40:516 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled WCInboundDefaultSecure. [3/3/08 1:16:40:516 PST] 002c TCPChannel A TCPC0002I: TCP Channel TCP_2 has stopped listening on host * (IPv4) port 9080. [3/3/08 1:16:40:531 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled SOAPAcceptorChain1. [3/3/08 1:16:40:531 PST] 002c TCPChannel A TCPC0002I: TCP Channel TCP_3 has stopped listening on host * (IPv4) port 9043. [3/3/08 1:16:40:609 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled SOAPAcceptorChain2. [3/3/08 1:16:40:625 PST] 002c TCPChannel A TCPC0002I: TCP Channel TCP_1 has stopped listening on host * (IPv4) port 9060. [3/3/08 1:16:40:625 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled SOAPAcceptorChain3. [3/3/08 1:16:40:703 PST] 002c TCPChannel A TCPC0002I: TCP Channel TCP_4 has stopped listening on host * (IPv4) port 9443. [3/3/08 1:16:40:703 PST] 002c WSChannelFram A CHFW0020I: The Transport Channel Service has stopped the Chain labeled SOAPAcceptorChain4. [3/3/08 1:16:45:734 PST] 002c ApplicationMg A WSVR0217I: Stopping application: SchedulerCalendars [3/3/08 1:16:45:797 PST] 002c EJBContainerI I WSVR0041I: Stopping EJB jar: Calendars.jar [3/3/08 1:16:45:828 PST] 002c ApplicationMg A WSVR0220I: Application stopped: SchedulerCalendars [3/3/08 1:16:45:828 PST] 002c ApplicationMg A WSVR0217I: Stopping application: adminconsole [3/3/08 1:16:45:953 PST] 002c TilesRequestP I Tiles definition factory found for request processor ''. [3/3/08 1:16:45:984 PST] 002c ApplicationMg A WSVR0220I: Application stopped: adminconsole [3/3/08 1:16:45:984 PST] 002c ApplicationMg A WSVR0217I: Stopping application: filetransfer [3/3/08 1:16:46:016 PST] 002c ApplicationMg A WSVR0220I: Application stopped: filetransfer [3/3/08 1:16:46:094 PST] 002c ApplicationMg A WSVR0217I: Stopping application: ManagementEJB [3/3/08 1:16:46:109 PST] 002c EJBContainerI I WSVR0041I: Stopping EJB jar: mejb.jar [3/3/08 1:16:46:156 PST] 002c ApplicationMg A WSVR0220I: Application stopped: ManagementEJB [3/3/08 1:16:46:156 PST] 002c ApplicationMg A WSVR0217I: Stopping application: CookbookEAR [3/3/08 1:16:46:266 PST] 002c ApplicationMg A WSVR0220I: Application stopped: CookbookEAR [3/3/08 1:16:46:266 PST] 002c ApplicationMg A WSVR0217I: Stopping application: IBMUTC [3/3/08 1:16:46:297 PST] 002c ApplicationMg A WSVR0220I: Application stopped: IBMUTC [3/3/08 1:16:46:375 PST] 002c ApplicationMg A WSVR0217I: Stopping application: struts-blankEAR [3/3/08 1:16:46:375 PST] 002c TilesRequestP I Tiles definition factory found for request processor ''. [3/3/08 1:16:46:391 PST] 002c ApplicationMg A WSVR0220I: Application stopped: struts-blankEAR [3/3/08 1:16:46:391 PST] 002c ApplicationMg A WSVR0217I: Stopping application: query [3/3/08 1:16:46:469 PST] 002c EJBContainerI I WSVR0041I: Stopping EJB jar: querybean.jar [3/3/08 1:16:46:484 PST] 002c ApplicationMg A WSVR0220I: Application stopped: query [3/3/08 1:16:46:484 PST] 002c ApplicationMg A WSVR0217I: Stopping application: ivtApp [3/3/08 1:16:46:578 PST] 002c EJBContainerI I WSVR0041I: Stopping EJB jar: ivtEJB.jar [3/3/08 1:16:46:594 PST] 002c ApplicationMg A WSVR0220I: Application stopped: ivtApp [3/3/08 1:16:46:609 PST] 002c ApplicationMg A WSVR0217I: Stopping application: DefaultApplication [3/3/08 1:16:46:609 PST] 002c EJBContainerI I WSVR0041I: Stopping EJB jar: Increment.jar [3/3/08 1:16:46:672 PST] 002c ApplicationMg A WSVR0220I: Application stopped: DefaultApplication [3/3/08 1:16:46:672 PST] 002c SchedulerServ I SCHD0040I: The Scheduler Service is stopping. [3/3/08 1:16:46:672 PST] 002c SchedulerServ I SCHD0002I: The Scheduler Service has stopped. [3/3/08 1:16:46:766 PST] 002c AppProfileCom I ACIN0009I: The application profiling service is stopping. [3/3/08 1:16:46:766 PST] 002c ActivitySessi I WACS0049I: The ActivitySession service is stopping. [3/3/08 1:16:46:969 PST] 002c FailureScopeC A WTRN0105I: The transaction service has shutdown successful
get the Locale from Action[S2]
Hello, anybody knows how can I get the client machine's Locale from my action struts 2? any help would be apprecciated. Riccardo -- View this message in context: http://www.nabble.com/get-the-Locale-from-Action-S2--tp15799905p15799905.html 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: Rad 6.0
2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: > > That is the excepion I receive when starting the app. I have not been clear. With "starting" the app I mean when you startup the server, not when you call the homepage of your app. Antonio
Re: Rad 6.0
That is the excepion I receive when starting the app. - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 1:07 AM Subject: Re: Rad 6.0 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: [3/3/08 0:44:31:344 PST] 002b ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /index.jsp. Exception thrown : java.lang.NullPointerException at org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596) Ok this is strange... Did your application initialize correctly? I mean, do you receive an exception when starting your app? Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rad 6.0
2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: > > [3/3/08 0:44:31:344 PST] 002b ServletWrappe E SRVE0068E: Could not > invoke the service() method on servlet /index.jsp. Exception thrown : > java.lang.NullPointerException > > at org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596) Ok this is strange... Did your application initialize correctly? I mean, do you receive an exception when starting your app? Antonio
Re: Rad 6.0
[3/3/08 0:44:31:078 PST] 002b ServletWrappe A SRVE0242I: [/index.jsp]: Initialization successful. [3/3/08 0:44:31:172 PST] 002b PropertyMessa I Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true [3/3/08 0:44:31:219 PST] 002b PropertyMessa I Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true [3/3/08 0:44:31:219 PST] 002b PropertyMessa I Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true [3/3/08 0:44:31:281 PST] 002b PropertyMessa I Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [3/3/08 0:44:31:344 PST] 002b ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet /index.jsp. Exception thrown : java.lang.NullPointerException at org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:541) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495) at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353) at com.ibm._jsp._index._jspx_meth_html_link_2(_index.java:369) at com.ibm._jsp._index._jspService(_index.java:120) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:394) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332) [3/3/08 0:44:31:359 PST] 002b LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called. [3/3/08 0:44:31:391 PST] 002b WebApp E SRVE0026E: [Servlet Error]-[/index.jsp]: java.lang.NullPointerException at org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:541) at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436) at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:495) at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353) at com.ibm._jsp._index._jspx_meth_html_link_2(_index.java:369) at com.ibm._jsp._index._jspService(_index.java:120) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:394) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webconta
Re: Rad 6.0
I am new to this group, I didn't know the rules. - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Jerry Gustanski" <[EMAIL PROTECTED]> Sent: Monday, March 03, 2008 12:51 AM Subject: Re: Rad 6.0 Whoops wow I notice now that you wrote to me directly, I won't answer directly, sorry. Repost the runtime exception back to the mailing list! Antonio 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: I pointed the struts-config and struts-wildcard-config files to 1.3. Is that what you mean. Rad flags the following errors: Severity Description Resource In Folder Location Creation Time 2 /Prepare* not valid for action path struts-config-Wildcard.xml Cookbook/WebContent/WEB-INF line 24 February 25, 2008 8:16:40 PM 2 /Source* not valid for action path struts-config-Wildcard.xml Cookbook/WebContent/WEB-INF line 25 February 25, 2008 8:16:40 PM 2 /Wildcard* not valid for action path struts-config-Wildcard.xml Cookbook/WebContent/WEB-INF line 26 February 25, 2008 8:16:40 PM Jerry - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 12:22 AM Subject: Re: Rad 6.0 > 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: >> >> When I copy a 1.3.8 sample app into my RAD workspace, RAD doesn't seem >> to >> recognize that things like wildcards are now okay. It flags them as >> errors. > > > > Did you correct the reference to the DTD? > -//Apache Software Foundation//DTD Struts Configuration 1.3//EN > http://struts.apache.org/dtds/struts-config_1_3.dtd > > I brought in the 1.3.8 jars and TLDs. The errors remain. If I deploy the >> appllications, I get an error at runtime. > > > > Please post the error that you get. > > Antonio > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rad 6.0
2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: > > When I copy a 1.3.8 sample app into my RAD workspace, RAD doesn't seem to > recognize that things like wildcards are now okay. It flags them as > errors. Did you correct the reference to the DTD? -//Apache Software Foundation//DTD Struts Configuration 1.3//EN http://struts.apache.org/dtds/struts-config_1_3.dtd I brought in the 1.3.8 jars and TLDs. The errors remain. If I deploy the > appllications, I get an error at runtime. Please post the error that you get. Antonio
Re: Rad 6.0
Antonio, Thank you for your response. Yes, I am using Websphere 6.0. When I copy a 1.3.8 sample app into my RAD workspace, RAD doesn't seem to recognize that things like wildcards are now okay. It flags them as errors. I brought in the 1.3.8 jars and TLDs. The errors remain. If I deploy the appllications, I get an error at runtime. Jerry - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, March 03, 2008 12:02 AM Subject: Re: Rad 6.0 2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: Can Rad 6.0 use/run Struts versions greater than 1.1, say 1.3.8, 1.3.9, or 2.0 Well, Rad 6.0 is based on Eclipse 3.0, so it is very limited regarding the version of Java (1.4.2). And it depends on the Websphere version you are using (you are using Websphere, right? :-) ). If you are using Websphere 6.0, you can safely use Struts 1.3.x (with no extra IDE support, though). If you want to use Struts 2.0, you need to use the JDK 1.4 backported versions, since Struts 2 is compiled against JDK 5: http://struts.apache.org/download.cgi#struts2011 (look at "Alternative Java 4 JARs"). HTH Antonio - 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: Rad 6.0
2008/3/3, Jerry Gustanski <[EMAIL PROTECTED]>: > Can Rad 6.0 use/run Struts versions greater than 1.1, say 1.3.8, 1.3.9, or 2.0 Well, Rad 6.0 is based on Eclipse 3.0, so it is very limited regarding the version of Java (1.4.2). And it depends on the Websphere version you are using (you are using Websphere, right? :-) ). If you are using Websphere 6.0, you can safely use Struts 1.3.x (with no extra IDE support, though). If you want to use Struts 2.0, you need to use the JDK 1.4 backported versions, since Struts 2 is compiled against JDK 5: http://struts.apache.org/download.cgi#struts2011 (look at "Alternative Java 4 JARs"). HTH Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]