Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

amma mal

Greenhorn
+ Follow
since Apr 15, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by amma mal

Hi All.

I am using struts-jquery tabs and using "qxhtml" theme, I was trying to apply tooltip="Enter Username" on label name "Username" to my jsp page. My output is

Username: Enter Username

when I mouseover on label name its not working, but when I mouse over on "Enter Username" its working.
I dont know why the tooltip message is displaying after label name.

and my tooltip:ftl is

<#if parameters.tooltip?exists><#t/>
<img
<#if parameters.tooltipIcon?exists><#t/>
src='<@s.url value="${parameters.tooltipIcon}" />'
<#else><#t/>
src='<@s.url value="/qxhtml/tooltip.gif" />'
</#if><#t/>
alt="${parameters.tooltip?html}"
title="${parameters.tooltip?html}"
onmouseover="<#rt/>
<#if parameters.tooltipAboveMousePointer?exists><#t/>
<#t/>this.T_ABOVE=${parameters.tooltipAboveMousePointer};<#t/>
</#if><#t/>
<#if parameters.tooltipBgColor?exists><#t/>
<#t/>this.T_BGCOLOR='${parameters.tooltipBgColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipBgImg?exists><#t/>
<#t/>this.T_BGIMG='<@ww.url value="${parameters.tooltipBgImg}" />';<#t/>
</#if><#t/>
<#if parameters.tooltipBorderWidth?exists><#t/>
<#t/>this.T_BORDERWIDTH=${parameters.tooltipBorderWidth};<#t/>
</#if><#t/>
<#if parameters.tooltipBorderColor?exists><#t/>
<#t/>this.T_BORDERCOLOR='${parameters.tooltipBorderColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipDelay?exists><#t/>
<#t/>this.T_DELAY=${parameters.tooltipDelay};<#t/>
</#if><#t/>
<#if parameters.tooltipFixCoordinateX?exists && parameters.tooltipFixCoordinateY?exists><#t/>
<#t/>this.T_FIX=[${parameters.tooltipFixCoordinateX}, ${parameters.tooltipFixCoordinateY}];<#t/>
</#if><#t/>
<#if parameters.tooltipFontColor?exists><#t/>
<#t/>this.T_FONTCOLOR='${parameters.tooltipFontColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontFace?exists><#t/>
<#t/>this.T_FONTFACE='${parameters.tooltipFontFace}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontSize?exists><#t/>
<#t/>this.T_FONTSIZE='${parameters.tooltipFontSize}';<#t/>
</#if><#t/>
<#if parameters.tooltipFontWeight?exists><#t/>
<#t/>this.T_FONTWEIGHT='${parameters.tooltipFontWeight}';<#t/>
</#if><#t/>
<#if parameters.tooltipLeftOfMousePointer?exists><#t/><#t/>
<#t/>this.T_LEFT=${parameters.tooltipLeftOfMousePointer};<#t/>
</#if><#t/>
<#if parameters.tooltipOffsetX?exists><#t/>
<#t/>this.T_OFFSETX=${parameters.tooltipOffsetX};<#t/>
</#if><#t/>
<#if parameters.tooltipOffsetY?exists><#t/>
<#t/>this.T_OFFSETY=${parameters.tooltipOffsetY};<#t/>
</#if><#t/>
<#if parameters.tooltipOpacity?exists><#t/>
<#t/>this.T_OPACITY=${parameters.tooltipOpacity};<#t/>
</#if><#t/>
<#if parameters.tooltipPadding?exists><#t/>
<#t/>this.T_PADDING=${parameters.tooltipPadding};<#t/>
</#if><#t/>
<#if parameters.tooltipShadowColor?exists><#t/>
<#t/>this.T_SHADOWCOLOR='${parameters.tooltipShadowColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipShadowWidth?exists><#t/>
<#t/>this.T_SHADOWWIDTH=${parameters.tooltipShadowWidth};<#t/>
</#if><#t/>
<#if parameters.tooltipStatic?exists><#t/>
<#t/>this.T_STATIC=${parameters.tooltipStatic};<#t/>
</#if><#t/>
<#if parameters.tooltipSticky?exists>
<#t/>this.T_STICKY=${parameters.tooltipSticky};<#t/>
</#if><#t/>
<#if parameters.tooltipStayAppearTime?exists><#t/>
<#t/>this.T_TEMP=${parameters.tooltipStayAppearTime};<#t/>
</#if><#t/>
<#if parameters.tooltipTextAlign?exists><#t/>
<#t/>this.T_TEXTALIGN='${parameters.tooltipTextAlign}';<#t/>
</#if><#t/>
<#if parameters.tooltipTitle?exists><#t/>
<#t/>this.T_TITLE='${parameters.tooltipTitle?js_string}';<#t/>
</#if><#t/>
<#if parameters.tooltipTitleColor?exists><#t/>
<#t/>this.T_TITLECOLOR='${parameters.tooltipTitleColor}';<#t/>
</#if><#t/>
<#if parameters.tooltipWidth?exists><#t/>
<#t/>this.T_WIDTH=${parameters.tooltipWidth};<#t/>
</#if><#t/>
<#t/>return escape('${parameters.tooltip?js_string}');" />
</#if><#t/>

