Re: help with struts 2 + jfreechart plugin example
Hi, I have the same problem once i place the struts2-jfreechart-plugin-2.0.11.jar I have got the deployment error like this Apr 29, 2008 2:13:30 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Class: gnu.xml.dom.DomElement File: DomElement.java Method: setAttributeNS Line: 249 - gnu/xml/dom/DomElement.java:249:-1 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) What kind of parsing error is this ? Can anybody help me ? thanks, jignesh swaddee wrote: > > I recently started using struts 2 by experimenting with webwork and then > moving to struts 2. I want to produce some charts using jfreechart. After > getting the example > (http://wiki.opensymphony.com/display/WW/JFreeChartResult) to work using > the webwork framework I tried it with struts > 2(http://struts.apache.org/2.x/docs/jfreechart-plugin.html). I have not > had any success. > > I'd really appreciate it if someone could help get me past this obstacle. > (the first action is working correctly) > > Thanks in advance! > > > = > Here is my struts.xml > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > /pages/UserAgentStringForm.jsp > > >
Re: Dynamic namespace in application
thanks jeromy It would be fine for me,if you will send binary or any plug in example. jignesh.patel wrote: > > Hi, > I am having struts2 + hibernate application.It uses static > namespace(crud) like http://hax.mysite.com/crud/createUser.action. > > I want it to be dynamic like, i can be able to set it with my algorithm > which is unique for each session ... > e.g > for 1 session) > http://hax.mysite.com/2345RA234/createUser.actionhttp://hax.mysite.com/2345RA234/showUser.action...etc > > for 2 session) > http://hax.mysite.com/2323F3B2S/createUser.actionhttp://hax.mysite.com/2323F3B2S/showUser.action...etc > > for 3 session) > http://hax.mysite.com/E3459A531/createUser.actionhttp://hax.mysite.com/E3459A531/showUser.action...etc > ... > ... > etc. > > Is it possible in struts2 and if yes how ? > > Thanks in advanced. > -- View this message in context: http://www.nabble.com/Dynamic-namespace-in-application-tp15889942p15890674.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: Dynamic namespace in application
This is just for security purpose.Actually it is a very secure application and i do not want to make rest of the world aware with urls,so they can copy the urls or keep in history for future use. jignesh.patel wrote: > > Hi, > I am having struts2 + hibernate application.It uses static > namespace(crud) like http://hax.mysite.com/crud/createUser.action. > > I want it to be dynamic like, i can be able to set it with my algorithm > which is unique for each session ... > e.g > for 1 session) > http://hax.mysite.com/2345RA234/createUser.actionhttp://hax.mysite.com/2345RA234/showUser.action...etc > > for 2 session) > http://hax.mysite.com/2323F3B2S/createUser.actionhttp://hax.mysite.com/2323F3B2S/showUser.action...etc > > for 3 session) > http://hax.mysite.com/E3459A531/createUser.actionhttp://hax.mysite.com/E3459A531/showUser.action...etc > ... > ... > etc. > > Is it possible in struts2 and if yes how ? > > Thanks in advanced. > -- View this message in context: http://www.nabble.com/Dynamic-namespace-in-application-tp15889942p15890274.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]
Dynamic namespace in application
Hi, I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able to set it with my algorithm which is unique for each session ... e.g for 1 session) http://hax.mysite.com/2345RA234/createUser.actionhttp://hax.mysite.com/2345RA234/showUser.action...etc for 2 session) http://hax.mysite.com/2323F3B2S/createUser.actionhttp://hax.mysite.com/2323F3B2S/showUser.action...etc for 3 session) http://hax.mysite.com/E3459A531/createUser.actionhttp://hax.mysite.com/E3459A531/showUser.action...etc ... ... etc. Is it possible in struts2 and if yes how ? Thanks in advanced. -- View this message in context: http://www.nabble.com/Dynamic-namespace-in-application-tp15889942p15889942.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: Context problem in struts2
I am using locale from the context for the whole application. As i am having application with three localization. Once the context changed it gives me the default locale instead of the previous one i have selected. com.opensymphony.xwork2.ActionContext.ActionContext.getContext().getLocale() Is there any way so i can get the same locale until i change the request parameter (request_locale=x)? Thanks. jignesh.patel wrote: > > Hi, > I am having struts2 application,whenever i am doing action redirect i > am getting new context instead of old one ? > > ../authentication/login.action > or > > > login > > > > And context log looks like ... > com.opensymphony.xwork2.ActionContext.getContext() > > > -- View this message in context: http://www.nabble.com/Context-problem-in-struts2-tp15705966p15751758.html Sent from the Struts - User mailing list archive at Nabble.com.
Context problem in struts2
Hi, I am having struts2 application,whenever i am doing action redirect i am getting new context instead of old one ? ../authentication/login.action or login And context log looks like ... com.opensymphony.xwork2.ActionContext.getContext() -- View this message in context: http://www.nabble.com/Context-problem-in-struts2-tp15705966p15705966.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 sesionExpired page
Hi, I am having struts2 application with hibernate + mysql.I want to create web app session Expired page,but i am not able to detect weather my application session expired or not. I have given session time out to 1 min also but it still displays active session. 1 My SessionChecking interceptor looks like:- public class SessionExpired implements Interceptor { public void destroy() { LOG.info("..destroy"); } public void init() { LOG.info("..init"); } public String intercept(ActionInvocation actionInvocation) throws Exception { Map session = actionInvocation.getInvocationContext().getSession(); if(session == null) { LOG.info("..interce if"); } else { LOG.info("..interce else"); } return actionInvocation.invoke(); } } After 1..2...3...5 min it still logging ("..interce else"). Do anyone know how can i detect my application session time out or not ? Thanks & regards jignesh -- View this message in context: http://www.nabble.com/Struts2-sesionExpired-page-tp15328299p15328299.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: Pretty urls without .action
Hi, I think you missed something struts.action.extension=action,, leads to not actions without ".action" but to the actions with (action-name suffix(.)). e.g http://localhost:8080/email (tends to 404 page not found) but http://localhost:8080/email. (with suffix (.) works as ,, ). Jeromy Evans - Blue Sky Minds wrote: > > neha bhatt wrote: >> I am facing same problem. >> I had tried : >> eg. >> struts.action.extension=action,, >> >> In such case I am getting Http Status 404. >> >> > As mentioned in the related post titled "Blank action extension in root > namespace causing 302 in Tomcat" (no link at time of posting), try a > non-root namespace. >> where as if I use, >> eg. >> struts.action.extension= >> >> All files with extenstion like: javascript , css and images not loading. >> >> > This is a slightly different configuration than a double comma: > > struts.action.extension= > > By setting it to blank, for every request that reaches the Struts2 > filter (eg /*), Struts2 will attempt to match it to an action. If you > take that broad approach you'll have to setup apache to serve the static > content as the V2.4 web.xml doesn't allow you to use in the > filter mapping. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Pretty-urls-without-.action-tp14947106p15036384.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: Pretty urls without .action
Hi, This is my web.xml Project Name struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts2 org.apache.struts2.dispatcher.FilterDispatcher sitemesh com.opensymphony.module.sitemesh.filter.PageFilter struts-cleanup /* sitemesh /* struts2 /* 60 ISP_View/index.html This is my sample struts.xml /XXX_View/temp.jsp /XXX_View/temp.jsp /XXX_View/temp.jsp struts.properties file struts.devMode = true struts.enable.SlashesInActionNames=true struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest And url works fine with .action and .com not works only with /email or every action name without .action ext. ): And one more thing i am using sitemesh,but i think it not a big issue at all. Br, jignesh jignesh.patel wrote: > > Hi, > > Still not able to call without any domain name like .action,.com > > URL:- http://host:8080/email(withour . extension) > Error Page:- > > type Status report > message /email > description The requested resource (/email) is not available. > > My struts.properties file > > struts.devMode = true > struts.enable.SlashesInActionNames=true > struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest > struts.action.extension=action,,com > > Have u check it with your struts application any time before.. > > Plz reply > > > > Jeromy Evans - Blue Sky Minds wrote: >> >> Yes, the constant "struts.action.extension" takes a comma separated list: >> >> eg. >> struts.action.extension=action,, >> >> The double comma above means "blank" is a valid extension >> >> You can add that to struts.properties, struts.xml or web.xml: >> http://struts.apache.org/2.x/docs/constant-configuration.html >> You'll have to take care with your mod_jk mappings. >> >> jignesh(india) wrote: >>> Hi, >>> I am having struts2 application ready with my tomcat server.Now i >>> want >>> to host it with apache server,but it should be looks like pretty one. >>> I mean i want my urls without .action,.do or anything just like action >>> name >>> nothing more.Is this possible in struts2 >>> e.g >>> https://kily.myseaversite.com/category.action should be work like >>> https://kily.myseaversite.com/category >>> >>> Can anybody help me..? >>> >>> Thanks in advanced >>> Br,jignesh >>> >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Pretty-urls-without-.action-tp14947106p14997182.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: Pretty urls without .action
Hi, Still not able to call without any domain name like .action,.com URL:- http://host:8080/email(withour . extension) Error Page:- type Status report message /email description The requested resource (/email) is not available. My struts.properties file struts.devMode = true struts.enable.SlashesInActionNames=true struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest struts.action.extension=action,,com Have u check it with your struts application any time before.. Plz reply Jeromy Evans - Blue Sky Minds wrote: > > Yes, the constant "struts.action.extension" takes a comma separated list: > > eg. > struts.action.extension=action,, > > The double comma above means "blank" is a valid extension > > You can add that to struts.properties, struts.xml or web.xml: > http://struts.apache.org/2.x/docs/constant-configuration.html > You'll have to take care with your mod_jk mappings. > > jignesh(india) wrote: >> Hi, >> I am having struts2 application ready with my tomcat server.Now i >> want >> to host it with apache server,but it should be looks like pretty one. >> I mean i want my urls without .action,.do or anything just like action >> name >> nothing more.Is this possible in struts2 >> e.g >> https://kily.myseaversite.com/category.action should be work like >> https://kily.myseaversite.com/category >> >> Can anybody help me..? >> >> Thanks in advanced >> Br,jignesh >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Pretty-urls-without-.action-tp14947106p14992044.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: Pretty urls without .action
Hi, thanks for your reply,but unfortunationatily it is not working I just want only action name without any domain like .actiion,.do,.com anything (only category) The double comma above means "blank" is a valid extension is not able to call respected action. Is there anything missing ? Jeromy Evans - Blue Sky Minds wrote: > > Yes, the constant "struts.action.extension" takes a comma separated list: > > eg. > struts.action.extension=action,, > > The double comma above means "blank" is a valid extension > > You can add that to struts.properties, struts.xml or web.xml: > http://struts.apache.org/2.x/docs/constant-configuration.html > You'll have to take care with your mod_jk mappings. > > jignesh(india) wrote: >> Hi, >> I am having struts2 application ready with my tomcat server.Now i >> want >> to host it with apache server,but it should be looks like pretty one. >> I mean i want my urls without .action,.do or anything just like action >> name >> nothing more.Is this possible in struts2 >> e.g >> https://kily.myseaversite.com/category.action should be work like >> https://kily.myseaversite.com/category >> >> Can anybody help me..? >> >> Thanks in advanced >> Br,jignesh >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Pretty-urls-without-.action-tp14947106p14948018.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]