The TreeModel interface and DefaultTreeModel implementation of the JDK provide the 
necessary functionality to manage the state of a tree which will be managed in a set 
of database tables.  We will be rendering the state of the tree in HTML.  My question 
is how to build the HTML links to correctly communicate which link is clicked in 
Struts 1.1 RC1.  I picture a single Action class, something like MenuAction that would 
then get a set of parameters indicating the node clicked and then delegate to the 
business object to update the TreeModel accordingly.  Much of the documentation is 
about using ActionForms to pass information to the Struts Action.  Without A Formbean 
how does one correctly use the action attribute of the <html:link> tag in struts 1.1?

<html:link action="/menu?menuID=20&content_id=30">Arts</html:link>
<html:link action="/menu?menuID=10&content_id=30">English</html:link>

Tree could be something like:
Arts
  Music
    Learning Experiences
  Theature
    Best Practices 
ELA
  Learning Experiences
  Best Practices
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3510.1100" name=GENERATOR></HEAD>
<BODY style="FONT: 10pt Tahoma; MARGIN-LEFT: 2px; MARGIN-TOP: 2px">
<DIV><FONT face="Courier New" size=3>The TreeModel interface and 
DefaultTreeModel implementation of the JDK provide the 
necessary&nbsp;functionality to manage the state of a tree which will be managed 
in a set of database tables.&nbsp; We will be rendering the state of the tree in 
HTML.&nbsp; My question is how to build the HTML links to correctly communicate 
which link is clicked in Struts 1.1 RC1.&nbsp; I&nbsp;picture a single Action 
class, something like MenuAction that would then get a set of parameters 
indicating the node clicked and then delegate to the business object to update 
the TreeModel accordingly.&nbsp; Much of the documentation is about using 
ActionForms to pass information to the Struts Action.&nbsp; Without A Formbean 
how does one correctly use the action attribute of the &lt;html:link&gt; tag in 
struts 1.1?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=3>&lt;html:link 
action="/menu?menuID=20&amp;content_id=30"&gt;Arts&lt;/html:link&gt;<BR>&lt;html:link 
action="/menu?menuID=10&amp;content_id=30"&gt;English&lt;/html:link&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=3>Tree could be something like:</FONT></DIV>
<DIV><FONT face="Courier New" size=3>Arts</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp; Music</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp;&nbsp;&nbsp; Learning 
Experiences</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp; Theature</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp;&nbsp;&nbsp; Best Practices 
</FONT></DIV>
<DIV><FONT face="Courier New" size=3>ELA</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp; Learning Experiences</FONT></DIV>
<DIV><FONT face="Courier New" size=3>&nbsp; Best Practices</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to