Dynamic title

2010-07-20 Thread findbestopensource
Hello all, I have to set title of the page dynamically. I tried the below code, but it is not working. Please help.     " Regards Aditya www.findbestopensource.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

R: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Amleto Di Salle
inside the ".jsp" you can use the parameters defined inside tiles For Example: . BR /Amleto > -Messaggio originale- > Da: Rick Reumann [mailto:[EMAIL PROTECTED] > Inviato: lunedì 24 gennaio 2005 23.18 > A: Struts Users Mailing List &g

Re: a plus for sitemesh [was] Re: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Rick Reumann
Benedict, Paul C wrote the following on 1/25/2005 10:38 AM: When your user edits your page and validation fails, will your request-scope title still be available? Obviously, not. How do you generally handle the case when you require some request-scope variables to stick around -- save them in the f

RE: a plus for sitemesh [was] Re: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Benedict, Paul C
Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 10:26 AM To: Struts Users Mailing List Subject: a plus for sitemesh [was] Re: Best practice for dynamic Title values using Tiles? Benedict, Paul C wrote the following on 1/25/2005 10:12 AM: > I would

a plus for sitemesh [was] Re: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Rick Reumann
Benedict, Paul C wrote the following on 1/25/2005 10:12 AM: I wouldn't worry too much about having a different definition just to switch title. In essence, it is a different view and so it's deserving of a unique entry. Besides, the amount of typing is trivial because Tiles allows overriding of def

RE: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Benedict, Paul C
isting out one attribute :) Thanks, Paul -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, January 24, 2005 5:18 PM To: Struts Users Mailing List Subject: Best practice for dynamic Title values using Tiles? I'm switching back to using Tiles instead of

Re: Best practice for dynamic Title values using Tiles?

2005-01-25 Thread Rick Reumann
Dakota Jack wrote the following on 1/25/2005 2:11 AM: I just have a and feed the appropriate value to the request. State is a class as follows: public class StateContainer implements Map { private Map map; The whole problem with these suggestions to use the Request for putting in a title

Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Dakota Jack
I just have a and feed the appropriate value to the request. State is a class as follows: public class StateContainer implements Map { private Map map; public StateContainer() { int size = 89; this.map = Collections.synchronizedMap(new HashMap(size)); } public void setSta

Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Rick Reumann
Phil Steitz wrote the following on 1/24/2005 7:25 PM: May not be the best, but keeps display stuff separate. This would be way to combersome since the title will be displayed in a reusable header page. The result would be that you'd have to code one huge lo

Re: [OT] Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Rick Reumann
Erik Weber wrote the following on 1/24/2005 10:47 PM: Hello Rick. Happy New Year to you. I'm just curious. Why are you switching? I remember you advocating Sitemesh (I think it was on your site) instead of Tiles at some point. I haven't tried either one yet, but was going to try Sitemesh based l

RE: [OT] Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread David G. Friedman
ist Subject: [OT] Re: Best practice for dynamic Title values using Tiles? Hello Rick. Happy New Year to you. I'm just curious. Why are you switching? I remember you advocating Sitemesh (I think it was on your site) instead of Tiles at some point. I haven't tried either one yet, but w

[OT] Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Erik Weber
Hello Rick. Happy New Year to you. I'm just curious. Why are you switching? I remember you advocating Sitemesh (I think it was on your site) instead of Tiles at some point. I haven't tried either one yet, but was going to try Sitemesh based largely on your recommendation, next time I saw a good

Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Igor Shabalov
You need to send some parameter to the page in order to determine what to display. The determination logic can be put into tile controller class. Phil Steitz wrote: Rick Reumann wrote: I'm switching back to using Tiles instead of Sitemesh and I remember one issue that I found annoying with Tiles

Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Phil Steitz
Rick Reumann wrote: I'm switching back to using Tiles instead of Sitemesh and I remember one issue that I found annoying with Tiles and I'd be curious how you guys handle it. Say I have a form that is going to be reused for both "Edit" and "Add." I want the attribute to read something like "Add

Re: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Vic
What I would do is put in request context anything that I minght need. My action decided what to display and puts it in scope. Then in jsp and tiles tag I would use el to display the named variables. (90% of code for 1up.com (that is all tiles) is here: http://sourceforge.net/projects/infonoia (

RE: Best practice for dynamic Title values using Tiles?

2005-01-24 Thread David G. Friedman
y choice. Viola! One template fits all! Regards, David -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Monday, January 24, 2005 5:18 PM To: Struts Users Mailing List Subject: Best practice for dynamic Title values using Tiles? I'm switching back to using Tiles instea

Best practice for dynamic Title values using Tiles?

2005-01-24 Thread Rick Reumann
I'm switching back to using Tiles instead of Sitemesh and I remember one issue that I found annoying with Tiles and I'd be curious how you guys handle it. Say I have a form that is going to be reused for both "Edit" and "Add." I want the attribute to read something like "Add Employee" or "Edit