File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes problem in Dynamic webform creation ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem in Dynamic webform creation ?" Watch "problem in Dynamic webform creation ?" New topic

problem in Dynamic webform creation ?

Nagarajan Thangapandi

Joined: Mar 18, 2008
Posts: 9
<div id="main">
<form action="" id="form_result">

<div onclick="display_fields(0)" id="nofields" style="display: none;" class="notification">
<h2>You have no fields yet!</h2>

Click the buttons on the right to add fields to your form.


<div class="buttons" id="div_button">

Save Form

<div id="debug_box"></div>

I created WebForm using JQuery. the user can create own design using this page. After creating the form, User click "Save Form". the form(form_result) save as one JSp or HTML file.
How to save the Form as file. whether the Jquery function is available to save the form as file or we need to use Action class(Struts 2). How to pass the Whole form to action class to save a form as file. Can you please provide the solution.

Nagarajan T.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button. (And disable HTML when posting HTML.)
David Newton

Joined: Sep 29, 2008
Posts: 12617

If you're just generating text, send it as a post parameter, just like any other form field.
It is sorta covered in the JavaRanch Style Guide.
subject: problem in Dynamic webform creation ?
Similar Threads
Need help on understanding ww:token
pass a variable in the URl
Communicate with the server without a browser.
Can you read this?
Ajax code getting null value