Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:radio tag

 
usha mocherla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Web App Frameworks forum.
 
usha mocherla
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic