Rama moorthy

Greenhorn
+ Follow
since May 18, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rama moorthy

Dear Gopi,
Thanks for your reply.
As mentioned I CAN NOT USE JAVASCRIPT .Also i hv to reload the page.Can u explain any possibility of coming back to first page keeping the same status?
Regards,
Ramamoorthy
23 years ago
Dear Friends,
I give below my coding.My requirement is as below.
I am generating a table with three columns and one column is having a hyperlink and another 2 columns have checkboxes.
Basically it is for the candidate profile.
So after clicking the hyperlink ,i will get the second page wherein i will get the candidate details.After going thro'the same i will come back to first screen,where against the candidate name i will select the options provided in the two check boxes.I will repeat the procedure for the next candidate.
But the problem is that when i go for the second candidate and view his profile and after coming to the first page ,the status of the first candidates becomes blank and it is not setting back to the original position.
In a nutshell my settings at the checkboxes for the first candidate should not get changed even after going to and from the
first page.
My problem is that i should not use javascript.
My coding:
<%@ page language="java" session="true"%>
<%@ page import="javax.servlet.*,javax.servlet.http.*,java.util.*, java.sql.*, java.io.*" %>
<html>
<head>
<title>New Candidates</title></head>
<body>
<%!
String req =" ";
String jid =" ";
String cid =" ";
String ca_title =" ";
String status =" ";
String action =" ";
int count = 0;

Connection con;
ResultSet rs;
Statement st;
String sql;

%>
<%
req = request.getParameter("ca_title");

jid = request.getParameter("jid");
status = request.getParameter("status");
action = request.getParameter("action");

cid = request.getParameter("cid");

%>
<input type="hidden" name="ca_title" value="<%=req%>">
<input type="hidden" name="cid" value="<%=cid%>">
<input type="hidden" name="jid" value="<%=jid%>">
<p>New Candidates</p>
<p>Project Managers</p>
<p>(Click name for Profile Summary</p>
<p>
<table>
<tr><td>Candidate Name </td>
<td>Status </td>
<td>Action</td>
</tr>
<%

try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc dbc:info","shop","shop");
st = con.createStatement();
sql = "select candidateID,CAFirstName from candidate where catitle like '%"+req+"%'";
rs = st.executeQuery(sql);
while(rs.next())
{
String aa = rs.getString("candidateID");
String bb = rs.getString("CAFirstName");

%>
<tr><td><a href="http://localhost:8080/infodream/detail.jsp?cand_name=<%=bb.trim()%>&cand_id=<%=aa%>&jid=<%=jid%>&cid=<%=cid%>&ca_title=<%=req%>"><%=bb.tri m()%></td>
<td><SELECT name=status>
<OPTION value="<%=status%>" selected></OPTION>
<OPTION value=S>Selected</OPTION>
<OPTION value=R>Rejected</OPTION>
</SELECT><BR>
</td>
<td><SELECT name=action>
<OPTION value="<%=action%>" selected></OPTION>
<OPTION value=IWI>I Will Interview</OPTION>
<OPTION value=YS>You Screen</OPTION>
<OPTION value=C>Confirmed</OPTION>
</SELECT><BR>
</td>
</tr>

<%
}//while
}//try
catch(Exception e)
{
out.println("Exception "+e);
}
%>
</table><br><br><br><br><br>
<a href="http://localhost:8080/infodream/scrcandidates.html">Send</a>
<a href="http://localhost:8080/infodream/scrcandidates.html">Back</a>
<a href="http://localhost:8080/infodream/scrcandidates.html">Menu</a>
</p>

