On 2nd thought, this is probably a bad idea - since CSS and JavaScript files have to go in the <head> of your JSP, there's no way for them to know which displayer you're using until it gets to the <menu> tag.

As a web developer, I'm much more comfortable typing in the <link> and <script> tags in my <head> than leaving that up to a tag library (which will require more resources).

Matt

On Jan 15, 2004, at 2:12 PM, Carl wrote:

Allowing the user to configure the path in the menu-config.xml file sounds good for me. sure, the files must be in the source tree, but I don't think that there is a problem with that, today, these files have to be in the source tree.

Carl



Matt Raible wrote:
That's a pretty cool idea, but I'd have to figure out a way to implement it - something like allowing the user to configure the paths for these in the menu-config.xml file. You'd still have to have your CSS and JS files in your source tree though - we can't read them from a jar. I could put them on SF, but it goes down often and you don't want to be dependent on another site.
On Jan 14, 2004, at 7:50 AM, Carl wrote:
Hi,

I'm quite new to struts menu, so plaese appologies if it's a dummy question.

Depending on the diplayer choosen, I have to add specific meta-tag in my HTML to link to correct css & js. This is not very easy to maintain.

I've thought about a solution, but seems to me a little complex :
Adding a <menu:css /> <menu:js /> whitch add the correct link to css & js URL. That would suppose to specify them in the struts-menu.xml file. Each displayer declaring the name of the js & css file(s) needed to be displayed correctly.


Is there a simpler way ? Are some of you working on solutions to solve this issue ?

All suggestions are welcome,

Carl



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-user
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
struts-menu-user mailing list
[EMAIL PROTECTED]
https://lists.sf.net/lists/listinfo/struts-menu-user



------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user



------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ struts-menu-user mailing list [EMAIL PROTECTED] https://lists.sf.net/lists/listinfo/struts-menu-user

Reply via email to