User Profile
Collapse
-
Log4j file location problem
How to change the location of the log file in log4j.propertie s dynamically? -
Thank You.
I removed the onreadystatecha nge() method and directly used req.status. it worked well. Thanks for the reply. It really helped me in right time. -
problem in using ajax in firefox when asynchronous is false
Hi,
I have a problem in running ajax in firefox.
when i give asynchronous as false, the ajax code is not working. but the same code works fine in internet explorer
here is my code:
[CODE=javascript]var url = "<%=request.get ContextPath%>/AjaxTest.do";
var req = initRequest();
req.onreadystat echange = function()
{
if(req.readySta te==4)
{
... -
File Upload Using Ajax
Can Anyone tell me how to upload file using ajax with struts framework? -
Problem While returning a xml object from a jsp using java code
Is it possible to return a xml object from a jsp using java code?
here is my code:
<html>
<head><title>Pa ge Title</title></head>
<body>
<table width="100%">
<tr>
<td>
<!-- here is where i return a xml object -->
<%
String testOne = request.getPara meter("HeyYou") ;
response.setCon tentType("appli cation/xml");... -
Problem in returning a xml object
Is it possible to return a xml object from a jsp using java code?
here is my code:
<html>
<head><title>Pa ge Title</title></head>
<body>
<table width="100%">
<tr>
<td>
<!-- here is where i return a xml object -->
<%
String testOne = request.getPara meter("HeyYou") ;... -
Dear Moderator,
Thanx again for replying.
Now i have figured that the problem is in returing a xml object from another jsp file instead of java file. And there is no problem with implementing ajax, coz i'm getting a response object. but it is null.
As per ur suggestion,I 'll post my question in jsp or java group.
- JagadeshLeave a comment:
-
Dear moderator,
thanx for the reply.
Actually i have worked with ajax. In the jsp, i 'll be writing the script that forms the xmlhttprequest object, and i 'll call a url wich corressponds to java code, where i 'll do my server side activities and then return it to jsp as a xml object. and in the jsp again i 'll parse the responseXML and i'll put it in the form.
But for the application, which i'm trying now is to
...Leave a comment:
-
Problem in Using Ajax within JSP
Is it Possible To return a xml object from a jsp file?
i tried. but i get an error. i have pasted the code & error below.
Code :
<body>
<table width="100%">
<tr>
<td>
<%
String testOne = request.getPara meter("HeyYou") ;
response.setCon tentType("appli cation/xml");
response.setHea der("Cache-Control",... -
try this friend,
public class oddNumberDispla y
{
public static void main(String[] args)
{
int num = 10; /* enter the number here */
for(int i=1;i<=num;i++)
{
if((i%2)!=0)
{
System.out.prin tln(i);
}
}
}
}Leave a comment:
-
how to register driver class
how to register a driver class?
i need to connect to oracle db using java,
here is my code,
Connection con = null;
String url = "jdbc:oracle:th in:@localhost:1 521:";
String db = "dbname";
String driver = "oracle.jdbc.dr iver.OracleDriv er";
String user = "oracle";
String pass = "oracle";
... -
Migrate Data from ms excel to db using Java codes
I need to migrate data from a ms excel sheet to db. what has to be done? this entirely new application for me. help me with this. -
Data Migration From Excel to PostgreSQL
i need to migrate data from a excel to db using java codes. if there is any site where i can find a solution for this?
No activity results to display
Show More
Leave a comment: