Hi -

I'm a bit of a newbie to Struts so I hope you can bear with me.

I'm one of several developers working on a struts framework Registration
project for my company. We are currently having an internal debate as to how
to set up application contexts and asset pathing in our JSP pages for this
and future projects we are slated to build.

The Java Architect on the project believes we should use the <html:base/>
tag in our JSPs. That way we can set the context (or pathing) via the
taglib. This would help for transferring files between our Dev and
Production environments, for example.

A few of the web developers believe that we should set a J2EE directive
which maps all requests to the application context we set. That way, we can
set the pathing to be whatever we want without being constrained by what the
Base Href is.

By using <html:base/>, I assume that we will be adding a BASE HREF tag to
the top of every JSP page. I think this is odd. I never set a BASE HREF tag
unless I want to view the page completely out of context (like on my
desktop). Moreover, who really uses BASE HREF on every JSP page? I almost
never see it in the source code of sites I visit. It just strikes me as odd
and an unusual practice.

Any thoughts?

Thanks,

Dylan MacDonald

Reply via email to