You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Christopher M. DeBracy" <ch...@debracy.net> on 2003/07/15 01:31:53 UTC

Page Navigation Philosophy

I'm new to Stuts and have read several books. To get started I began
converting one of my sites. The site is fairly basic: a navigation frame
contains graphic images driven by Javascript for the mouse handling. The
only form that exists is on a contact page. 

I created global forwards for each of the pages, but then ran into
difficulties getting the navigation bar to work properly. The following code
was generated by Dreamweaver:

<a href="home.jsp" target="content"
onClick="MM_nbGroup('down','group1','home','images/home_3.gif',1)"
onMouseOver="MM_nbGroup('over','home','images/home_2.gif','images/home_4.gif
',1)" onMouseOut="MM_nbGroup('out')"><img src="images/home_3.gif" alt=""
name="home" width="66" height="28" border="0"
onload="MM_nbGroup('init','group1','home','images/home.gif',1)"></a>

So far I've had no luck converting this to a <html:link forward> because of
the graphic images. All my attemps so far result in compilation errors or
lack of success at run-time.

Aside from this problem, the real question I have is whether I'm making
things more difficult for myself by forcing all navigation through global
forwards.

For simple sites, is it really necessary to have an action for each page,
especially if there's no user input?

Still struggling with the issue of when to do global forwards vs. action
mappings. 

Have picked up a bit by reading the message boards and appreciate any input
you may have.

Thanks.





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org