Jeff,

Is this required with Struts-bridges 0.2? I thought it applies only
for 0.1 version.

Thanks,
Hema


On Wed, 16 Mar 2005 09:46:28 -0600, Jeff Sheets <[EMAIL PROTECTED]> wrote:
> Make sure you are using the struts-portlet form tag, so you may need
> your html-p instead of just html.
> 
> The javascript looks ok, but I usually access my forms by saying:
> 
> href="javascript:submitForm(this.form);"
> 
> Then in your javascript you can just do something like
> 
> function submitForm(theForm) { theForm.submit(); }
> 
> On Wed, 16 Mar 2005 16:31:45 +0100, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > hi !
> >
> > my problem is, that the following formular  doesn't work in a portlet
> > (with struts-bridge).
> > i get no errors, only a white page. when i use the portlet as single app
> > it also works fine.
> >
> > which way my link have to go to submit the form to my action ?
> > i think, that the JS is the problem, isnt it ?
> > the link:<html-p:link action="/kundeSearch.do">test</html-p:link> works
> > fine, but i hav no form in my action, of course...
> >
> > i had a formular like this in my struts-app:
> >
> > <html:form action="/kundeSave" styleId="EDITFORM">
> >         <html:hidden property="kunde.kunde.pk"/>
> >
> > ....
> > ...
> > </html:form>
> >
> > and a save button like this:
> >
> > <html:link styleClass="button"
> > href="javascript:submitForm();">save</html:link>
> >
> > and at last a JS-funcion like this:
> >
> > function submitForm()
> >                 {
> >                         if(checkRequiredFields()){
> >                                 if(checkUsername()){
> >  document.getElementById("EDITFORM").submit();
> >                                 }
> >                         }
> >                 }
> >
> > thank for every help
> >
> > thomas
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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

Reply via email to