yeah, ur right i just want to select a default value for the radio button.
Radio button has two values a new user and a returning user.
user also has a email address.
But i am not sure how exactly this can be done ..
should i write a bean class called "User" with 2 properties,
public class User{
Private String emailaddress = null;
private String usrType = "new";
//getters and setters;
}
And then in jsp <% User usr = new User(); %>
when i use the < html:radio tag how can i display that usr?
--please help, i am new to java world
-----Original Message-----
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 3:56 PM
To: Tomcat Users List
Subject: Re: org.apache.jasper.JasperException:
/CheckCustomer.jsp(36,67) equal symbol expected
Well....
The checked attribute is without a value. You'll have to set it to
something or remove it. As mentioned by Tim Funk, the checked attribute
doesn't exist in the API for the <html:radio/> tag.
I'm guessing you want to set one of the radio buttons as a default. If
so, you'll have to do something different like set a default value in
the bean class when it's initialized.
--David
Shilpa Nalgonda wrote:
>How to resolve that?
>
>
>-----Original Message-----
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 29, 2004 3:27 PM
>To: Tomcat Users List
>Subject: Re: org.apache.jasper.JasperException:
>/CheckCustomer.jsp(36,67) equal symbol expected
>
>
>I bet its:
>
><html:radio property="checkCustomerType" value="new" checked/>
>
>-Tim
>
>Shilpa Nalgonda wrote:
>
>
>>Hi i am getting the following error,
>>org.apache.jasper.JasperException: /CheckCustomer.jsp(36,67) equal symbol
>>expected
>> at
>>
>>
>>
>org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler
.
>
>
>>java:94)
>> at
>>
>>
>>
>org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:42
8
>
>
>>)
>> at
>>
>>
>>
>org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:12
6
>
>
>>)
>> at org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:169)
>> at org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:136)
>> at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:718)
>> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>> at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)
>> at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)
>> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)
>>
>>
>>belolw is my jsp using struts tags. I have combined html and struts
>>
>>
>tags..
>
>
>>where am i doing wrong...
>>
>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>"http://www.w3.org/TR/html4/loose.dtd">
>>
>><%@ page contentType="text/html;charset=UTF-8" language="java" %>
>><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>><html:html>
>><head>
>><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
>><title>Login or Start Order</title>
>><link href="styles/base.css" rel="stylesheet" type="text/css">
>><link href="styles/checkCustomer.css" rel="stylesheet" type="text/css">
>><script language="javascript" src="basicFunctions.js"></script>
>></head>
>>
>><body>
>><html:errors/>
>><table cellspacing="0">
>> <tr>
>> <td id="progressBar" align="center">
>> <span>Welcome</span>
>> <span>Select Product</span>
>> <span>Choose Options</span>
>> <span id="active">Create Order</span>
>> <span>Review Order</span>
>> <span>Complete Order</span>
>> </td>
>> </tr>
>></table>
>> <div class="headType" id="top">Ordering from MyPublisher is quick and
>>easy</div>
>> <div>
>> <html:form action="/checkCustomer">
>> <bean:message key="prompt.emailaddress"/>
>> <html:text property="emailAddress" size="16"
>>maxlength="16"/>
>> <label>
>> <html:radio property="checkCustomerType"
>> value="new" checked/>
>> <bean:message key="prompt.checkCustomerType1"/>
>> <label>
>> <br>
>> <label>
>> <html:radio property="checkCustomerType"
>> value="returning"/>
>> <bean:message key="prompt.checkCustomerType2"/>
>> <label>
>> <br>
>>
>> <html:password property="password" redisplay="false"/>
>> <html:submit value="Continue"/>
>> </html:form>
>> </div>
>> <div>
>> <input type="button" value="Back" onClick="goBack()">
>> <input type="button" value="New User"
>>onClick="location.href='editShipping.html'">
>> <input type="button" value="Existing User"
>>onClick="location.href='orderSummary.html'">
>>
>> </div>
>></body>
>></html:html>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]