Another similar problem is if I have my tiles layout.jsp in a subdirectory named 'layout'. Any tiles inserted into this layout must reference static content such as images and css files as if they were located under the layout directory also. This is really unintuitive and confusing, and again, I think there must be a better way.
Aidan
On Tue, 2 Dec 2003 08:02:08 -0700, <[EMAIL PROTECTED]> wrote:
Hmmm, not sure what you mean by sub-module, can you clarify a bit more?
Adding tiles should not force you to change your link path for Actions because this is controlled by the struts-config.xml.
Also, IMHO, relative links are generally a bad idea. It is much more readable if you hard code all your links from the site root so that anyone can easily see exactly where your link is pointing, but this is just my opinion.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 3:47 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: HTML Links with tiles and submodules
I have a link in a submodule JSP as follows:
<a href='/editDocument.do?action=view&id=<bean:write name="document" property="document_id"/>' title="View">View</a>
These links have stopped working since I have migrated to tiles. Do I now need to hard-code the submodule so that the link now looks like:
<a href='/MYSUBMODULE/editDocument.do?action=view&id=<bean:write name="document" property="document_id"/>' title="View">View</a>
also, what if my layout JSP is in a directory named layouts, which is on
the same level as my submodule directories.
e.g.
/ | | /layout/layout1.jsp | /MYSUBMODULE/index.jsp
then do I need to say:
<a href='../MYSUBMODULE/editDocument.do?action=view&id=<bean:write name="document" property="document_id"/>' title="View">View</a>
This doesn't seem like good code to me. Any help appreciated.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

