Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Struts
struts 2 don�t get radio button
igson mendes
Greenhorn
Posts: 2
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello !!!
I have code thar are running well but have a little problem , I don�t get the radio button in my apllicantion ........I need your help !!!
<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Criar Jogo </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="../templates/questionario.css" rel="stylesheet" type="text/css" /> </head> <s:head theme="ajax"/> <body> <s:form action="incluirQuestionario" theme="simple"> <p id="banner"> </p> <div id="principal"> </div> <table id="tabela"> <tr> <td> Nome do Question�rio : </td> </tr> <tr> <td> <s:textfield name="nome" size="35"> </s:textfield> </td> </tr> <tr> <td> <s:submit value="Incluir" theme="ajax" notifyTopics="evento" align="left"></s:submit> </td> </tr> </table> <s:url id="qsto" action="listaQuestionario.action"> </s:url> <s :mrgreen: iv id="tabela_remota" href="%{qsto}" theme="ajax" refreshOnShow="true" executeScripts="true" listenTopics="evento"></s :mrgreen: iv> <div id="rodape"> @2007 - Sophos <br/> Sistema Educacional a Dist�ncia <br/> </div> </s:form> </body> </html>
<?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="display" uri="http://displaytag.sf.net" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> Criar Jogo </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> </head> <body> <center> <display:table name="lista" requestURI="questionario.jsp" pagesize="3" uid="item" cellpadding="10" cellspacing="0"> <display:caption> Lista de Question�rios </display:caption> <display:column title="Cod."> <input type="radio" name="codQuest" value="${item.codQuest}" /> </display:column> <display:column property="nomeQuest" title="Questionario"></display:column> </display:table> </center> </body> </html>
package pkg.sophos.action; import java.sql.SQLException; import java.util.List; import pkg.sophos.bean.Questionario; import pkg.sophos.dao.QuestionarioDAO; import com.opensymphony.xwork2.ActionSupport; public class IncluirQuestionario extends ActionSupport { private static final long serialVersionUID = 2299116666629648077L; private String codQuest ; /******************************************* * Metod chamado para incluir Question�rio* *******************************************/ public String execute() { System.out.println(codQuest); return "success" ; } public final String getCodQuest() { return codQuest; } public final void setCodQuest(String codQuest) { this.codQuest = codQuest; } }
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <include file="struts-default.xml" /> <package name="default" extends="struts-default"> <action name="Login" class="pkg.sophos.action.Login"> <result name="valido"> /formulario/principal.jsp </result> <result name="invalido"> /formulario/erro/erro_Login.jsp </result> </action> <action name="incluirQuestionario" class="pkg.sophos.action.IncluirQuestionario"> <result> /questionario.jsp </result> </action> <action name="listaQuestionario" class="pkg.sophos.action.ListarQuestionario"> <result name="listaQuestionario"> /ajax/listaQsto.jsp </result> </action> </package> </struts>
The single problem is I can�t get de radio button ......
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
In Need of Urgent help Struts + jquery
Switching form action based upon radio selection
Help
s:radio and display tag
Form Being Rendered Outside of the Page
More...