Harsh Mahey

Greenhorn
+ Follow
since Nov 07, 2002
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 Harsh Mahey

The way to analize such problem is first you increase the no of connections and they see if your 1st problem is gone or not.If yes then focus of closing the connections.For that you can check before closing the connection if it is open or not .Your second response shows that you are trying to close the connection which is already closed ; so for this you first check if the connection is open or not.
Hope this will help.
Thanks
Harsh
The problem is the the connection in the pool is over.Means you are trying to get connection from the Pool and the pool doesnt have any more connection available.For this, you should increase the no. of connections in the connection pool by setting the properties in config.xml/or form the console.
Please note that if such problems comes regularly then there is some leakage of connections which means that you are not closing the Connections after using it.
Thanks
Harsh
Hi
Can any one tell me how do i differentiate looking at the code if the code is for stateless or stateful bean in j2ee/ejb environment.
I know the entry in xml file helps in doing this but other then this is there any difference in the code.
Thanks
Harsh
I have an XML which has a Data like <data>12-24</data> .When i bring this data in Excel using XSL and JSP ,the Excel shows it as 24 Dec.
I am using the following in xsl
<td style='color:black; font-family:Arial; font-size:8pt;' height="17">
<xsl:value-of select="."/>
</td>
I tried <data>'12-24</data> but then in Excel it comes like '12-24 and when i select the cell and press enter it gets converted to 12-24.
Any suggessions?
Hi
I want to get my data in a table format as follows
<HTML>
<BODY>
<TABLE border=1>
<TR>
<TD colspan="2">General</TD>
<TD colspan="1">Physical</TD>
<TD colspan="1">Finish</TD>
</TR>
<TR>
<TD>Part #</TD>
<TD>Description</TD>
<TD>Name</TD>
<TD>Application</TD>
</TR>
</TABLE>
</BODY>
</HTML>
My XML file Looks like this
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<?xml version="1.0" encoding="UTF-8"?>
<tableData>
<headings>
<heading descr="General" tabs="2" ></heading>
<heading descr="Physical" tabs="1"></heading>
<heading descr="Finish" tabs="1"></heading></headings>
<subheadings>
<subheading>Part #</subheading>
<subheading>Description</subheading>
<subheading>Name </subheading>
<subheading>Application</subheading>
</subheadings>
</tableData>

MY XSL looks like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>Table Generator</h2>
<table border="1">
<tr>
<xsl:for-each select="tableData/headings/heading">
<td><xsl:value-of select="@descr"/></td>
</xsl:for-each>
</tr>
<tr>
<xsl:for-each select="tableData/subheadings">
<td><xsl:value-of select="/"/></td>
</xsl:for-each></tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
My colspan is the value which i want to pick from tabs attribute of heading.
1. I dont know how to bring data from tabs attribute to colspan in XSL
2. How do i bring data for subheading as the above code doesnt behave correctly.
Waiting for the Reply
Thanks and Rgds
Harsh Mahey