Struts <html:base> Tag

This tag renders an HTML base element. The <base> tag specifies the base URL/target for all relative URLs in a document. The <base> tag goes inside the element.


<html:base target=""/>

Name Description
target The window target for this base reference.
server The server name to use instead of request.getServerName().
ref The reference from which the base uri will created. Possible values are:

  • page – The base uri will be the jsp page location. (default)
  • site – The base uri will be the application context path.


     Struts 1.3


No comments yet.

Leave a Reply