Text formatting
Struts2.0.9 Has anyone successfully formatted a number 555 into 555-. MyAction.properties: format.telephone={0,number,###-} My.jsp: s:action name=myaction/ s:text name=format.telephone s:param name=value value=myTeleValue/ /s:text The only output rendered to the jsp page after numerous attempts is the string format.telephone. Thanks James smime.p7s Description: S/MIME cryptographic signature
interceptor throwing global exception
I'm struggling with configuring struts.xml global-results and global-exception-mappings for any exception thrown from an interceptor. What do I need to do to keep a request out of my action and instead go to the configured global-result? James smime.p7s Description: S/MIME cryptographic signature
2.0.9 UnknownClassVersionError
I'm getting an UnknownClassVersion error during struts2.0.9 deployment to tomcat with java 1.5.0.0.3 Is struts 2.0.9 entirely compiled in java 6? James Hartrich
S2: HashMap - from jsp to action
I'm iterating a collection (keys) from s:action to get corresponding hashmap (values) from aforementioned s:action then creating multiple s:select. Does anyone know how to construct a hashmap with ognl on a jsp? What type is then needed on the action to populate the hashmap? James
RE: Need Assistance Locating Redirect Bug
Sorry I didn't get back to you today. My cpu fan died over the weekend. Lol, help finally arrived and I'm back in business. I'm out of the office tomorrow, so I'll try you Wednesday. -Original Message- From: Ferguson, Jason M TSgt 375 CSPTS/SCE [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 12:25 PM To: user@struts.apache.org Subject: Need Assistance Locating Redirect Bug This is a followup to an earlier message about a bug causing an infinite redirect in my Struts application. We integrate with Spring via action-servlet.xml. The following is the content of my index.jsp page (the only JSP not behind WEB-INF): br/ br/ center img src=images/loading.gif /strongLoading login page/strong /center jsp:forward page=loginRedirect.do/ Now, here is the entry in struts-config.xml: action path=/loginRedirect forward=/WEB-INF/jsp/admin/login/login.jsp / Here is the entry in action-servlet.xml: bean name=/loginRedirect class=mil.af.amc.projecttracker.web.actions.LoginRedirectAction autowire=byName / And here is LoginRedirectAction.java: package mil.af.amc.projecttracker.web.actions; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Quick action to forward to the login page * * @author TSgt Jason Ferguson */ public class LoginRedirectAction extends AbstractAction { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mapping.findForward(success); } } Unfortunately, the application is apparently not even making it to the display of index.jsp. I've commented out the jsp:forward and the infinite redirect still occurs. I'm attempting to run this on OC4J 10.1.3.2, using Struts 1.3.8 and Spring 2.0.6. (Note: AbstractAction.java is not doing anything in this case... it's mostly some convenience methods). JASON M. FERGUSON, TSgt, USAF NCOIC, MAJCOM Application Development Equipment Custodian, Accounts 07R, 12C DSN: 576-5309 Commercial: (618) 256-5309 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Struts 2] Tiles plugin tutorial?
Your web.xml file can have a listener for StrutsTilesListener. Make sure your TilesInterceptor is implemented. -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 10, 2007 2:54 PM To: 'Struts Users Mailing List' Subject: RE: [Struts 2] Tiles plugin tutorial? Crazyreal: Thank you for the hint. I did that and now I am getting this error: java.io.IOException: Error including path '/layout.jsp'. The absolute uri: http://struts.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application. Here is my layout.jsp file: [EMAIL PROTECTED] uri=http://struts.apache.org/tags-tiles; prefix=tiles % table tr td colspan=2 This is the layout /td /tr tr td Body should be in next column /td td tiles:attribute name=body / /td /tr /table Do I need to define the taglib in my web.xml file? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: chenshibing [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 10:26 PM To: 'Struts Users Mailing List' Subject: 答复: [Struts 2] Tiles plugin tutorial? Neil: Your should extend package tiles-default and use tiles result type, as following: package name=mydefault namespace=/my extends=tiles-default action name=top/Home result name=success type=tilestiles.definition/result /action /package Package tiles-default was defined in struts2-tiles-plugin.jar, plz check the struts-plugin.xml config file. Best wishes! Crazyreal -邮件原件- 发件人: Neil Aggarwal [mailto:[EMAIL PROTECTED] 发送时间: 2007年7月10日 10:59 收件人: 'Struts Users Mailing List' 主题: RE: [Struts 2] Tiles plugin tutorial? Dave: Thank you for the response. I am not sure how to tell a struts action to call a tiles layout. I added the tiles jars to my lib directory and then I added the listener to my web.xml: listener listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class /listener Now, lets take my action for the home page. I have this action: action name=top/Home result name=success/top/Home.jsp/result /action How do I tell it to use my tiles definition that includes the layout? Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 6:21 PM To: Struts Users Mailing List Subject: Re: [Struts 2] Tiles plugin tutorial? --- Neil Aggarwal [EMAIL PROTECTED] wrote: Is there a good tutorial for the Tiles plugin in struts 2? Not yet; I was going to do that but was waiting for Tiles 2 to settle in a bit more then I got sidetracked. I am not seeing anything that gives me enough to move forward. At what point are you stuck? Several folks here are using it successfully. d. Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nested s:iterator
How would one iterate a bean's collectionhashmap row values by key of bean's collectionstring columnName? Here's what I have on the jsp: s:iterator id=row value=bean.tableColumnData status=rowStatus s:iterator id=columnName value=bean.tableColumns status=status s:property value=row.columnName/ s:property value=#row.columnName/ /s:iterator /s:iterator Neither s:property shows any values. Can anyone throw me a bone here? James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nested s:iterator
Quick follow up to correct myself. This works: s:property value=#row[(#columnName)]/ I referenced the following documentation http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/expressionEva luation.html James -Original Message- From: Hartrich, James CTR USTRANSCOM J6 [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 9:17 AM To: Struts Users Mailing List Subject: nested s:iterator How would one iterate a bean's collectionhashmap row values by key of bean's collectionstring columnName? Here's what I have on the jsp: s:iterator id=row value=bean.tableColumnData status=rowStatus s:iterator id=columnName value=bean.tableColumns status=status s:property value=row.columnName/ s:property value=#row.columnName/ /s:iterator /s:iterator Neither s:property shows any values. Can anyone throw me a bone here? James - 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: ParameterInterceptor
Try name=foo.bar rather than name=Foo.bar in your jsp. The how and why is out of my scope. Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 3:35 PM To: Struts Users Mailing List Subject: ParameterInterceptor I think I just encountered a feature in the way S2 handles parameters. My Action contains a bean private Foo foo and contains getters/setters. Foo has a property bar. My web page is passing the parameter Foo.bar and the Action is finding getFoo using Foo rather than foo! Is this designed to work this way? Also, is there a document that describes how the parameters are applied to bean(s)? The way to name things still seems a bit of a mystery to me. For example, in the MailReader demo, the web page names are not prefixed with the bean name in the Action class, yet it seems to be working! What is this magic that finds and populates bean properties? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s2 app reload
I want to add a new namespace to the struts.xml on the fly. Is there a way to detect this change and reload the app context? I'm trying to avoid reloading the app in the tomcat manager. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] checkboxlist tag problem
Looks like you need s:checkboxlist name=user.roles instead of name=user.roles.roleId. Be sure roles is set on the user object from the action. I'm doing two collections. #1 for the full list of checkboxes and #2 for the boxes I want pre-checked. What are you doing with the attribute id=roles? --- I'm having trouble getting my checkbox list to populate correctly. I have a User object which has a List of Role objects (roleId-Integer, roleName-String) with setter/getter as follows: private ListRole roles; /** * Returns the roles * * @return the roles */ public ListRole getRoles() { return roles; } /** * Sets the roles * * @param roles *the new user roles */ public void setRoles(ListRole roles) { this.roles = roles; } My form has the tag configured as below: s:checkboxlist list=%{roles} listKey=roleId listValue=roleName label=Roles name=user.roles.roleId id=roles / When I submit the form everything works as expected, but when I edit the User object the roles are populated in the User object but the checkboxes aren't checked as required. If somebody could point out my error to me, I'd appreciate it. Zoran - 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]
s:action S2 Tiles
Does anyone know of any existing issues with result type of stream using s:action within tiles? I'm getting an illegal state exception when using s:action executeresult = true The struts.xml result type = stream and the stream is actually html to render on the client/browser. If I skip the s:action tag and hit the action directly it works fine. I'm using S2.0.5 and a tiles-plugin2.0.5. Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tiles 2 woes
Layout.jsp %@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles; % tiles:insertAttribute name=bar/ Tiles.xml definition name=foo template=/Layout.jsp put name=bar value=/bar.jsp/ /definition Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 11, 2007 10:12 AM To: Struts Users Mailing List Subject: Tiles 2 woes I'm trying to migrate a S1 web app to S2. Most things are working with the exception of Tiles. Here is the list of things I did in case someone might detect a glitch; 1. Had to download commons-digester-1.8.jar because it was not included in \struts-2.0.6\lib 2. Added the three struts tiles jars to my project (plugin, core, api) 3. Added org.apache.struts2.tiles.StrutsTilesListener to web.xml 4. Modified struts package to extend tiles-default 5. Copied my tiles.xml 6. Copied my jsp files When I make an HTTPRequest to my struts action it correctly makes the request of the result type tiles but I receive the following error: 08:58:33,459 ERROR BasicTilesContainer:401 - Error rendering tile I have double checked all the names and file locations and this message doesn't give me much to go by! After reviewing http://struts.apache.org/2.x/docs/tiles-plugin.html it appears the tiles tag names have been changed so I updated them accordingly. Any clues before I jump? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: populating a bean
So you are going from the jsp to the action, correct? That being the case, you are doing this correctly so far. Make certain to have an encapsulated property for accountBean in your accountManager action. On submit the accountBean object will be constructed and setFirstName will be called. The bean will be set on your accountManager action. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 11:32 AM To: Struts Users Mailing List Subject: populating a bean how do I populate a bean values from a jsp page ? here's what I need to do: s:form action=accountManager method=post s:textfield name=accountBean.firstName label=First Name / s:submit /s:submit /s:form this page http://struts.apache.org/2.0.6/docs/how-do-i-populate-a-form-bean-and-ge t-the-value-using-the-taglib.html how to read the values from the bean but not how to populate them. Or may be I am not getting it... - 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]
dojo and struts2 s:combobox
Has anyone experienced a problem with s:combobox name=object.property? I think the . is throwing dojo for a loop. What happens is the onSelect event stops working if I use the . notation -- name=object.property Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s:checkboxlist
Is there a way to pre-check boxes that meet criteria? I have 2 lists, listA is for all the checkboxes and listB is for checkboxes that will be pre-checked. s:checkboxlist label=Registration list=#allreglist.regList listKey=regId listValue=regNm name=reg.registrationList /s:checkboxlist This displays a checkbox list fine for insert. How do I get the pre-selected boxes for an update? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2 s:optiontransferselect
Has anyone experienced a problem setting a list into the action using s:optiontransferselect? Is there a specific theme that must be used? I'm getting a null in my action. In my tag I have name=available, and in my action I have a global/encapsulated List named available. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 12:57 PM To: Struts Users Mailing List Subject: Re: AJAX Theme / submit form to new page? Musachy -- I agree. It's just so frustrating when you have to fool around to get a feature in S2 to work. I am a Java Architect currently involved in a teaching engagement. Who would I contact to see about writing a Struts2 book? I see this as a venture that might be worthwhile. Scott On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote: I have heard that some books are on their way, but I don't know more than that. The wiki has a lot of information, you just have to browse around a little bit, and ask here when you don't find something :) regards musachy On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Don't get me wrong -- I think S2 is a giant step forward after having used S1 for years. However, the hodge podge of limited and simple examples and no available courses or books, makes learning the framework quite a challenge. Do you know if anyone has a book in the works? Do you know of any classes offered in the US? Scott On 3/8/07, Musachy Barroso [EMAIL PROTECTED] wrote: I'm not sure that I follow. This link: http://struts.apache.org/2.x/docs/ajax-tags.html has been posted here many times, there is a link to it int the documentation: http://struts.apache.org/2.x/docs/guides.html and the showcase has several examples. Could it be more confusing? oh yeah. If you have specific objections, I'm willing to try to fix them, or document them better, and any help on the wiki is welcome. regards musachy On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Could this be any more confusing? Unless someone documents all the idiosyncracies, folks are going to give up on Struts2 and adopt RoR! I have read all the docs/wikis on the S2 site and even poured over the showcase code. I worked three evenings this week trying to figure out how to incorporate an Ajax feature that I could have written in a few minutes using XmlHttpRequest. Is there a book in the works? Reading the core code is not the most efficient way to learn how to implement a feature!! Scott On 3/8/07, Piero Sartini [EMAIL PROTECTED] wrote: Am Donnerstag, 8. März 2007 schrieb Piero Sartini: But my form tag contains theme=ajax because of the validation. is it right to make the submit button theme=css_xhtml to avoid the ajax-submit? it needs to be xhtml theme on the submit button. not very elegant in my oppinion - but it works :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Scott [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2 Tiles exception
struts2-core-2.0.5.jar xwork-2.0.0.jar S2-tiles-plugin-2.0.5 tiles-core-2.0-20070130.184344-3.jar tiles-api-2.0-20070130.184344-3.jar I have an org.apache.tiles.TilesException from BasicTilesContainer.java. Does anyone know if the following configuration is incorrect? Thanks! 1) web.xml containing the TilesServlet entry, and also the StrutsTilesListener entry. 2) struts.xml containing a package which extends tiles-default, action that uses wildcard naming, and has a result type of tiles. 3) tiles.xml - containing: definition name=admin path=/layout.jsp put name=title value=some string/ put name=banner value=/banner.jsp/ put name=menu value=admin.menu/ put name=section value=admin.section/ /definition definition name=admin.menu path=/menu.jsp /definition definition name=admin.section path=/section.jsp /definition - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Empty request parameters with enctype set to multipart/form-data
I believe there was a previous problem with FilterDispatcher.doFilter() Cheers! -Original Message- From: Karsten Voges [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 9:17 AM To: Struts Users Mailing List Subject: Re: Empty request parameters with enctype set to multipart/form-data Thanks a lot. This definitly helped. Just pasted in the following code into web.xml and the error disappeared: filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter -class /filter filter-mapping filter-namestruts-cleanup/filter-name url-pattern/*/url-pattern /filter-mapping Strange that it needs this, but good to know that there is a fix for this. Cheers, Karsten. Andrew Stepanenko schrieb: Hello, http://www.archivum.info/user@struts.apache.org/2007-02/msg00012.html Regards, Andrew Stepanenko - 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]
S2: static-parameters
Null beans are not being instantiated in the action on request. Where are static parameters such as CREATE_NULL_OBJECT set on the action? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help debugging Struts application
Sounds like you have a problem interpreting the index within your nested c:forEach. Share your jsp iteration code. -Original Message- From: Himstedt, Maik [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 9:24 AM To: 'user@struts.apache.org' Subject: Need help debugging Struts application Hello, I'm experiencing something wierd with the Struts application I'm tasked to take care off. The Struts version in use is 1.2.4, I use Eclipse 3.2.1 with a few plugins (StrutsIDE might be iof interest here) for developing. The application is hosted by Tomcat 5.0.29 locally during development and by Websphere 6.0 in production. The problem described below happens regardless of the server. We have a JSP to show something like a tree structure to the user: the user is presented a list with the tree's root at the top followed by the children. The JSP walks through a list with c:foreach and prints out the elements. Internally, this list is generated by a DB access and some sorting to get it properly ordered (the root is the first element, followed by a child with it's possible children etc. (a drawing is at the end of the post). The problem now occuring is: a single children is listed twice (I can see it in the generated page's source). I checked the internal list generated to see if the element exists twice there as well before the list is put into the request, but it doesn't, there is only one occurence of it. Now, is there a way to debug the things happening between the forwarding and the finished output? I set a breakpoint in the JSP for the output page and it stops there without showing the source. I can access the variable, though, and I can see that the list has TWO occurences now. Any ideas what could cause this or how I can locate the problem? The list: A -B -B - this is the duplicate of the one directly above -B -C -C -B Thanks for your time, Maik - 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: General question
Are you talking about different browser windows or just new tabs in the same browser? Perhaps try an application scoped variable that tests the current user, allowing only one instance of the user to operate the app. -Original Message- From: Maya menon [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 12:52 PM To: user@struts.apache.org Subject: General question I have a struts based J2ee app which displays data from DB in the results.jsp page. For DB data access, I use a DAO which returns a serialized object. This serialized object, I set it to request object using setAttribute and retrieve it using bean:write tag i n jsp page. My question is: if users try to open another window and do simultaneous tasks, how can I avoid same user from working in two or more different windows in a Struts based j2ee application ? Any thoughts.. - Everyone is raving about the all-new Yahoo! Mail beta. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [s2] multi part plugin
And the same thing I reported last month. Corrected with a new FilterDispatcher class implementing Filter StrutsStatics. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 7:40 PM To: Struts Users Mailing List Subject: Re: [s2] multi part plugin Hrm, that's the same thing I reported last week sometime. --- Don Brown [EMAIL PROTECTED] wrote: Fixed, thanks for bringing it up: http://issues.apache.org/struts/browse/WW-1692 Don On 1/30/07, bob [EMAIL PROTECTED] wrote: Hello. I'm moving my application up to s2.04 ( from 2.0.1 ). I'm getting an error from the struts filter that says it can't find the pell mulit part request class. The odd thing is, I have verified that the correct jar is available and that it holds the correct class. The problem seems to be that struts is looking for it under the wrong package. Note the missing class name below. The struts2-pell-multipart-plugin-2.0.4.jar does have the correct class, but its package is org.apache.struts2.dispatcher.multipart To me, it seems like the entry in the struts-plugin.xml file in the jar is just wrong. Is this possible? 17:57:10,918 ERROR [/artistSite]:3638 - Exception starting filter struts2 Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean - jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/ struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist er(XmlConfigurationProvider.java:209) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Struts XmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultC onfiguration.java:130) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con figurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa tcher.java:398) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.jav a:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio nFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilte rConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav a:3634) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9 04) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503 ) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.j ava:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea nServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:137 7) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:81 4) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
S2 - allowedTypes
The allowedTypes param of FileUploadStack is working correctly however upon return input (S2 default) I'm losing request parameters. How can I configure S2 to return a specific inputUpdate? Or how can I retrieve my request params within my actions.input()? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Accessing files from file server
I believe what you need to do is start your tomcat service as a tomcat-user who specifically has access to the file server. -Original Message- From: Priya Khanna [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 1:39 AM To: user@struts.apache.org Subject: Accessing files from file server Hi All, I am developing an application using struts and tomcat. In my application I want to provide the functionality of download and upload of files from server. But these files will not be on machine running tomcat. It will be on file server. First issue I am facing is that if I run tomcat using local service then I am not able to access these files in my application. Though I have added my computer name on which tomcat server is running to file server. But if I run tomcat as a person who is in domain then I am able to access these files. Second issue is that - If I want to upload the files then I want to check that user who is logged in to the application has write access or not on file server. If not then he should get error message. My user will be logged in to application as same user id as his/her domain user id. But I am not sure how to achieve this. If any one has pointer on this then please let me know. Regds Priya Khanna CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS*** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]