kandarp Bhatt

Greenhorn
+ Follow
since Aug 03, 2001
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 kandarp Bhatt

Hi All,

I have a tomcat 7.0.54 server, deployed two application on it and Wildcard SSL certificate installed successfully. I am able to access my application using HTTPS. Now issue is that when my app1 is trying to access app2 using HTTPS request following exception found in log file.
Need help to resolve this issue.


Thanks,
Kandarp Bhatt
6 years ago
Friends,
When I'm updating my java bean files on server, at that same time, all the session's data lost. Why?
I'm using Oracle 9iAS on Linux box.

TIA
Kandarp
19 years ago
I am working on Javamail. I face a problem. When I try to get messages from inbox and if inbox will empty it throws exception, and below that I post code.
Thanks in advance
Kandarp

20 years ago
Hi friends,
I�m curious and newbie. I just want to know the architecture of javaranch.
I want to understand javaranch�s Database design.
I want to understand javaranch�s GUI design.
TIA
Kandarp
20 years ago
Thanks David O'Meara
Problem find out and solved
Thanks
Kandarp
How can i use printStackTrace() in JSP and out put comes in browser?
Friends,
I am using redhat linux 7.3, Tomcat 4.1, mysql comes with redhat linux 7.3.
my programe works well, but don't insert any record
Here is my code

Here my database strucuture

I don't know what is the problem?
help me.
Thanks in advance
Kandarp Bhatt
Thanks Billy, Andrew & Philippe
I inquired at local book store. I think, these books are not available in Indian Market. Now questions are,
Q1 - Where I found online resource for Sample Project & preparation guide?
Q2 - Is it downloadable?
Q3 - Which Web Server I have to use?
Q4 - Which Database Server I have to use?
Q5 - Which Opearating System I have to use?
Thanks
Kandarp
Hi,
I want to know that where i find sample assignment for SCJD.
TIA
Kandarp
Friends,
I am facing a problem, when i run this code It will not work. it is just show blank page.
Thanks in advance
kandarp
***This is test.jsp
<jsp:useBean id="sdb" scope="page" class="common.SupportDB"/>
<link rel="stylesheet" type="text/css" href="style.css">
<html>
<head>
<title>Gujarat Print Pack</title>
</head>
<body>
<%
String hold_user = request.getParameter("id");
String hold_str1 = request.getParameter("str");
String hold_id = request.getParameter("D1");

int hold_str = Integer.parseInt(hold_str1);

if(hold_id=="OrderID"){
if(sdb.IsValidRecord("Orders", "OrderID",hold_str)){
%>
<jsp:forward page="MainOrderDetails.jsp">
<jsp aram name="orderid" value="<%=hold_str%>"/>
</jsp:forward>
<%
}
%>
<%=hold_str%> Not Found.
<%
}

if(hold_id=="JobID"){
if(sdb.IsValidRecord("JobName", "JobNameID", hold_str)){
%>
HELLO HOW ARE YOU???
<jsp:forward page="MainJobDetails.jsp">
<jsp aram name="jobid" value="<%=hold_str%>"/>
</jsp:forward>
<%
}
%>
<%=hold_str%> Not Found.
<%
}

%>
There is some Error............
</body>
</html>
***** JAVA Bean
package common;
import common.*;
import java.sql.*;
import java.util.*;
public class SupportDB{
private Connection con;
private Statement st;
private ResultSet rs;
public void getConnection(){
try{
Class.forName ("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql:///gujarat_gpp?user=gujarat&password=gck007&autoReconnect=true");
}catch(Exception e){
System.out.println("SupportDB - getConnection() : ");
e.printStackTrace();
}
} // getConnection(), method
public boolean IsValidRecord(String TableName, String srchField, int hold_str){
boolean result = false;
String retVal = null;
try{
getConnection();
st=con.createStatement();
String qry = "select * from "+TableName+" where "+srchField+" = "+hold_str;
rs=st.executeQuery(qry);
if(rs.next()){
retVal = rs.getString(srchField);
if(Integer.parseInt(retVal)==hold_str){
result=true;
}
}
rs.close();
st.close();
con.close();
}catch(Exception e){
System.out.println("SupportDB - boolean IsValidRecore() : ");
e.printStackTrace();
}
return result;
}//end of public boolean IsValidRecore()
} // SupportDB, class
21 years ago
JSP
Hi,
I am new to JSP and XML. I want to develop(To Learn) a Application for small library (to keep books record and add, delete, modify and I can sereach the records). Now Question is
1. Which Parser I have to use?
2. Which Process I have to use?
3. How to implement MVC for this application.
And Is there any suggestion pls. give me.
Thanks In Advance
Kandarp Bhatt
I am kandarp bhatt from Ahmedabad, India.
I want to know about:
What is your assignment for Java Developer Exam?
Any software development experience required?
Thank you in advance.
Kandarp
Congratulation.
Kandarp Bhatt