S Srikanth

Greenhorn
+ Follow
since Sep 09, 2002
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 S Srikanth

Can anyone suggest me some good book for developing J2EE web services?
15 years ago
Hi,

Any body help me in writing a JSP that would have dynamic content.

I have a image in a JSP. I have 10 images with me.
I want to change the image time to time randomly.
How can i do this ?

Please provide me sample code if available.

Regds,
Srikanth
15 years ago
JSP
Hi ,
I have installed Weblogic 7.0 on Windows 98 machine.
And i have deployed a stateless session bean on the server.
I am able to access the bean using simple java client program.

Now i am trying to access the same bean using a JSP and Servlet. But i am getting Error-500 Internal Server Error when i am trying to hit the servlet using JSP.

With the same JSP and Servlet on Windows 2000 machine i am able to hit the Servlet and able to access the Bean.

I found the following lines in weblogic docs:

--------------------------------------------------------------------------
Windows 95 and 98

We no longer support Windows 95 as a platform for WebLogic Server, and we have limited our Windows 98 support to "client only". See WebLogic Platform Support documentation for details of our Windows 98 support at http://www.weblogic.com/docs45/platforms/index.html.
--------------------------------------------------------------------------

I couldnt get what "client only" means in the above text? Does it mean only java clients are supported?

Anyway ,
Can some one help me in resolving the problem?

Thanks in advance,
Srikanth
15 years ago
Hi ,
I have installed Weblogic8.1 on windows 98 machine.
But i couldnt start the server as it says "At least one 'Win32' application is required".

Does Weblogic8.1 is compatible with Windows 98 ?
If so can some one provide me steps to start the server after installation ?

Regds,
Srikanth
16 years ago
Hi,
I am new to servlets and HTTP.
When i am going through servlet documents it talks about HTTP. Can some one send me link/material where i can learn about HTTP?

Regds,
Srikanth
[ November 14, 2005: Message edited by: S Srikanth ]
16 years ago
Hi ,
I am new to Java Servlets and HTTP.
When i am going through servlets it talks about HTTP requests and responses.
Can anyone send me a link/material where i can learn about HTTP ?

Thanks,
Srikanth
16 years ago
Hi,
How to load specific section of a properties file using java.util.Properties?

Suppose,
I have a properties file as follows (for example):

myproperties.properties:
-----------------------
First=1
Second=2
Third=3

Sum=+
Sub=-
Mul=*

Now my requirement is i have to construct a HashMap which consists of {Sum,+},{Sub,-},{Mul,*}.

Following are some constraints which i have:
1. Keys and Values has to be picked up from my properties file. No hard coding.
2. I should not create a different properties file(To have only Sum,Sub and Mul in it). I have to work with the same properties file.

Please help me out to resolve the problem.

Regds,
Srikanth
16 years ago
Hi,
Thanks for your reply.

I have mentioned setAutoCommit(true) because i have a requirement that as soon as i put a row into that table i need to commit it as well.

I am using ORACLE 10g Database in my case.
I will close the statement as u said and try.

Please provide me the trigger which you are saying so that i can execute it in my database and see who is deleting the row.

Thanks and Regds,
Srikanth
Hi ,
I am using a JDBC connection and inserting an entry into a table.
After that i am committing the connection and coming back.
After i commit the connection if any error comes in further processing, the entry that i have inserted is getting deleted from the table.
Is it possible that an entry to get deleted after i commit the connection?
Pls help.

Also , is there any way to find out who is deleting the entry from the table? I mean by what reason the entry of a table is getting deleted.

My code is called from a GUI which is deployed under TOMCAT. Is the entry deletion is because of TOMCAT ?

Please help.

Regds,
Srikanth

Following is the code snippet:

Connection conn =DriverManager.getConnection (props_.getProperty("DB_URL"),props_.getProperty("DB_USER"),props_.getProperty("DB_PASSWD"));
Statement stmt =conn.createStatement();
conn.setAutoCommit(true);
String script ="insert into TABLEXyz VALUES( to_date('"+formatDate+"','yymmdd'))";
stmt.executeUpdate(script) ;
conn.commit();
conn.close();
Hi My junit tests are failing with the following error.

"not a valid XML document. It is possibly corrupted."

Any help ?

Regds,
Srikanth
16 years ago
Hi,
I have a scenario as follows.

I have a formula say F1+F2+F3.
Where..
F1 = B1+B2
F2 = F6+B3
F3 = B4
F6 = F7+B5
F7 = B6

After substitution of these values my formula becomes B1+B2+B3+B4+B5+B6.

Like this there can be multiple levels of substitution. How to handle these kind of situations in a java program.

In Brief,
I need to write a java function which takes F1+F2+F3 as input and which gives B1+B2+B3+B4+B5+B6 as output.

Regds,
Srikanth
16 years ago
Hi,
Is there any alternative to this?

Regds,
Srikanth
Hi,
I have a .sql file which consists of some DDL Commands.
I need code snippet to execute the .sql file from java?

Regds,
Srikanth
Hi smita ,
Use "getParameterValues" to get multiple values from a jsp page
Srikanth
19 years ago
JSP