MrPrince
asked on
External <PARAM> Code.
I have a quick question regarding JAVA and HTML. I'm building an Intranet for my work place. Currently each one of my Intranet pages uses tables, and a Java class for the navigation menu. In my html code I'm using the <PARAM> tag to tell JAVA exactly what I want it to do. This works well and I'm happy with the result. However if I need to make a change to my menu I would have to update each page individually. Although I could use Find and Replace to go through the site making site wide changes to the menu I would prefer to have one piece of code with my <PARAM> information that each page would pick up and use. This would make life much easier for site wide updates and remove a large block of code from each page. Any ideas as to how I would achieve this?
Thanks.
MrPrince.
Thanks.
MrPrince.
So you're using applets then, jsp or what?
ASKER
Sorry, I'm being vague. I'm using a applet, its the code from the applet I'm trying to move away. Hope this makes sense.
You could have a simple properties file on the server from which you serve your applets. The applets could then connect and read this file. So the result is that only one file need change.
another option is to use some scripting language for your pages (PHP / ASP / JSP)
ASKER
CEHJ - Could you be more specific?
CEHJ's suggestion is to
1. put all your configuration in a single .txt file on server;
2. on startup applet downloads this .txt file, parses it and diplays the information.
1. put all your configuration in a single .txt file on server;
2. on startup applet downloads this .txt file, parses it and diplays the information.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If this sounds a bit abstract by the way, i could give you a hand if and when you come to do it.
ASKER
CEHJ,
Thanks for the tips that sounds exactly like what I want to do, your help is/would be appreciated! By the way, my N.A. has asked me to set this up on a NT4 machine running PWS not IIS. Is this going to present big problems? Also below is a sample of the code I’m trying to move away, it may give you a better idea as to what I’m trying to achieve:
<applet code="apPopupMenu.class" codebase="..//WebScripts/J ava/" width="730" height="23" align="absmiddle" archive="apPopupMenu.jar">
<param name="isHorizontal" value="True">
<param name="overSound" value="pix/put.au">
<param name="clickSound" value="pix/empty.au">
<param name="systemSubFont" value="True">
<param name="solidArrows" value="True">
<param name="buttonType" value="1">
<param name="status" value="link">
<param name="alignText" value="left">
<param name="backColor" value="FDDCAF">
<param name="backHighColor" value="FDC16B">
<param name="fontColor" value="000000">
<param name="fontHighColor" value="000000">
<param name="font" value="Arial,12,1">
<param name="3DBorder" value="false">
<param name="pressedItem" value="0">
<param name="menuItems" value="
{_,_,_}
{ Organisation}
{|Staff Database,/Organisation/Sta ffDatabase .asp,_self }
{|Org Charts,/Organisation/OrgCh arts.asp,_ self}
{|Board,/Organisation/Boar dMembers.a sp,_self}
{|Opportunities,/Organisat ion/Opport unities.as p,_self}
//
{ Information}
{|Hours and Pricing,/Information/Hours Pricing.as p,_self}
{|Parking & Tour Information,/Information/P arkingTour Info.asp,_ self}
{|Facts,/Information/Facts .asp,_self }
{|Event Pro/Events,/Information/Ev entPro.asp ,_self}
{|Daily News,/Information/DailyNew s.asp,_sel f}
{|Statistics}
</applet>
Thanks for the tips that sounds exactly like what I want to do, your help is/would be appreciated! By the way, my N.A. has asked me to set this up on a NT4 machine running PWS not IIS. Is this going to present big problems? Also below is a sample of the code I’m trying to move away, it may give you a better idea as to what I’m trying to achieve:
<applet code="apPopupMenu.class" codebase="..//WebScripts/J
<param name="isHorizontal" value="True">
<param name="overSound" value="pix/put.au">
<param name="clickSound" value="pix/empty.au">
<param name="systemSubFont" value="True">
<param name="solidArrows" value="True">
<param name="buttonType" value="1">
<param name="status" value="link">
<param name="alignText" value="left">
<param name="backColor" value="FDDCAF">
<param name="backHighColor" value="FDC16B">
<param name="fontColor" value="000000">
<param name="fontHighColor" value="000000">
<param name="font" value="Arial,12,1">
<param name="3DBorder" value="false">
<param name="pressedItem" value="0">
<param name="menuItems" value="
{_,_,_}
{ Organisation}
{|Staff Database,/Organisation/Sta
{|Org Charts,/Organisation/OrgCh
{|Board,/Organisation/Boar
{|Opportunities,/Organisat
//
{ Information}
{|Hours and Pricing,/Information/Hours
{|Parking & Tour Information,/Information/P
{|Facts,/Information/Facts
{|Event Pro/Events,/Information/Ev
{|Daily News,/Information/DailyNew
{|Statistics}
</applet>
>>Is this going to present big problems?
No reason why. All you need to do is create a properties file:
isHorizontal=True
overSound=pix/put.au
etc.
and get the applet to read it.
No reason why. All you need to do is create a properties file:
isHorizontal=True
overSound=pix/put.au
etc.
and get the applet to read it.