File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes html:radio tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:radio tag " Watch "html:radio tag " New topic
Author

html:radio tag

usha mocherla
Ranch Hand

Joined: Sep 24, 2004
Posts: 33
hi
i m trying to write the following html:radio tag in two ways from which i m getting only one.


<td><html:radio property="criteria" value="sel1" />Select Date<a href="javascript:NewCal('seldate','ddmmyyyy')"> 
<img src="image-files/calendar_icon.gif" width="16" height="16" border="0" alt="Pick a date" /><input type="text" name="seldate"></td>

this code snoppet is working

due to the presence of <input> tag,it ia voilating struts framework.so i have to use <html:text> tag,which is not working.

<td><html:radio property="criteria" value="sel1" />Select Date<a href="javascript:NewCal('seldate','ddmmyyyy')"> 
<img src="image-files/calendar_icon.gif" width="16" height="16" border="0" alt="Pick a date" /><html:text property="sdate"/></td>

bcause of adding html:taxt tag,the page is not getting displayed and also not giving any error.

can anybody tell me the reason?
thanx
regards
Anup Kri$hnan
Greenhorn

Joined: Nov 25, 2004
Posts: 1
Hi Usha ,
The code snippet <html:text property="sdate"/> , do u have sdate as a form variable ? coz as per u the working snippet has ( <input type="text" name="seldate"> ) seldate as variable. check the variable name. that is the only thing doubtfull else the code is fine n should work.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

"anup Kri$hnan",

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Additionally, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

Moving to the Web App Frameworks forum.
usha mocherla
Ranch Hand

Joined: Sep 24, 2004
Posts: 33
Hi Anup
I am thankful for your efforts,but sorry to say that even this is not working.
The page is going blank.
Is there any other option?If possible please let me know.
thanx
regards.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: html:radio tag
 
Similar Threads
Ajax, Struts, and a few pesky event based issues
code in jsp
Object has no properties
Calendar Problem
logic:forward problem