Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 - jquery Plugin - Fieldset  RSS feed

Vamshi Jampala
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There!

I am very new to Struts2, having said that, we are using jqueryPlugin for the tabs in the main page.

When I click on a tab, an action is called and a jsp page is rendered.

The problem I have is with using fieldset.

The field set does not populate any of the <s:textfield> fields inside it(Fieldset is a widely used thing and why doesnt struts2 support it) but i can populate the normal input field.

What should I do to make use of field set and Struts2 tags.

I have tried all the different combination to make it work but its not.

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<sj:head jqueryui="true" jquerytheme="cupertino"/>


<fieldset id="one">
<legend>FieldSet Title</legend>
Family : <input type="text" maxlength="10">
<s:textfield required="true" requiredposition="right" label="Family" name="FamilyName"/>
<s:textfield required="true" requiredposition="right" label="Family" name="FamilyName"/>

<s:submit cssStyle="buttonlink ui-state-active ui-corner-all"/>
<s:reset cssStyle="buttonlink ui-state-active ui-corner-all" onclick="alert('Resetting form now... Press OK to continue!');" label="Reset The Form"/>


Thank you soo much for your time, Appreciate It!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!