splitting one struts app into two

2009-07-30 Thread Kate Fox
I have an existing struts/tiles app that works great.  I just got a new 
requirement to add another product that will share some of the 
infrastructure already created/used in the existing app.  I thought I 
would do this by having three struts.xml files -- one for the new app, 
one for the existing app, and one for the shared stuff.


I'm having a really hard time doing this.  I tried putting file="..." into the base struts.xml file.  This works in the sense that 
I can access the actions, but the interceptors stack that I have in the 
main struts isn't working for the original app.  I think it's because 
I'm forced to have different package names?


Help would be greatly appreciated,

Kate

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: login interceptor and a servlet

2009-05-03 Thread Kate Fox

Hi Chris,

Thanks for the quick response.  Unfortunately my servlet is a true 
servlet.  I need to write directly to the OutputStream.  Is there a way 
to do that with an image action?


Thanks,

Kate

Chris Pratt wrote:

If your image servlet is a true servlet acting outside of struts, it won't
be subject to the interceptor stack.  If it's actually an image action, just
assign it a different interceptor stack that doesn't contain your
LoginInterceptor and you'll be good to go.
  (*Chris*)

On Sun, May 3, 2009 at 8:28 PM, Kate Fox wrote:

  

I have a login interceptor to check login on all my pages.  I also have a
servlet that serves up images.  The servlet does not go through the login
interceptor.  Is there a way to force it that way?

Here is my login interceptor definition:

  
  
  
  
  
  
  
  
  
  
  

Thanks for your help,

Kate

-
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



login interceptor and a servlet

2009-05-03 Thread Kate Fox
I have a login interceptor to check login on all my pages.  I also have 
a servlet that serves up images.  The servlet does not go through the 
login interceptor.  Is there a way to force it that way?


Here is my login interceptor definition:

   
   
   
   
   
   
   
   
   
   
   

Thanks for your help,

Kate

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



dynamic form action

2007-11-27 Thread Kate Fox

I have a lot of pages that have the same form fields included on them.
I would like this to be very simple and for it to be simple to add more 
pages like this.


I was thinking that I could have the form be embedded in the super class 
that all the pages implement, but I get an exception when I try to put 
in a dynamic value for the form action:


"According to TLD or attribute directive in tag file, attribute action 
does not accept any expressions"


Is there a better way to do what I want to accomplish?

Thanks,

Kate

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 + JFreeChart Plugin + HttpServletRequest

2007-11-25 Thread Kate Fox
Do you also know if it's possible for JFreeChart to work with tiles?  
Does it also need an interceptor?


Thanks,

Kate

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 + JFreeChart Plugin + HttpServletRequest

2007-11-25 Thread Kate Fox

The version where it's fixed isn't out yet, correct? (I'm using 
struts2-tiles-plugin-2.0.11.jar and it's not working).

Where can I get the patched version? Also will it work with tiles?

Thanks,

Kate


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 + JFreeChart Plugin + HttpServletRequest

2007-11-24 Thread Kate Fox
My JFreeChart action class implements ServletRequestAware, but 
setServletRequest is not being called.


Here is my definition from struts.xml:

 
  
  
  650
  500
  
  
  

How can I get a HttpServletRequest object in my action?

Thanks for your help,

Kate

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]