please advise how to use the
Hi, I have put the following code in my jsp but its not generating any rows where I can enter data: # Product Qty Unit Price Allocation Instructions Label Instructions Description Override Reason Please advise.
I have removed struts-default.xml so why do I get it's Interceptors stack??
Hi, I wanted to cut down to the minumim interceptors so I removed my references to struts-default, by setting struts.configuration.files invarious places, documentation confilcts quite a bit in struts.xml struts.configuration.files=struts.xml in struts.properties and even tried in web.xml struts org.apache.struts2.dispatcher.FilterDispatcher struts.configuration.files struts.xml becasue it was mentioned in a bug report https://issues.apache.org/struts/browse/WW-1966 But i still get all 18 of the defaultStack interceptors being called even though I have created my own stack and called in the struts.xml for the package, also extends="" is set for the package. My own stack gets ignored. Is there something I am doing wrong? struts version 2.1.6 _ Windows Liveā¢: Keep your life in sync. http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009
Re: File upload (jupload)--how to disable struts2' fileupload interceptor?
Andy Sykes wrote: I can't see anywhere in the documentation (I've only had a quick skim of it) that says not mapping the Struts dispatcher to /* can be dangerous.. the only example I can see is if you're using Struts interceptors/actions for webapp security - in which case hitting a servlet directly might mean there's no session information to validate the user. That's a trivial matter, though. I routinely map the Struts dispatcher filter to a set of URLs, usually when I'm mixing Struts actions with servlets like yourself. Just map the dispatcher where you need it. If you're not using the Struts CSS or JavaScript then the filter can be mapped to whatever you want. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: please advise how to use the
Prashant Singh wrote: I have put the following code in my jsp but its not generating any rows where I can enter data: Without knowing anything about the "lineItems" property it's difficult to help. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: I have removed struts-default.xml so why do I get it's Interceptors stack??
David Rocks wrote: But i still get all 18 of the defaultStack interceptors being called even though I have created my own stack and called in the struts.xml for the package, also extends="" is set for the package. My own stack gets ignored. Is there something I am doing wrong? Most likely, since defining and using custom interceptor stacks works fine. Curiously, you didn't include the configuration you're trying to use, so I'm not quite sure how to help. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
AJAX issues in struts 2.1.6
Hi I am using struts2.1.6 jar files and tried with samples for AJAX available from internet community. But none of the examples are worked for me. Getting exceptions like FreeMarker template error! Expression parameters.pushId is undefined on line 24, column 6 in template/ajax/div-close.ftl. The problematic instruction: -- ==> if parameters.pushId [on line 24, column 1 in template/ajax/div-close.ftl] -- I tried in many ways, getting this error Attribute debug invalid for tag head according to TLD I am totally confused and if anybody can give the correct way, will be great. Thanks in advance, Rajeev -- View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23584424.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
rajeevP wrote: I am using struts2.1.6 jar files and tried with samples for AJAX available from internet community. But none of the examples are worked for me. Getting exceptions like FreeMarker template error! Expression parameters.pushId is undefined on line 24, column 6 in template/ajax/div-close.ftl. The problematic instruction: -- ==> if parameters.pushId [on line 24, column 1 in template/ajax/div-close.ftl] -- I tried in many ways, getting this error Attribute debug invalid for tag head according to TLD Please include the JSP that causes the error, otherwise it's impossible to help. It may also help to list the S2 libraries you're deploying. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Disabling JSP's
Put you pages under web-inf On May 15, 2009, at 1:36 PM, Timothy Orme wrote: Hello All, I'm in the process of migrating pages from JSP's using snippets to struts actions. I'm wondering how people have disabled access to JSP's so that they cannot be accessed outside of the action anymore. Right now if I have an action like: /private/index.jsp There is nothing preventing the user from just browsing directly to /private/index.jsp instead of accessing it through the Action URL. This could have some bad implications about security, but also might just look bad if a page that should be receiving data from an action no longer has the source. How have people worked around this in the past? -Tim Orme - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Invoking multiple webservices from Action
hi We currently have a SOA based application with a struts front end. We have to invoke multiple webservices to get the data to render a single page. I was thinking of writing an Executor service inside an Action class or an Interceptor to do this. Is this the right approach ? I would like the webservices to be invoked in parallel. Are there any ParallelAction in struts. -- View this message in context: http://www.nabble.com/Invoking-multiple-webservices-from-Action-tp23586299p23586299.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts newbie - Advice on file downloading
Hi, Thanks to Richard, Mike and Dale for your help. I've now got this working. The XML is downloading fine in my development environment. I'll worry about other browsers and formats further downstream. I've used contentType "text/xml" and contentDisposition attachment;filename="myfile.xml" as suggested by Dale. Cheers, Steve -Original Message- From: Richard Sayre [mailto:richardsa...@gmail.com] Sent: 13 May 2009 12:41 To: Struts Users Mailing List Subject: Re: Struts newbie - Advice on file downloading Hi, I have the following defined: application/pdf fileStream filename="Report.pdf" 1024 My action lookks like this public String generateReport() { //use api to build PDF //the api takes an output stream //so at the end of my method i have an output stream containg the file... //bout is my output stream //file stream is a member of my Action (referenced in the fileStream param) //fileStream is an InputStream fileStream = new ByteArrayInputStream(bout.toByteArray()); return SUCCESS; } You will have to parameterize the XML to handle multiple file types: ${mimeType} Which you will set in your action. Same goes for the other parameters. I'm not sure how to get the browser to display a save dialog, I think it has to do with the mime type. I think application/octet-stream will work. -Rich On Wed, May 13, 2009 at 8:55 AM, Steve wrote: > Hi, > > > > I'm a Struts 2 newbie and I need to write some code to download dynamically > created files in various formats (csv, txt and xml). I want the user to be > presented with a "Save As" dialog regardless of file type. > > > > Does anyone have any advice / URL's for example code? I have found the > "Result Stream" documentation on the Struts site and various code snippets. > But I can't find any good complete examples. > > > > Many Thanks, > > > > Steve > > Steve Higham > > > > > > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Invoking multiple webservices from Action
You can choose to write your own threading mechanism to invoke the webservices in parallel. That is what we do. We are using FJTask, which has a neater Fork and join mechanism for invoking the threads in parallel. On Sun, May 17, 2009 at 11:38 AM, sid5 wrote: > > hi > We currently have a SOA based application with a struts front end. > We have to invoke multiple webservices to get the data to render a single > page. > I was thinking of writing an Executor service inside an Action class or an > Interceptor to do this. > Is this the right approach ? > > I would like the webservices to be invoked in parallel. > Are there any ParallelAction in struts. > -- > View this message in context: > http://www.nabble.com/Invoking-multiple-webservices-from-Action-tp23586299p23586299.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Invoking multiple webservices from Action
satyanarayana katta wrote: > > You can choose to write your own threading mechanism to invoke the > webservices in parallel. That is what we do. We are using FJTask, which > has a neater Fork and join mechanism for invoking the threads in parallel. > > I was hoping that this would be a common use case to warrant an existing interceptor, which I could use out of the box. -- View this message in context: http://www.nabble.com/Invoking-multiple-webservices-from-Action-tp23586299p23588669.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2Builder 0.1.0 has been released
What was the name of that middleware generator for HibernateMiddleGen? The screenshots in the docs remind me of that. Is there a link for the source code? The svn repo seems empty. It would be good to get through the source and see how the actions/etc are implemented and see if we can offer any help. -D tsattler wrote: > > Greetings all. > > I have posted the initial release of Struts2Builder over at SourceForge. > > Struts2Builder is a Java code generation system. It will log into an > existing Postgres or MySql database, examine the metadata, and > automatically generate a real, live, functioning Struts2 / Spring / > Hibernate CRUD (Create, Read, Update, Delete) system for every table in > that database, as well as automatically generate all the pertinent > configuration files. > > It is intended to create a baseline, which you can build upon to create > your final customized application. > > It can be downloaded (for free, of course) at > http://struts2builder.sourceforge.net. I have provided it to the Struts > community in hope it helps everyone get their projects done faster. > > All feedback on Struts2Builder is appreciated. > > --Tom > -- View this message in context: http://www.nabble.com/Struts2Builder-0.1.0-has-been-released-tp23564985p23590750.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: AJAX issues in struts 2.1.6
I have tried with this sample jsp <%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> Listing function show_details() { dojo.event.topic.publish("show_detail"); } and list of struts jar files struts2-codebehind-plugin-2.1.6.jar struts2-core-2.1.6.jar struts2-dojo-plugin-2.1.6.jar struts2-dwr-plugin-2.1.6.jar -- View this message in context: http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p23591172.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org