Win a copy of Head First Android this week in the Android forum!

kiranb reddy

Greenhorn
+ Follow
since Sep 28, 2008
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 kiranb reddy

Dear All,

I have a requirement to format the Timestamp format to another format, could any one explain the steps to do it.

The default timestamp format is yyyy-MM-dd HH:MM:SS

I need to fomrat it to dd-MM-yyyy HH:MM:SS

Please help to do this, and the return type must be always java.sql.TimeStamp.


Thanks in Advance.
12 years ago
Could any one help me on this issue i.e, i am getting the connection exception while reading an xml file which contains a DTD of public type.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport= "".............


></jasperReport>


java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)Xml is updated succsssfully

at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at com.softpro.UpdateXMLNode.processUpdate(UpdateXMLNode.java:58)
at com.softpro.UpdateXMLNode.main(UpdateXMLNode.java:41)


If i remove the DTD, i am able to read the xml file and updating.

Please help me to solve my issue.

Thanks and Regards,
Kiran B
Hi,
I have a requirement to update the xml file which contains around 20 tags with different attribute values for each tag.

My requirement is i need to update the attribute values of the tag.

Here, i am giving my xml file.
<class max no="1000"
seats ="2000">

<student name ="a1" age="10"> x1</student>
<student name ="a2" age="11"> x2</student>
<student name ="a3" age="12"> x3</student>
<student name ="a4" age="13"> x4</student>
<student name ="a5" age="14"> x6</student>
<student name ="a6" age="15"> x7</student>
</class>

now i need to modify the attribute values of class tag, and student tag ( for the given student for eg. x6)

How can i do this using java ?

Could any one give me the code for doing the above task.

Thanks,
Nikith C
Hi,

By using the sub report concept, we can print , but my case is printing the reports one by one i.e, if first template(1) printing completed than, other template (2) must be called and printed simultaneously.

Hope, you have understand my requirement.
Thanks,
Naveen
12 years ago
Hi All,

I have a requirement to print the jasper reports simultaneously, i have two jrxml files which are need to be printed one after other and each have its own parameters.

For example: one.jrxml
two.jrxml

The report should be printed in one.pdf than
two.pdf
Could any one give suggestions for my above requirement.

Thanks and Regards,
Naveen Chanda


12 years ago
Hi,

I am using jasper reports in a web application, which i am unable to display the images.

Where can i place the images folder in the web application and how can give the path in the jrxml template.

Please give me the suggestion for doing the above task.

Waiting for quick response.


Thanks.
12 years ago
Hi,

Could anyone please, explain the difference between the getResource and getResource as a stream.

Please explain me with an example.


Thanks.
12 years ago
Hi,

I am using struts2.0 framework, facing a problem regarding the accessing of the file path placed in WebContent -reports directory.

I need to know the file path placed in the reports directory.

How can get the file path as a String ?

Please help me.

Thanks.

12 years ago
Hi All,

Can anyone explain the exact difference between <init-param> and <context-param>

What is the main purpose of these parameters.

Please provide me the examples.


Thanks,
Kiran.
13 years ago
Hi All,

Can anyone explain the exact difference between IS-A and HAS-A relationship with an example.

Please help me.


Thanks and Regards,
Kiran
13 years ago
Hi,

Congrates....

I need some suggestion from you, i am planning to take SCWCD 1.5, could you give some more details like,

Is Head First Servlet and JSP in enough to get through the certification, is any other good material you have studied other than you have mentioned( Could you please share with me, if any other notes that you have prepared)

Thanks in advance,
Kiran.
Can someone give the regular expression pattern for replacing all the characters in the String by "\" to "/"


For example:

I have a String with: C:\dev\example


I need to change the pattern to: C:/dev/example.



Please help to solve the above problem,

Thanks in advance,

Kiran.
13 years ago
What is the use of this tag in struts, and where exactly we can write this.

Please explain me with an example.


Thanks in advance,
Kiran.
13 years ago
Hi,

Can anybody explain the difference between Struts 1.v versions and Struts2.0 version.


Thanks,
Kiran
13 years ago