</body>
</html>
Please give your feedback.
Regards,
Ramamoorthy
23 years ago
Dear friends,
Can anyone explain me how to solve the following problem?
I am getting one input as age -- 25-30.
My requirement is after seperating the age as 25 and 30,i should compare these values with the xml.
My xml looks like this,
<age>25</age>.
<age>31</age>.
<age>36</age>.
<age>27</age>.
<age>29</age>
I should get the result of users who are in the age group of between 25 to 30.
How to approach this problem?
Advanced Tks,
Ramamoorthy
Dear Gurus,
Can anyone guide me on how to send multiple parameters ?.
I give below my coding and please go through the same and give your feedback.
This is the program i hv developed to forward parameters to other jsp pages.
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>
<%@ page language="java"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Match</title>
</head>
<body>
<%
String a = request.getParameter("sex");
String b = request.getParameter("age");
String c = request.getParameter("study");
String d = request.getParameter("region");
String e = request.getParameter("religion");
String g = request.getParameter("prefer");

%>
<xtags:style xml="http://localhost:8080/xmlshop/match_maker.xml" xsl="http://localhost:8080/xmlshop/search1.jsp">
<xtags aram name="sex"><%=a%></xtags aram>
<xtags aram name="age"><%=b%></xtags aram>
<xtags aram name="study"><%=c%></xtags aram>
<xtags aram name="region"><%=d%></xtags aram>
<xtags aram name="religion"><%=e%/></xtags aram>
<xtags aram name="prefer"><%=g%/></xtags aram>
</xtags:style>
</body>
</html>
I have used xtags to forward multiple parameters.
If you have any other method of passing more than one parameters please guide me.
Regards,
Ramamoorthy

Originally posted by Ajith Kallambella:
Lets start from listing your requirements. List everything that this "layer" should do in plain English sentences.


Dear Ajith,
Thanks for your message..
My requirement goes like this..
I have developed a prototype application for online shopping and banking..
In shopping..
Mine is a generic solution and so for each customer it has to be customized so as to meet their requirements..suppose if i have common platform in xml so that it makes my application to easily adopted to the clients requirement and to their database setup..this is one of my question..
the second thing is that now i have developed my application with sample data in oracle backend..suppose my client says that he wants to have sybase as their back end..then i need to change my code to accomodate his requirement..
moreover the client may have morethan one type of RDBMS at their end and what is that i must do to make my application common for all RDBMS..
i want to have somesort intermediate archtecture in between my application and database keeping in mind tha above real time requirements..
for banking....
here also i want to have intermediate layer so that my application in my application requests the data from the application server of client..
to make it clear to you..suppose if i sell my above application to ISP providers,the request from the client will be forwarded to different banks associated with the ISP..so it is impractical for me to have each set of coding for each bank...hence i must have common coding with suitable intermediate layer to accesss to different bank's data bases..
I think i have conveyed my requirement..
Please elaborate me on how to approach this problem with your expertise in XML..
Kind regards,
Ram

Dear friends,
I have developed an enterprise application.Now my next assignment is to develop an xml based interface layer to the above application.I give below my requirement as under.
My Enterprise Application
|
|
XML Interface Layer
|
|
Multiple Databases
Please can anyone explain me the procedures to how to approach the above problem.
My application is for banking and shopping and i want to have common interface layer in XML so that it can be easily pluged into any leagacy database as well as any ERP solutions.
Please give your valuable sugesstions..
Ram
Dear Fredrik,
Thanks for your coding..It works fine in a stand alone environment.
But can u guide me how to do the same in a real environment.
In my case,i am getting input from the customer in html page.
Once i submit the form it will call the jsp page residing in server.Before it goes to server the user inputs to be encrypted and then sent.
Kindly clarify and advise me how to proceed further.

Kind regards,
N.Rama moorthy

Originally posted by Fredrik Safstrom:
[B]Rama,
Here is the class itself:

It's quite simple to use, here is one example;

You can supply the constructor with a code-key if you want, otherwise the codekey will default to 'Q'.
If you want to add upp characters that are specific for your language in the alphabeth string, my version have some Swedish characters in there. The class will only encrypt/decrypt characters in the alphabeth string, if a character cannot be found, it will be ignored and left as is...
Have fun.
/Bamse[/B]


23 years ago
Dear friends,
In my project i am receiving user name and password from the user.I want to send the same to the database in encrypted form in order to maintain security.
I have downloaded JSSE from SUN.
Can anyone guide me how to proceed further??
Regards,
N.Rama moorthy
23 years ago