Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-30 Thread Cesar Arevalo
There is a very good eclipse plugin here http://www.jamesholmes.com/struts/console/ it might fit your needs. -Cesar www.arevalos.org - Original Message From: Arunkumar Balasubramanian [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, September 30,

struts1- problem installing struts-faces

2007-09-30 Thread Hubert Hers
Hi, I have a problem installing the struts-faces-example1-1.3.8 example. After installing tomcat 5.5.23, and copying the struts-faces-example1-1.3.8.war to my webapps directory, and starting tomcat, I get following error: SEVERE: Unable to initialize Struts ActionServlet due to an unexpected

Re: Plug in for Eclipse 3.2 to run struts applications

2007-09-30 Thread Angelo zerr
Hi, if you use struts1.x, you could use the Akrogen struts1.x cataloghttp://akrogen.sourceforge.net/struts-catalog/struts1x.htmlto generate Action, ActionForm, JSP, struts-config. Akrogen http://akrogen.sourceforge.net/index.html is plugin Eclipse whee you can write Eclipse wizard with XML/XUL.

Streaming Video?

2007-09-30 Thread Muhammad Momin Rashid
Hello Everyone, Can someone guide me on how to stream video using my struts 2 application. I have tried using the input stream method described in different thread. while the method is working fine for images, it isn't working for video (flv) file. I also tried writing the flv file to

Re: Streaming Video?

2007-09-30 Thread Pierre Goupil
Hello, I once used this page : http://rainbow.arch.scriptmania.com/scripts/music/video.html This is not Struts-related but this is not hard to adapt it. I even used it in response to an AJAX call. HTH, Pierre 2007/9/30, Muhammad Momin Rashid [EMAIL PROTECTED]: Hello Everyone, Can

Re: Streaming Video?

2007-09-30 Thread Muhammad Momin Rashid
Hello Pierre, Unless I am missing something here, this doesn't solve my problem of streaming content using a struts 2 action. I already have a player and it works file if the video is exposed using a url e.g. http://localhost:8080/video.flv But I need to expose the video using a struts 2

Re: Streaming Video?

2007-09-30 Thread Pierre Goupil
Sorry, I misunderstood your problem. Why doesn't your put stream into response method work ? Do you get an error ? According to this page : http://osflash.org/flv HTTP streaming : It is possible to semi-stream flv over http using a trick which sends the normal headers then skips forward to a

Re: Karma upgrade?

2007-09-30 Thread Marcos Hernandez
Mmmm, I see. Well I've made some contributions and/or corrections to the wiki through comments, but it's hard to keep track of them since that feature is still pendent for the wiki's Confluence App. I've found 2 of the latests, if anyone have some time to check them:

Re: Karma upgrade?

2007-09-30 Thread stanlick
Thanks for wanting to help out Marcos. Scott On 9/30/07, Marcos Hernandez [EMAIL PROTECTED] wrote: Mmmm, I see. Well I've made some contributions and/or corrections to the wiki through comments, but it's hard to keep track of them since that feature is still pendent for the wiki's Confluence

Login implementation, how to forward user to original destination?

2007-09-30 Thread Anton Pussep
I spent quite a few hours today trying to forward the user to his original destination when he has to login in between. I have an interceptor (Authentication) that is called before an action and it forwards to Login.action if the user is not logged in. The problem is that if Login.action returns

Re: Login implementation, how to forward user to original destination?

2007-09-30 Thread Paul Benedict
Anton, Acegi Security does something similar. The original requests (yes -- the actual request object) is stored in the session when the user's credentials are challenged. If they then succeed at the login page, the original request is taken from the session and forwarded along. Paul On

Re: [s1.35] Need help with Struts and Modules

2007-09-30 Thread Paul Benedict
Get rid of modules. They aren't worth the hassle. You can easily split up your struts config without using modules. On 9/28/07, Givler, Eric [EMAIL PROTECTED] wrote: Can anyone assist with this? -Original Message- From: Givler, Eric [mailto:[EMAIL PROTECTED] Sent: Saturday,

Attribute resultDivId invalid for tag submit according to TLD

2007-09-30 Thread Moacir Cardoso
Hello, I'm getting this message Attribute resultDivId invalid for tag submit according to TLD when I try to use s:submit with attribute theme=ajax When I checked the TLD, I couldn't find this attribute. I'm using Struts 2.08

Struts 2: Unable to catch exceptions via global-exception-mappings

2007-09-30 Thread mikeh96
I am unable to trap an exception and it's being pushed up until it becomes a 500 Servlet Exception. Basically, I want to catch the exception if a user mistypes an action name I am using struts2 (2.0.9). Here's the top of the trace: org.apache.velocity.exception.ResourceNotFoundException:

Re: S138: TransAction Token lifetime very short?

2007-09-30 Thread Paul Benedict
Tokens are tied to the session. If the session disappears, so does the ability to compare tokens. Why? A unique number (token) is generated and stored in the session, which is then reprinted in the JSP as a hidden field. When the form is submitted back, the hidden field is checked against the

Re: struts1- problem installing struts-faces

2007-09-30 Thread Paul Benedict
There must be a better explanation. Check the outer log files for those. We can't diagnose with that simple error message. Paul On 9/30/07, Hubert Hers [EMAIL PROTECTED] wrote: Hi, I have a problem installing the struts-faces-example1-1.3.8 example. After installing tomcat 5.5.23, and

Re: Struts 2: Unable to catch exceptions via global-exception-mappings

2007-09-30 Thread Brian Trzupek
I am not 100% sure on this, but I think you need to have struts.devMode = false in struts.properties. Give that a whirl. Brian- On Sep 30, 2007, at 9:43 PM, mikeh96 wrote: I am unable to trap an exception and it's being pushed up until it becomes a 500 Servlet Exception. Basically, I

Re: OT, ajax form submission

2007-09-30 Thread Musachy Barroso
I will second Zarar's opinion here, if all you need is to make XHRs (no fancy widgets, etc. etc), then Prototype is an excellent choice. Of course there are another 2e100 ajax frameworks to choose from :) musachy On 9/29/07, Zarar Siddiqi [EMAIL PROTECTED] wrote: Well, just because it

Where are the logic: tags?

2007-09-30 Thread Marcos Hernandez
Hi guys Just today I found out that I miss them... Is there a way to create a for loop in Struts2? because I think a block of jsp code will not work there, what is required is a framework tag. Is the logic tag library gone? -- - Marcos H. You must be the

Re: Attribute resultDivId invalid for tag submit according to TLD

2007-09-30 Thread Marcos Hernandez
Hi Moacir. Read the documentation, the resultDivId attribute is deprecated for all ajax tags. You should use the targets attribute now, and there write a coma-separated list of the element's IDs you want to send the result to. Be aware that there's a bug relating this funcionality, targeting a

Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
For iterating over a value you can use the struts2 tag s:iterator: http://struts.apache.org/2.x/docs/iterator.html , however if you want a foreach loop you could use fmtl tag c:forEach: http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html#bnakk HTH -Cesar - Original Message

Re: Where are the logic: tags?

2007-09-30 Thread Cesar Arevalo
Oh and by the way, the logic tag is gone, IMO the struts2 guys did not want to invent the wheel again. And also IMO the struts2 tags are more concise to the framework and overlap less with what is already out there, like jstl. -Cesar - Original Message From: Cesar Arevalo [EMAIL