Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Jsp Index

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

52 comments so far (post your own) View All Comments Latest 10 Comments:

I want to develop the JSP coding for checking the given input data(textbox value) is number or alphabets. How can i deveop the coding. please help me.

Posted by Baskaran Samundeeswa on Saturday, 06.26.10 @ 19:57pm | #97803

Hi.. Dear Feiends...
I am new to this technologies... please any body have a sample web application in 3Tirer, pls sent me...

Thanks in Advance...
Zing. Eng

Posted by Zing on Wednesday, 06.9.10 @ 14:12pm | #97466

its very helpful

Posted by bharani on Wednesday, 03.17.10 @ 17:25pm | #95639

What's wrong with this code..

try{
//con=MyConnection.getConnection();
con.setAutoCommit(false);
stat=con.createStatement();
spt = con.setSavepoint("svpt1");
stat.execute(qry1);

ResultSet rs = stat.executeQuery(identity);
String qry2="insert into contactdetail(id,address,phone,email) values("+rs.getInt(1)+",'"+emp.getAddress()+ "',"+emp.getPhone()+",'"+emp.getEmail()+"')";
stat.execute(qry2);
con.commit();

}
catch(Exception e)
{
try{
con.rollback(spt);
}
catch(SQLException e1)
{}
}

Posted by Ashraf on Monday, 08.31.09 @ 12:15pm | #90446

I am having problem in dealing with the transaction.i want to insert records in multiple tables. i am using transaction for this. can you plz help me out.

Posted by Ashraf on Monday, 08.31.09 @ 12:10pm | #90445

hi,sir i am glad to visiting this side.this site very benefitial to student like us .i am final yr computer science engineerine student if u provide any material then pls send email me on my id. thank

Posted by vitthal on Tuesday, 03.24.09 @ 04:34am | #86154

sir,
thanks for providing
important information
regarding java.

Posted by Deepak kumar mishra on Tuesday, 03.10.09 @ 14:06pm | #85704

how to browse xsl sheet only in jsb servlet

Posted by periyasamy.p on Tuesday, 01.27.09 @ 11:16am | #84218

good service keep it up..

Posted by anitha rani on Monday, 12.8.08 @ 02:03am | #82495

Hi can anyone gime me a sample application for ejb2.0+struts+weblogic application its urgent

Posted by nitin on Thursday, 11.27.08 @ 23:10pm | #82125

Hi,
Can you tell me how display on my site weather the coming days in the XML parser from Weather.com? Please.

Thank you!
Math

Posted by Mathiew on Friday, 10.31.08 @ 17:20pm | #81450

HI,

My requirement is that after submitting a textboxvalue ,the value in the textbox should retain so that i can use it for one other action.How can i do this using struts in java

Thanks,
Kiranmai

Posted by Kiranmai on Wednesday, 10.8.08 @ 18:22pm | #80965

Designing online application with JSP sir sample program i want sir ple help me sir

Posted by Aparna on Sunday, 09.7.08 @ 17:18pm | #77754

can u plz tell me how can i upload an image which can be seen to the client on the page where it is been placed or want to be placed

Posted by vinita on Saturday, 09.6.08 @ 12:54pm | #77456

Hi,
Please send me the code for "Reverse of a string" without using any built in function.

Posted by Binoy Mondal on Sunday, 08.17.08 @ 20:39pm | #73367

i need, how to pass(display) the text field values from one jsp page to more than one jsp pages using java script with java servlet. can u send me source code immediately

Posted by selvarani on Thursday, 08.7.08 @ 16:17pm | #71577

hiiiiiiii

Actually some what i know about JSP.
Actually i have created one dropdown box in JSP, i have to get the values from the database where i have created the table into the dropdown box.

Plz can u suggest me to do that program

Posted by Santhoshi on Friday, 06.13.08 @ 16:08pm | #63210

i am new with java
can any one solve my problem

Write a program called LineCensor that asks the user for a word to replace in some text, and the word to replace it with. The program then reads a line of text from the user and echoes the line back to screen replacing all occurrences of the first word with the second word. It only replaces the word being censored when it occurs independently in a line (i.e. not as a part of another word).
Enter word to censor: cat
Enter word to replace it: xxxxx
Enter line of text to censor:
The cat was curious about the other cats string
The xxxxx was curious about the other cats string

Posted by mehul on Sunday, 04.20.08 @ 05:46am | #57269

sir, how to insert value from a form into two Sybase database table.pls help me and how to create multiple form in single JSP

