Sarah Shay

Greenhorn
+ Follow
since Jan 04, 2005
Merit badge: grant badges
For More
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 Sarah Shay

Can I use a struts action in this function or does it have to be a full URL?

Thanks
Yes its 2.5 roughly. But I want to round this up to 3 so I dont lose the decimal at the end
19 years ago
Hi,

Im trying to divide 2 numbers lets say 127 by 50. When I do I get a value of 3 returned. However I want 4 to be returned, asin I want the remainder to be recognised. How can I do this?

Thanks
19 years ago
Hi,

So if I were to write a custom tag, how would I go about dividing my list? And displaying the particular pieces of it that I need? As in if a user hits on page 2, should I be going to my action class or should the custom tag handle it?
19 years ago
JSP
Hi,

Ive been researching how to implement paging in my JSP. I can allow a user to select teh number of records they want to display and then I need to implement this functionality. I will probably need to write a custom tag to do this but Im not overly sure. Could someone help me out?

Thanks,
Sarah
19 years ago
JSP
I am trying to create an XHTML doc using an XSL file

I have the following declaration at the top of the XSL but the file is still being output as XML

<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="no" encoding="UTF-8" />

Any ideas whats wrong?

Thanks

[ML]Edit Comment: Disabled smiles in this post.
[ April 02, 2005: Message edited by: Madhav Lakkapragada ]
Could anyone please tell me why the following wont work in IE5.0. It works fine in IE6.0. This exists within a javascript block at the top of my page

document.forms.addRemove.submit();

Any ideas will be most appreciated,
Sarah
Well I need to use it to add in my comma seperators. Dollar sign I could do without the format-number func but thousand seperators I cant
Hi,

No I dnt always want 5 decimal places after the decimal point. I want to display as many digits as is returned in teh XML. My problem is that the format-number func that Im using will always give me 5 decimal places when sometimes I wont want this ie in cases where the XML returns only 3 decimal places
Hi,

Im sorry I didnt make it clear.

The number of digits after the decimal place can vary from 2 to 5. So if I get 3 decimal places returned my template is adding on an additional 2 zeros at the end of it to make it 5 decimal places in length. If I use a template such as ###.#####, this will not add on zeros but the issue with this is that if the number returned to me is 23.450, this template will cut off the zero at the end.

Have I made my problem any clearer??
Thanks
Sarah
Hi,

I am trying to format lets say a quantity - In this format number mask I add in any thousand comma sperators that are required. My issue is the numbers after the decimal place. Sometimes I can get 112.8500 returned in the XML. other times I can get 12.54. I can get up to 5 decimal places. So if I pass it through the format-number #,##0.00000 I get trailing zeros added on even if they are not returned in the XML. This is not acceptable. If I try use #,##0.#####, any trailing zeros that are returned in the XML(it does happen), these are knocked off. Any ideas on what sort of a format-number I could use to handle my scenarios?

Any help will be much appreciated,

Sarah
Hi,

I am trying to format lets say a quantity - In this format number mask I add in any thousand comma sperators that are required. My issue is the numbers after the decimal place. Sometimes I can get 112.8500 returned in the XML. other times I can get 12.54. I can get up to 5 decimal places. So if I pass it through the format-number #,##0.00000 I get trailing zeros added on even if they are not returned in the XML. This is not acceptable. If I try use #,##0.#####, any trailing zeros that are returned in the XML(it does happen), these are knocked off. Any ideas on what sort of a format-number I could use to handle my scenarios?

Any help will be much appreciated,

Sarah
Hi all,

I am having a major problem trying to include a JSP file in my XSL. Im using wsad dev environment. I am using the following

<xsl:template match="/">
<xsl:text disable-output-escaping="yes">
<%@ include file="/WEB-INF/statementsApp/content/jsp/pagedefs.jsp" %>
</xsl:text>

<html:form>

etc
The jsp file includes my taglib declarations. html:form does not seem to be recognized still and I dont know why

Any ideas...please!
Hi

I am trying to format a date. I need a lowercase pm/am at the ned of it depending on whats returned to me. I am currently using the following. My issues is that the 'a' returns the PM/AM in uppercase and not lowercase. Any ideas on how I can get it to be displayed in lowercase?

<bean:write name='ftne' property='asofDate' format='MM/dd/yyyy hh:mma' />

Thanks,
Sarah
19 years ago