Priyadharshini Nagarajan

Greenhorn
+ Follow
since Sep 24, 2004
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 Priyadharshini Nagarajan

Hi

i have a directory which contains the log files. the file name format is date_time. my application will get the date as input from the user. Then i have to search for that log file with that date input as filename.


eg: my log file directory contains these log files

Name Modified time
05-02-05_10:36 05/02/05 10:40
05-02-05_10:38 05/02/05 10:45
05-02-05_10:40 05/02/05 10:50
05-03-05_10:37 05/03/05 10:40

input : 05_02_05

so i have to take the file with the latest modified time ie 05-02-05_10:40
14 years ago
My application is JMX ie which will get the status of the weblogic instance in a particular weblogic server..

When i deployed my application in weblogic it works fine.........

but when it is deployed in the tomcat server it is showing error like javax.naming.NameNotFoundException: Name weblogic instance is not bound in this Context...ie it is not able to lookup for tat instance

Plz help me in solving this issue
14 years ago
Hi

i have to delete the last comma and space
15 years ago
Hi

i have to delete the last comma and space
15 years ago
JSP
Hi

String x = new String("hai welcome , ");

tell me how i can remove that last comma and space..
15 years ago
JSP
Hi

String x = new String("hai welcome , ");

tell me how i can remove that last comma and space..
15 years ago
Hi
Tell me how to validate my xml document against xml schema(xsd).

i am having my xml and xsd in the same location.
Hi


<sample xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='schema.xsd'>

</sample>


Tell me what the above code will do. this is not validating my xml.i also made setValidating to true.

is validation can be only in code or xml also.
Validating xml against xsd code:

private static final String schemaSource = "schema.xsd";
private static final String JAXP_SCHEMA_SOURCE ="http://java.sun.com/xml/jaxp/properties/schemaSource";


DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
documentBuilderFactory.setValidating(validation);
try {
documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE,new File(schemaSource));
}
catch (IllegalArgumentException x) {
x.printStackTrace();
}
documentBuilder.setErrorHandler(new IMSParserErrorHandler());
Document document = documentBuilder.parse(configFile);

my schema is in : c:\data\schema.xsd..

i have the c:\data in my classpath.. so i gave the relative path as schema.xsd to my schema url.

error is :

Message: schema_reference.4: Failed to read schema document 'IMSSchema.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.


XML

<sample xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='schema.xsd'>

</sample>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

</xsd:schema>
How to include the xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' and xsi:noNamespaceSchemaLocation='IMSSchema1.xsd' attribute of the xml file in xml schema(xsd)
Hi

please tell me how to start writing test cases for java application
[ January 10, 2005: Message edited by: Priyadharshini Nagarajan ]
15 years ago
Stored procedures(sp)

after executing my sp the jvm is shutdown. so closing the connection doesnt happen at all.

so i want to know that whether the connection is still there or not
steps:
1. make a connection to sybase
2. Executing some sps
3. closing the connection.

i want to know that when my JVM is shutdown after i executed some sps, is the connection still be alive or dangling

[edited subject from 'hi']
[ January 06, 2005: Message edited by: Jeanne Boyarsky ]
Hi

1) Store that in session and u will get that anywhere in ur application

2) Store in some variable in the servlet init() method
15 years ago
hi

i got a rough idea of what u r trying to say...

i dont know whether u r using frames or iframes...

<form action="url" target="framename">
<input type="submit">
</form>

the above code what it does is when the submit button is clicked it will show the result in the corresponding frame that u specified

i would be more clear when you submit your code
15 years ago
JSP