and my jsp code

<s:select label="Username" tooltip="Enter Username"
name="UN"
id="UN"
tooltipIconPath='"/qxhtml/tootip.gif"'>
<s:param name="labelcolspan" value="%{2}" />
<s:param name="inputcolspan" value="%{2}" />
</s:select>

Anybody suggest me where I am doing wrong?

Thanks in advance.
7 years ago
Hi All,

I am using Ajax tabs with struts2 framework. I have one javascript when the radio button is clicked textfield should be disabled. But when the page refreshes the disabled field is again enabling...and I have called onload() method ....but thatz not working.

Anyone is having any idea please post your replies.

Thanks in advance.
8 years ago
Hi all

I am having problem woth mozilla.....I have two JSP pages search and search results.......when I click submit button in search page it displays the search results........but when I go back to search page from search results ........the submit button is disabled.

Its working fine with Internet Explorer...any suggessions

8 years ago
Hi,

Thanks for your reply, I dint understand your code, but I think there is a simple solution for this using errors.clear()
I dont know at which place I have to give this, Please anybody give me suggessions.

Thanks.
9 years ago
Hi all,

Please help me with this problem, my JSP page is displaying errors when anything is not entered in textfield that is working fine, but when i click the back button and entering into the same JSP page still it is displaying the errors.It shouldn't show anything(refresh the page).In my struts-config file my scope="session"

any suggestions.

Thanks.
9 years ago
Iam new to struts, can you provide me the sample code to write in validate().

Thanks.
9 years ago
HI,

Its very urgent, can you help me for checkbox validation. I my JSP I cannot change the checkbox property names ,because all properties are having with different names, any suggestions.

Thanks.
9 years ago
what I did is use resources.properties file there you have to give key ,value error details
in struts-config.xml use <message-resource> to include property file
give corresponding error property in validation xml file
it definetley works
9 years ago
thanks for reply merill,

here is my JSP code, I cannot use same property ames for each check box

<bean:message key="SubForm.ProgramType.title"/></legend>
<div class="fieldset">
<table width="99%" border="0" cellspacing="5" cellpadding="0">
<tbody>
<tr>
<td>
<html:multibox name="Form" property="Information.s1" styleId="newForm.Information.s1" value="Y"/>
<html:hidden name="newForm" property="Information.s1" value="N"/>
<label style="float: none;" for="newForm.Information.s1" id="newForm.Information.s1.label"><bean:message key="subForm.s1.prompt"/></label>
</td>
<td>
<html:multibox name="newForm" property="Information.s2" styleId="newForm.Information.s2" value="Y"/>
<html:hidden name="newForm" property="Information.s2" value="N"/>
<label style="float: none;" for="newForm.Information.s2" id="newForm.Information.s2.label"><bean:message key="Information.s2.prompt"/></label>
</td>
<td>
<html:multibox name="newForm" property="Information.s3" styleId="newForm.Information.s2" value="Y"/>
<html:hidden name="newForm" property="Information.s2" value="N"/>
<label style="float: none;" for="newForm.Information.s2" id="newForm.Information.s2.label"><bean:message key="SubForm.s2.ompt"/></label>
</td>
</tr>
</tbody>
</table>

any suggestion,please help me.

Thanks,
AMMA.
9 years ago
Hi

I need help for validating check box in struts validation without using javascript.
when I click the submit button atleast one check box should be selected. Can anyone help me how to define in validation XML,
how to do it with requiredif and validatewhen conditions, in my jsp page we have 10 checkboxes.
Please let me know if you have any solution for this. it should be server side validation

Thanks in advance,
sairam.
9 years ago