I have the following scriptlet code that I would like to convert to struts:

<%
// Global Variables common to every JSP page.
String staticPathCommon = "/dc/common";
String staticPathApp = "/timetracker";
%>
        <link type="text/css" rel="stylesheet"
href="<%=staticPathCommon%>/styles/dc.css">
        <script language="Javascript" type="text/javascript"
src="<%=staticPathApp%>/scripts/tt.js"></script>

Is there a way, using struts, to define these variables, and then (using
<bean:write> or something) display them?

I could define them in my Contants class, but then I'd have to put that bugger
in the session right!?

Another thing I'd like to do is put these dynamic values in my
ApplicationResources.properties file.  I've tried scriptlets, but these don't
get executed.  Will <bean:write> tags get executed in this file?

Thanks,

Matt

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to