File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes asynch. submit  - Result type and other Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "asynch. submit  - Result type and other" Watch "asynch. submit  - Result type and other" New topic

asynch. submit - Result type and other

nicola galdiolo

Joined: Jul 12, 2012
Posts: 2
hello everybody

WebApplication Struts2.3 + Strtuts Jquery plugin 3.3.1 for asynch. operations.

There is a main page with 50 fields text, this is prevalued in init function, ok.
This all fields are inside a FORM for submit action, the final operation.
It is normally.

In the middle of operations I want async. refresh a single textfield Ty value whith jquery plugin tags.
The async. request (sj:submit or sj:a ) has as parameter the instaneous value of anothet texrt field Tx.

I want refresh the value, not hidden/appears. After change on Tx field Ty value appears A, before B.

I suppose it is necessary another FORM for asynch submit Tx value.

the questions :

1. the Strus Result type for async. what is ? dispatcher jsp ? json ?
2. refresh in main jsp. I must define a DIV section with FIELDTEXT inside and target the Id DIV ?
or is possible target the id <s:fieldtext name="Ty" id="Ty" > ?

3. Tha Struts action. IT must contains the Ty property. Depends of result type I suppose.
4. Is it possibile annidate FORM asyn inside synch FORM ?

Thank you regards Nicola
I agree. Here's the link:
subject: asynch. submit - Result type and other
It's not a secret anymore!