struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkamh...@moog.com
Subject [SOLVED] RE: Scriptlet Params in form
Date Thu, 01 Jul 2004 18:38:52 GMT
Thanks, this worked just fine!  Well, with some syntax changes, like 
putting the String declaration in a scriptlet tag and fetching the "model" 
object from the session first, but the general idea was right on.
Thanks man.


- Keith



Geeta Ramani <gramani@terralink.com> wrote on 07/01/2004 02:17:03 PM:

> Hey Keith:
> 
> Try instead:
> 
> String ss = "/MRA/ModelEdit.do?action=edit&currentModelNum=" + 
> model.getModelNum();
> <html:form action ="<%=ss%>" >
> 
> Regards,
> Geeta
> 
> > -----Original Message-----
> > From: kkamholz@moog.com [mailto:kkamholz@moog.com]
> > Sent: Thursday, July 01, 2004 2:26 PM
> > To: struts-user@jakarta.apache.org
> > Subject: Scriptlet Params in form
> > 
> > 
> > Hey everyone, 
> > I'm trying to send a parameter with the form submission. 
> > What I've been 
> > trying is:
> > <html:form action="/ModelEdit?action=edit&currentModelNum=<%=
> > model.getModelNum();%>">
> > 
> > I seem to remember getting something similar to work before, but this 
> > isn't working.  The rendered HTML is:
> > <form name="model" method="post" 
> > action="/MRA/ModelEdit.do?action=edit&currentModelNum=<%=model
> > .getModelNum();%>">
> > 
> > Does anyone know a way of doing this?
> > Thanks!
> > 
> > 
> > - Keith
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message