Posted by prashanth.N on Tuesday, 03.11.08 @ 17:34pm | #52302

i don know wats prblm here, plz help
my code is:

<%@ page language="java"
contentType="text/html"
import="java.sql.*"
%>

<%! String aid1 = new String(" ");
String passwd1 = new String(" ");
String pass1 = new String(" ");
%>



<%
aid1=request.getParameter("aid");
passwd1=request.getParameter("passwd");
%>

<%
try
{
Class.forName("com.mysql.jdbc.Driver");

Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/b1", "root", "root");

Statement st=conn.createStatement();


ResultSet rs = st.executeQuery("select * from admin where aid= '" +aid1+ "' ");

if(rs.next())
{
String pass1=rs.getString("passwd");
}

if(passwd1.equals(pass1))
{
out.println("<br><br><br><br> <font color=blue size=6><center> SUCCESS!!! You have successfully
logged in </center></font>");



%>
<br><br><br><br><br><br><br>
<a href="adminleft.jsp">ENTER</a>
<br>
<a href="admin.jsp">LOG OUT</a>

<%

}

else
{
out.println("<center><h3><br><br><font size=6> ERROR! Login Unsuccessfull</font></center>");
out.println("");
}

}
catch(Exception e)
{ }
%>


<html>
<head>

<title> adminconn </title>

</head>

<body>
</body>
</html>

And the error is coming:


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 18 in the jsp file: /library/adminconn.jsp
Generated servlet error:
String literal is not properly closed by a double-quote


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 18 in the jsp file: /library/adminconn.jsp
Generated servlet error:
String literal is not properly closed by a double-quote


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

Plz help me out...




































Posted by bajrang on Tuesday, 03.11.08 @ 14:41pm | #52277

Hi,
can you tell me how to get a single record set in jsp by using jdbc.

Posted by prashant on Wednesday, 02.13.08 @ 17:51pm | #48157

Here is part of a project I am doing:

User fill in html form which include a SELECT LIST that is populated from database.

User submit for validation to ensure all required fields are filled appropriately including the select list. This is done using a javabean if the is error the user is presented with a retry form which require the user to enter only the field wit problem. All values for data entered in the first form is retained and displayed on the retry form.

I am facing a problem with the SELECT LIST how do I retain the value of selected option and at the same time user still can select a new value from the list of options.

Thank you

Posted by Durahman Hamdan on Wednesday, 02.13.08 @ 09:42am | #48108

sir, i need to create one report in excel sheet which is till now i am displaying using jsp. plz help me

Posted by prakash on Friday, 02.8.08 @ 12:30pm | #47596

How to create Cookie And Session ?
What is the difference between cookie and session ?

Posted by Falgun on Friday, 02.1.08 @ 22:53pm | #46891

Hi,can anyone plz tell me how to call a jsp page from asp page?
If it is possible then how???

Posted by aaryan on Tuesday, 01.29.08 @ 16:12pm | #46492

sir
please tall me it is a compane or tranning institute? if is there any java vacancy then replay me.
ok by . thanking you

Posted by sabyasachi maity on Wednesday, 01.23.08 @ 20:16pm | #45926

sir,
I ve successfully installed tomcat 4.1, with environment variables as JAVA_HOME=C:\Program Files\java\jdk1.5.0_14, TOMCAT_PATH=C:\Program Files\java\Tomcat 4.1 and classpath=C:\Program Files\java\jdk1.5.0_14\bin;C:\Program
Files\java\Tomcat 4.1\common\lib\servlet.jar; AS PER THE GUIDELINES MENTIONED YOUR DOWNLOAD MATERIALS yet the JSP file MAX with simple code
<HTML>
<%! int a = 10, b=20,max = 0;
if(a>b) out.println("MAXIMUM IS:"+a);
else out.println("MAXIMUM IS:"+b);%></HTML>
and with URL:: "http://localhost:8080/examples/MAX" is given ERROR: with description "The requested resource (/examples/MAX) is not available". Please guide me, TO get the correct result on browser.

Regards,
RANITA

Posted by RANITA GANGULY on Monday, 01.14.08 @ 12:50pm | #45171

hello sir,
i would like to know code for how to read a file
using jsp that is present in same folder or ij web-inf folder. i m using tomcat .
please mail to me.
regrads
swarupa.

Posted by swarupa on Tuesday, 01.8.08 @ 20:11pm | #44807

hi,
i want code for comparing date in jsp.The user enters date in text box,which should be compared with system date of local computer,if both date r same then "right" should be displayed in output otherwise "wrong".
plz reply me.

Posted by rajesh on Monday, 12.24.07 @ 16:16pm | #43581

get me the code for JSP with generation of both the text files and xml files

Posted by priya on Wednesday, 11.14.07 @ 14:33pm | #37367

Hi,

What is dao, where do we use dao in a project with an example? please send the answer to MailID.

Regards,
Ramana

Posted by ramana on Saturday, 11.10.07 @ 23:15pm | #36861

please send me jsp code program for tybscit syllabus

Posted by atul; on Thursday, 11.1.07 @ 16:04pm | #35318

Actually I am just beginer for struts.I want know what's the code for login form in struts.

Posted by Vikas Kumar Anand on Thursday, 10.25.07 @ 02:51am | #34706

hi how to do it From Database data retrieved using Struts and displayed in Excel sheet format in jsp

Posted by Devanathan on Saturday, 09.22.07 @ 20:29pm | #28874

what is the difference b/w jsp pages under WEB-INF and under rootdirectory

Posted by raju on Tuesday, 09.18.07 @ 12:08pm | #27465

This JSP tutorial is Excellent. very good for beginners. Ur tutorial helped me a lot. Thanks

Posted by Vara Gadde on Friday, 09.14.07 @ 23:18pm | #26998

hi friends,can anyone send me a project of payroll management system with jsp and mysql

Posted by rony on Thursday, 09.13.07 @ 21:15pm | #26928

plz tell us how we can insert special character like in excel or ms word from jsp

Posted by zulfi on Tuesday, 09.11.07 @ 14:36pm | #26747


hi Jeliies

yea my friend have that project of jsp project that uses oracle database and tomcat server,

Posted by afif on Friday, 07.13.07 @ 10:13am | #21186

Hi friends, can anyone help? I need a jsp project that uses oracle database and tomcat server.
The project can be a shopping cart or a gallery once it can create, read, update, delete in the tables of the database.
If anyone has such a project can they please email me its @ fairy_glamour19@yahoo.com
otherwise if someone knows about making web applications using these technologies please mail me too, this would be excellent

thanks alot

Posted by Jeliies on Monday, 07.9.07 @ 11:43am | #20950

How to create war, jar and ear files and how to deplyo these files


Posted by nagaraju on Monday, 07.2.07 @ 12:30pm | #20575

i want to know login form in jsp it should be login and passward.........................

Posted by Afif on Friday, 06.22.07 @ 15:31pm | #19958

how to deploy the ejb application in weblogic.
IS there any tutorial for weblogic.
Thanks in advance
Priya

Posted by priya on Thursday, 06.14.07 @ 18:04pm | #19218

how to deploy the ejb application in weblogic

Posted by priya on Thursday, 06.14.07 @ 18:03pm | #19217

Hi Sir,

Excellent web site for beginners.
I want to Request you to provide examples
on JSP & SERVLET based web services in JAVA.









Posted by srichandra on Saturday, 05.26.07 @ 14:36pm | #17346

Hi Sir,

Can u pls help me in one problem. How to display the content retrived from database in pages each having 10 lines.

Posted by Rajeshwari on Thursday, 05.17.07 @ 12:46pm | #16236

can i use jsp in smartfoxserver(web server)..give some notes and how to congigure jsp in smartfoxwebserver

Posted by vijayakumar on Monday, 05.7.07 @ 16:09pm | #15403

i use to field in html userid and password
i submit the form
authentication check in jsp
the userid and password corrrect it will goto another page of jsp what is the comment of another jsp page i willget

Posted by kalaiselvan on Monday, 04.23.07 @ 13:45pm | #14798

Reply

We have upload the swing based chatserver at
[url =http://www.roseindia.net/chatserver/index.shtml]http://www.roseindia.net/chatserver/index.shtml[/url] location. And we upload the chat server for Jsp very soon

Posted by Rahul on Wednesday, 03.14.07 @ 12:54pm | #11665

hi sir

please include in your example on how to develop a chat systems using JSP

Posted by SARGE on Wednesday, 03.14.07 @ 09:23am | #11642

VERY USEFUL SITE

CHANGE THE BACKGROUND FROM YELLOW ANY LIGHT COLOR
IN EXAMPLE CODE

Posted by ASDASD on Thursday, 02.22.07 @ 14:25pm | #8868

Hi Sir,

Excellent web site for beginners.
I want to Request you to provide examples
on REST based web services in JAVA.

Posted by eeswari on Thursday, 01.25.07 @ 08:19am | #4286

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.