Wildcard Mappings -- Last one doesn't win

2010-07-08 Thread Robert M. Zigweid
Greetings, Firstly, I apologize if i display an inordinate amount of ignorance. However, after looking for quite some time, I'm failing to find the answer to my question, and practical application seems to point at there being either something obvious I'm missing, or a flaw in the documentati

[OT]Configure websphere for storing session in database

2010-07-08 Thread Ashish Kulkarni
Hi Has anyone configured websphere to store session in DB2 on AS400, or any other database, I found this URL which explains how to do it, but i am not sure how to test it, i am trying to configure this with DB2 on AS400 http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ib

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Paweł Wielgus
Hi All, two more things, such an e-mail should not contains external css source or backgrounds and there is a service that can make emailable version of a html page automaticaly from your source html, i have used it once but i don't remember the address so use google to find it. Best greetings, Pa

Re: Authorization Best Practices

2010-07-08 Thread Brian Thompson
On Thu, Jul 8, 2010 at 1:09 PM, Burton Rhodes wrote: > I say we start another thread to discuss more about this ducussion. I think that would fit best in the "struts-users-meta" list ;) -Brian - To unsubscribe, e-mail: user-un

Re: Authorization Best Practices

2010-07-08 Thread Burton Rhodes
I say we start another thread to discuss more about this ducussion. On Thu, Jul 8, 2010 at 9:31 AM, Dale Newfield wrote: > On 7/8/10 10:17 AM, MB wrote: >> >> "Using Struts 2.x can we do authorization of client request, if yes >> what are the best practices" > > That answer has been given 3 times

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread chris
Yeah. Thank you both for your responses. I think I will need to justify the benefits of the extra cost for a fancy HTML invoice compared to a plain text version. Thanks again folks. I will investigate :) Chris >> Yes, tricky indeed, but currently the only way to go. > > Not the only way. Just b

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
I'm pretty certain this is not a good idea, but it's a hack that's been floating in my head: If you use sitemesh, you could make a decorator that captures the full message, does something with it, then echoes it again. basically: -Dale ---

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
On 7/8/10 10:37 AM, Robert Graf-Waczenski wrote: Yes, tricky indeed, but currently the only way to go. Not the only way. Just because you use jsp to render pages doesn't mean that's the only way to render them. You could render that page with freemarker or velocity (or, or, or) which can mo

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Robert Graf-Waczenski
Am 08.07.2010 15:44, schrieb ch...@chrismiles.org: Thanks yeah I see what you mean. It would be easy to have a class generate tons of HTML but that would be cumbersome. Getting the resuling rendered JSP would be something tricky. Yes, tricky indeed, but currently the only way to go. Our own

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread chris
Thanks Dale. It is basically for emailing a copy of a invoice which has been populated by an action. No links or anything. All self contained except the CSS link but that is absolute anyway. Chris > On 7/8/10 9:44 AM, ch...@chrismiles.org wrote: >> Getting the resuling rendered JSP would be some

Re: Authorization Best Practices

2010-07-08 Thread Dale Newfield
On 7/8/10 10:17 AM, MB wrote: "Using Struts 2.x can we do authorization of client request, if yes what are the best practices" That answer has been given 3 times in this thread: Spring Security. The best practices are to learn about architecture and security, which are completely independent

Re: Authorization Best Practices

2010-07-08 Thread MB
Dale Newfield suggested: >Not a single one of your questions relates to struts. How exactly doesn't "Using Struts 2.x can we do authorization of client request, if yes what are the best practices" apply to Struts? Or "we can discuss what practises can be followed to implement this logic using str

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Dale Newfield
On 7/8/10 9:44 AM, ch...@chrismiles.org wrote: Getting the resuling rendered JSP would be something tricky. And not what you want. You'd still have to go through that output and modify all the relative links to make them absolute, and you sure don't want to have any javascript or forms in yo

Re: Authorization Best Practices

2010-07-08 Thread Dale Newfield
This isn't your architecture review board. This is a mailing list supporting struts, just one of many components in your application. Not a single one of your questions relates to struts. -Dale - To unsubscribe, e-mail: user-

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread chris
Thanks yeah I see what you mean. It would be easy to have a class generate tons of HTML but that would be cumbersome. Getting the resuling rendered JSP would be something tricky. > Hi, > > I am not exactly sure of such return type, but what you can try with is- > > Create a html output of the resu

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Amol Ghotankar
Hi, I am not exactly sure of such return type, but what you can try with is- Create a html output of the result and save it on server disk. Use this saved html file to embed in email, most email now support html/ rich text emails. This i think may serve your purpose. As we used to mail pdf fil

Re: Display ActionMessage added from different action

2010-07-08 Thread Greg Lindholm
Your own your own, you will have to track which action you were going to yourself. You can use the Preparable interface in your actions to store which action in the session. or... Maybe in the redirect you could pass the action name you came from. You can get the action name by adding a method l

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread chris
Yeah that is right. I want to maintain the MVC pattern, but using it for sending HTML emails to clients rather than browser requests. It has to be the HTML within the email itself rather than embedding an iframe to the website or a link to a page. Chris > Hi, > > What you want is the content of

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Amol Ghotankar
Hi, What you want is the content of the mail to have result of the called action right? i.e if my actions return list which is iterated on jsp and displayed on jsp. So instead of showing it on browser u want to show it in the content of mail??? On Thu, Jul 8, 2010 at 2:10 PM, wrote: > Hi. > >

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread chris
Hi. Thanks for the response but that is not what I mean. I want to email the contents of a view - a JSP which has been rendered after an action - but to the contents of an email rather than the contents of a browser request. Chris > If you just want to send mail after some action is executed the