Weles,
Just put your struts form inside the <sj:dialog tags>. Then just
process your form in your action just as you would normally. I've
posted an example below - hope that this helps.
Regards
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head><sj:head/></head>
<sj:dialog
id="mymodaldialog"
modal="true"
overlayColor="#903"
overlayOpacity="0.8"
title="Model Dialog and Form"
position="['right','top']"
>
<img id="indicator" src="images/indicator.gif"
alt="Loading..."/>
<s:form action="set-vin" method="post" theme="simple">
<label for="name">First Name</label>
<s:textfield name="name" value="%{firstName}"/>
<s:submit type="button" label="Continue"/>
</s:form>
</sj:dialog>
On Jun 11, 9:45 pm, Weles Siqueira <
kwe...@gmail.com> wrote:
> Hi Gilbert!
>
> I am using the modal form too. I don't have the answer that you need. But i
> would like ask you. Please
> how i do save my form and send it for my action?
>
> Thank you!
>
> 2010/6/11 Gilbert <
roger.var...@googlemail.com>
>
>
>
> > Hi
>
> > I'm using the Struts 2 jquery modal dialog and putting a standard
> > struts form inside it. The form is displayed and posts to my action as
> > expected. However the user is still able to dismiss the form by
> > closing the dialog with the X in the top right hand corner. How do I
> > switch this off - as I need to force the user to react to the form?
>
> > Regards
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "struts2-jquery" group.
> > To post to this group, send email to
struts2...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
struts2-jquer...@googlegroups.com<
struts2-jquery%2Bunsu...@googlegroups.com>
> > .