[EMAIL PROTECTED] wrote:
<FORM METHOD="LINK" ACTION="BuildPostMessageViewAction.do"> <INPUT TYPE="submit" VALUE="Post message for this classmate"> </FORM>
This works fine, but I have to ask, is this how a purely struts application should be written, or is there a truly struts-based solution to what I was trying to do? Thanks!
I, for one, don't have any problems with this approach from a Struts standpoint. This does what you want to do without creating any unnecessary overhead. I can't think of anything more struts-like than that. I think that too many people on this list forget that the Struts custom tags are really an offshoot of Struts, not the central thing. They make it easier for a JSP page to work with the framework, but they are not necessary. The fact that you are linking to an Action instead of a JSP page tells me that this is a "struts-based" solution.
That said, my strict HTML standards compliance antennae are all a-quiver. It looks like what you want here is a basic link that "looks like" a button; you don't need to have an HTML form at all. You can do that with CSS:
<style type='text/css'> a.fakeButton { background-color: gray; border-style: outset; } a.fakeButton:active { border-style: inset; } </style>
<a href="BuildPostMessageViewAction.do" class="fakeButton">Post message for this classmate</a>
(Haven't tested that; may not work perfectly; should come pretty close.)
-- Jeff
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]