Project

Project

<%
    String project<em>no=request.getParameter("project</em>no");
    String qry="select stud<em>name,project</em>name,project<em>type,project</em>no,receipt<em>no,receipt</em>fees,";
    qry+=" receipt<em>amt,receipt</em>tax,tot<em>weeks,to</em>char(receipt<em>dt,'dd/mm/yyyy') from proj</em>master ";
    qry+=" where project<em>no='"+project</em>no+"'";
    Vector vcol=new Vector();
    Vector vdata=new Vector();
    String mess =hrm.getData(stmt,qry,1,0,vcol,vdata);
    String err_mesg=hrm.getErr();
    err<em>mesg=err</em>mesg+" "+qry;
    int nr=hrm.getRows(vdata);
    int nc=hrm.getCols(vdata);
    hrm.close();   

String stud_name=(String) vdata.get(1);
String project_name=(String) vdata.get(2);
String project_type=(String) vdata.get(3);
String receipt_no=(String) vdata.get(4);
String receipt_fees=(String) vdata.get(5);
String receipt_amt=(String) vdata.get(6);
String receipt_tax=(String) vdata.get(7);   
String tot_weeks=(String) vdata.get(8); 
String receipt_dt=(String) vdata.get(9);    
int n =stud_name.indexOf(',');
int n1 =stud_name.indexOf(',',n+1);
int n2 =stud_name.indexOf(',',n1+1);
int n3 =stud_name.indexOf(',',n2+1);
String stud_name1=stud_name.substring(0,n);
String stud_name2=stud_name.substring(n+1,n1);
String stud_name3=stud_name.substring(n1+1,n2);
String stud_name4=stud_name.substring(n2+1,n3);
String stud_name5=stud_name.substring(n3+1,stud_name.length());
String receipt_no1="",receipt_no2="",receipt_no3="",receipt_no4="",receipt_no5="";
int m =receipt_no.indexOf(',');
int m1 =receipt_no.indexOf(',',m+1);
int m2 =receipt_no.indexOf(',',m1+1);
int m3 =receipt_no.indexOf(',',m2+1);
if(m&gt;0)
    receipt_no1=receipt_no.substring(0,m);
if(m&gt;0 &amp;&amp; m1&gt;0)
    receipt_no2=receipt_no.substring(m+1,m1);
if(m1&gt;0 &amp;&amp; m2&gt;0)
    receipt_no3=receipt_no.substring(m1+1,m2);
if(m2&gt;0 &amp;&amp; m3&gt;0)
    receipt_no4=receipt_no.substring(m2+1,m3);
if(m3&gt;0 &amp;&amp; receipt_no.length()&gt;0)
    receipt_no5=receipt_no.substring(m3+1,receipt_no.length());
String receipt_fees1="",receipt_fees2="",receipt_fees3="",receipt_fees4="",receipt_fees5="";
int c =receipt_fees.indexOf(',');
int c1 =receipt_fees.indexOf(',',c+1);
int c2 =receipt_fees.indexOf(',',c1+1);
int c3 =receipt_fees.indexOf(',',c2+1);
if(c&gt;0)
    receipt_fees1=receipt_fees.substring(0,c);
if(c&gt;0 &amp;&amp; c1&gt;0)
    receipt_fees2=receipt_fees.substring(c+1,c1);
if(c1&gt;0 &amp;&amp; c2&gt;0)
    receipt_fees3=receipt_fees.substring(c1+1,c2);
if(c2&gt;0 &amp;&amp; c3&gt;0)
    receipt_fees4=receipt_fees.substring(c2+1,c3);  
if(c3&gt;0 &amp;&amp; receipt_fees.length()&gt;0)
    receipt_fees5=receipt_fees.substring(c3+1,receipt_fees.length());   
String receipt_amt1="",receipt_amt2="",receipt_amt3="",receipt_amt4="",receipt_amt5="";
int d =receipt_amt.indexOf(',');
int d1 =receipt_amt.indexOf(',',d+1);
int d2 =receipt_amt.indexOf(',',d1+1);
int d3 =receipt_amt.indexOf(',',d2+1);
if(d&gt;0)
    receipt_amt1=receipt_amt.substring(0,d);
if(d&gt;0 &amp;&amp; d1&gt;0)
    receipt_amt2=receipt_amt.substring(d+1,d1);
if(d1&gt;0 &amp;&amp; d2&gt;0)
    receipt_amt3=receipt_amt.substring(d1+1,d2);
if(d2&gt;0 &amp;&amp; d3&gt;0)
    receipt_amt4=receipt_amt.substring(d2+1,d3);
if(d3&gt;0 &amp;&amp; receipt_amt.length()&gt;0)
    receipt_amt5=receipt_amt.substring(d3+1,receipt_amt.length());
