Re: Struts Velocity

2005-02-08 Thread Markos Charatzas
Thanks Joe,

Im aware of the list so I will post there, I just thought it was more of a 
Struts related thing :)

Sorry for that.

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



Charset

2005-02-08 Thread Markos Charatzas
Hi there,

Although,

1. I have defined a controller in struts-config.xml like the following
controller contentType=text/html; charset=ISO-8859-7/

2. my html templates have the content type set properly
3. my resource files are in the corrent content type

I still get question marks (?) displayed back to the browser :(
Is there any other place I need to set the charset?

Thanks in advance.

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



Struts Velocity

2005-02-07 Thread Markos Charatzas
Hi all,

Im just trying to get my head around this. Struts is meant to work with 
actions. You create the mappings of the actions in the struts-config.xml and 
define things like action handlers, forwards, etc.

Suppose I use Velocity to render the view.

Is there a standar place in struts or anywhere else that I can populate the 
velocity context? (Doing it through request.put() of course)

My problem comes when I need to change the Locale for a page which fires up a 
LocaleAction class which then renders the page Ive specified *but* without 
the velocity context being populated since all the logic to populate the 
context is defined in a different class.

In Turbine for example there is method which gets called and serves for 
populating the context.

Thanks for your input.
Markos Charatzas

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