String receipt_tax1="",receipt_tax2="",receipt_tax3="",receipt_tax4="",receipt_tax5="";
int e =receipt_tax.indexOf(',');
int e1 =receipt_tax.indexOf(',',e+1);
int e2 =receipt_tax.indexOf(',',e1+1);
int e3 =receipt_tax.indexOf(',',e2+1);
if(e&gt;0)
    receipt_tax1=receipt_tax.substring(0,e);
if(e&gt;0 &amp;&amp; e1&gt;0)
    receipt_tax2=receipt_tax.substring(e+1,e1);
if(e1&gt;0 &amp;&amp; e2&gt;0)
    receipt_tax3=receipt_tax.substring(e1+1,e2);
if(e2&gt;0 &amp;&amp; e3&gt;0)
    receipt_tax4=receipt_tax.substring(e2+1,e3);
if(e3&gt;0 &amp;&amp; receipt_tax.length()&gt;0)
    receipt_tax5=receipt_tax.substring(e3+1,receipt_tax.length());

%>
View Answers

January 19, 2011 at 11:42 AM

Hi Friend,

Please clarify your problem

Thanks









Related Tutorials/Questions & Answers:
project
project  i need a project in java backend sql
PROJECT
PROJECT  i want online polling system project codding
Advertisements
project
project  suggest a network security project based on core java with explanation
project
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you
project
project  does hostel management system project contain any dynamic web pages
project
project  sir i want module and source code on my project hospital management system
PROJECT
PROJECT  i want help on making project on mobile banking application..... the application should have SAVING ACCOUNT,CURRENT ACCOUNT,TRANSACTION ETC......... IN APPLICATION
project
project  i have to do my final year project project topic:Weekly Automatic College Timetable Generation System BRIEF EXPLANATION ABOUT PROJECT This project takes various inputs from the user such as Teacher List, Course List
project
project  sir i want to a project on railway reservation,sir plz give me the source code   plz give me the source code of railway reservation
project
project   hi , we r working on one project related to our results. we using java and for back end sqlserver 2005. In dis we are trying to retrieve result from some site and store it in our data base so that we can perform
Project
Project  Hi, Am starting a new project to draw a 2d graph using java swing and opengl,where in the input for X-axis and Y-axis co=ordinates should be accepted from user... As am very new to this am seeking help so pls help
project
project  For my project their is 2 users, one is users and administers.i want code for giving authentication to these users by using one, means same login form and database table ..my back end is mysgl....and am using wamp sever
project..
project..  Write a program to find the result of N students by accepting 5-subject marks from a Mark class and calculate the total and average mark. Display the result of all students in ascending order of rank from Result class
Project
Project  &lt;% String project no=request.getParameter("project no"); String qry="select stud name,project name,project type,project...(receipt dt,'dd/mm/yyyy') from proj master "; qry+=" where project
project...
project...   enter 10 integers, store it using array then display them from highest to lowest. 2.enter 10 integers, store it using array then display them from lowest to highest number to words conversion create a java program
Project
Project  How to show Questions randomly so that no two student get the same questions in online examination system project in Java Server Pages  
project
project  I'm designing a netbeans java program/project. I have to design a program that captures the persons name and mark #.then find the average mark of the whole class.after that need to count and display who had the highest
Project
=(String) vdata.get(1); String project_name=(String) vdata.get(2); String project
project
project
project
project
project
project
project
project
project
project
Project
project
project
project
project
in project
project
project
project
project enquire
project enquire  **hi admin, are you had project about "project tracking" on java
Project Management
Project Management  What is Project Management and how it useful in managing a software project. What all certification courses are available for Software Project Management? How to become a good project manager? Thanks
project query
project query  I am doing project in java using eclipse..My project is a web related one.In this how to set sms alert using Jsp code. pls help me
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
mini project
mini project  I want a mini project on eco tourism
Project Doubght
Project Doubght  What is meant by server monitoring in java enterprise application
Need Project
Need Project  How to develop School management project by using Struts Framework? Please give me suggestion and sample examples for my project
[Mini-Project]
[Mini-Project]  [Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc
java project
java project  i would like to get an idea of how to do a project by doing a project(hospital management) in java.so could you please provide me with tips,UML,source code,or links of already completed project with documentation
Project in jsp
Project in jsp  Hi, I'm doing MCA n have to do a project 'Attendance Consolidation' in JSP.I know basic java, but new to jsp. Is there any JSP source code available for reference...? pls help me
Jsp Project
main project for completing my acadamic project as well as i need to improve my... project using jsp and servlet.. and i am interested in doing cloud computing related project... Thanks in Advance
java project
java project  how many tables are required in backend for online examination system project in jsp If backend is SQL

Ads