Click here to Skip to main content
15,880,972 members
Everything / JSP

JSP

JSP

Great Reads

by Mircea Diaconescu, Gerd Wagner
Learn how to build a Java back-end web application with minimal effort, using Java Server Faces (JSF) as the user interface technology, the Java Persistence API (JPA) for object-to-storage mapping, and a MySQL database.
by V.
How to dynamically build a JQPlot graph through the code behind.
by Dynamsoft
In this article, I’ll show you how to capture images from your web browser, edit them, and then upload them to your system.
by Han Bo Sun
In this tutorial, I am going to show the readers how to create an MVC application using Spring Boot, packaging as a self host WAR file, and execute using embedded Jetty application server.

Latest Articles

by ToughDev
Create custom nanorc file for JSP in nano to enhance syntax highlighting and readability, along with basic autocomplete
by Han Bo Sun
This tutorial discusses the way to setup a Spring boot application that can utilize JSTL template and taglib.
by Han Bo Sun
In this tutorial, I am going to show the readers how to create an MVC application using Spring Boot, packaging as a self host WAR file, and execute using embedded Jetty application server.
by Han Bo Sun
In this article, I will show the reader how to secure a web application based on Spring Boot and WAR archive, using the Spring Security and Tags. The application will have a login page, page access based on user roles, login failure, and access denied pages.

All Articles

Sort by Score

JSP 

2 Jan 2013 by WebMaster
Hi pankajbhardwaj,I think the problem is here : out.println(" ");
20 Nov 2015 by Mircea Diaconescu, Gerd Wagner
Learn how to build a Java back-end web application with minimal effort, using Java Server Faces (JSF) as the user interface technology, the Java Persistence API (JPA) for object-to-storage mapping, and a MySQL database.
12 Feb 2013 by V.
How to dynamically build a JQPlot graph through the code behind.
19 Dec 2011 by Uday P.Singh
Yes, it is possible, Have a look at this article:Google Maps in HTML, ASP.NET, PHP, JSP etc. with ease[^]hope it helps :)
25 Jun 2011 by thatraja
Here you go, pick any. But my suggestion is it should be best for your future jobs so pick the right one.50 Great Project Ideas[^]Projects Ideas[^]Projectsjugaad[^]
25 Jun 2011 by Espen Harlinn
A square is magic if each of the rows, columns, and diagonals add up to the same total. So, for example, the square 25 4 19 10 16 22 13 28 7is magic, since every row, column, and diagonal adds up to 48. Of the nine entries, three (4, 16 and 25) are perfect squares.The problem...
9 Mar 2013 by Michael Haephrati
Javascript allows using 3 data types:StringNumberBooleanThe datatype of your text boxes is String, while to perform any numeric calculation, you must use a Number.So, you need to convert the contents of the text boxes to a number.parseInt(num1)and...
17 Feb 2011 by Pravin Patil, Mumbai
http://stackov...
13 Dec 2011 by nguyenle.it
Thank you so much for any commentI solved it by myselfThis is the solutionIn the jsp file of struts i have to have this directive to use html tag lib and in the "img" tag i should use rewrite attribute to link to the image file. And the image you should put in the Web Content pathAnd...
19 Dec 2011 by D Anil Kumar
use google maps API http://code.google.com/apis/maps/index.html
19 Dec 2011 by RaviRanjanKr
Its quite common question to ask about Google Map for asp.net application, have a look there-CP Search-[Google Map and asp.net][^] for more similar question with plenty of solutions.like Regarding Google map[^]
20 Jun 2012 by Sandeep Mewara
Have a look at this: A Simple Interactive JTable Tutorial[^]
10 Jul 2012 by Prasad_Kulkarni
Refer:JSP Paging Example in Datagrid[^]Pagination in JSP[^]and lot more on google[^]
1 Aug 2012 by Dynamsoft
In this article, I’ll show you how to capture images from your web browser, edit them, and then upload them to your system.
8 Oct 2012 by Om Prakash Pant
Please see the following example:http://wowjava.wordpress.com/2010/11/11/autocomplete-textbox-in-jsp/[^]
8 Oct 2012 by Prasad_Kulkarni
Refer: Autocomplete text from sql database[^]
8 Oct 2012 by AshishChaudha
Try thisA Beginners Guide - Implementing Auto Suggest Functionality using Ajax Control Toolkit[^]Thanks
6 Mar 2013 by Niral Soni
It seems like coding/syntax error. Once your JSP page gets parsed, and contents reaches to client side, it will show something like this - //$(document).ready(function(){ // $("#dir1").click(function(){ // $("#dir1").focusout(function(){ var...
12 Mar 2013 by Sudhakar Shinde
Please refer to the link http://www.scriptiny.com/2012/12/how-to-use-timepicker-for-jquery/[]. I hope this will give you idea about how to use it in your JSP page. Suggest you to try to use this in a JSP page and submit code in case you are facing any problem.Cheers,Sudhakar
29 Apr 2013 by Prasad Khandekar
Hello,It's not very clear how you are passing this data from controller to the VIEW, and secondly whether you want to display it as a list or a table. If your are passing it in the form of a List of one or more bean instance and you want to display the data in a HTML Select list and that the...
10 Jun 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Issues I Can See1. [As reported by Sergey Alexandrovich Kryukov] -> that is onsubmit, not önsubmit.2. As you are returning boolean value from function, you should write a return statement in the call like below (good practice).onsubmit="return validate();"3. Missing closing curly...
30 Jun 2013 by Sergey Alexandrovich Kryukov
Nobody is supposed to "recover a password", otherwise it would defeat one of the most important properties of the passwords. Passwords should not be recoverable, ever. If a password is lost, a brand new one should be created. I would say, the major purpose of password recovery would be...
2 Jul 2013 by Nagy Vilmos
Maybe you should ask facebook about it. Here's the support[^] page, I'd start there.
7 Jul 2013 by Shubhashish_Mandal
int userId = Integer.parseInt(userID[i]);
8 Aug 2013 by ridoy
You should find these interesting..How-to-create-master-page-in-javajsp.html[^]http://www.comp.dit.ie/btierney/oracle11gdoc/appdev.111/b28765/mastdetail.htm[^]
12 Aug 2013 by pasztorpisti
It isn't really a typecast, I would call it conversion. BTW, this question is quite old and answered several times. Use google to find simple things like this. I've used jdbc quite long ago but the following googled solutions seems to be...
11 Dec 2013 by thatraja
Gishisoft wrote:I try to research in the internet some i cannot understand. Probably you need to spend more time on learning(if possible, do from start)Check this one,A Simple Remember Me functionality in JSP/Servlet[^]
6 Feb 2014 by Dnyaneshwar@Pune
Refer following URLhttp://www.w3schools.com/tags/tag_iframe.asp[^]http://stackoverflow.com/questions/5015070/using-iframes-in-asp-net[^]http://forums.asp.net/t/1863593.aspx[^]
30 Nov 2015 by Stephen Hewison
From a purely pragmatic point of view. It doesn't matter which approach you use.The problem being solved by both methods is the ability target a page and pass in parameters.Arguably using www.domain.com/post/1234/Latest is a more readable URL.If you look into web frameworks such as...
28 Jan 2016 by Richard MacCutchan
Then please use Google to search for it. This is not a code-on-demand forum.
10 Dec 2018 by Afzaal Ahmad Zeeshan
You are injecting an invalid starter for the JSON document yourself, JSON.parse("(" + rawData + ")"); Your JSON documents can only start with {, or [, or they can have the data that they are representing—string, integer, whatever... RTFM. You can solve this problem by removing the...
13 Feb 2019 by Han Bo Sun
In this tutorial, I am going to show the readers how to create an MVC application using Spring Boot, packaging as a self host WAR file, and execute using embedded Jetty application server.
23 Apr 2020 by User 11060979
group is a reserved name so it needs to be quoted when using it as column name. Better is to choose another name for the column. See here for more: Reserved Words - MariaDB Knowledge Base[^] Note: time is basically also reserved but will be...
31 Oct 2023 by ToughDev
Create custom nanorc file for JSP in nano to enhance syntax highlighting and readability, along with basic autocomplete
27 Nov 2010 by #realJSOP
Googling this phrase - "deploy java servlet" - revelaed 500,000 hits, and the very first one has the title "Introduction to Java Servlets, Developing your first Java Servlet".Seriously dude - this is the internet, any question you might come up with has almost always been asked/answered...
8 Jan 2011 by Espen Harlinn
Try Personalization and User Profiles in ASP.NET 2.0[^]Use URL rewriting[^]Hopefully enough to get you started...You could consider using an existing CMS. Here is a list:Open Source Content Management Systems (CMS) in C#[^] umbraco and DotNetNuke are to my knowledge well...
18 Feb 2011 by Paritosh Das
I am using JDK 6, Netbeans 6.1 as IDE, Postgresql 8.4 as database, JBoss application server. However, at initial stage I have not adopted any framework Struts,Spring etc. How can I make a grid using that can insert, update and delete data in the database?
16 Feb 2011 by satyanarayana p.j
Hi Please refer following Link.http://www.stunicholls.com/menu/mini-tabbed-pages.html[^]
22 Feb 2011 by Sandeep Mewara
I doubt that. You cannot adjust the screen resolution of client system - that would be a big security hole, which if allowed!What you can do is, adjust your browser according to the screen resolution using Javascript.You can always do something like this:if ((screen.width
6 Mar 2011 by That's Aragon
You can use AJAX cascading drop down for this.Follow below link for more details with a good example.CascadingDropDown Example[^]Hope it helps.
18 Mar 2011 by Sandeep Mewara
Here you go: http://www.dreamincode.net/forums/topic/209654-finger-print-authentication/[^]http://www.componentsource.com/features/authentication/java-components/index.html[^]
24 Mar 2011 by Espen Harlinn
Yes :)Based on your question, I think you have a bit of reading ahead of you. Here is a few options on reading up on jdbc and PostGreSQL - take your pick:Search Google for: jdbc tutorial postgresql[^]RegardsEspen Harlinn
19 Apr 2011 by Marc A. Brown
Does this[^] help? Please note that I haven't reviewed it myself but it was the first result in this google search[^].If this helps, don't forget to vote and mark as the answer!
15 May 2011 by Kim Togo
What you what, is not how master-slave works. Master can only replicate to any number of slaves. But salves cannot update master. That is the idea in "master-slave".What you are asking is called MySQL Cluster, it is a synchronous solution that enables multiple MySQL instances to share...
23 May 2011 by TorstenH.
Check out the event, the button is dispatching. You should be able to figure out the name of that button: id="ButtonID" type="button" onClick="someFancyFunction(ButtonID)" >regardsTorsten
7 Jun 2011 by Nagy Vilmos
Try this: Using Buttons Using Buttons
24 Aug 2011 by Prerak Patel
[Edit]Check this http://www.metabuilders.com/Tools/ComboBox.aspx[^]
5 Sep 2011 by Ashish Tyagi 40
You can use META attribute of page. Like:-Your Page TitleOptional page text here.Where 2 in content="2;url=url to your jsp page" is delay of seconds to be...
5 Sep 2011 by Ashish Tyagi 40
Ok if you want to refresh the page only once per session then you can useYour Page Title
25 Oct 2011 by Rajeshram009
Hi,I think,it has two option...one u put the java file in form action(as )other one is sendredirect()....Thanks...
19 Nov 2011 by Graham Breach
No - if you want to use Java classes to connect to a MySQL server you will have to run it on the web server or in a Java applet.
29 Nov 2011 by TorstenH.
At least try to google it[^]First hit is this: Using LogMiner to Analyze Redo Log Files[^] @ Oracle Database Utilities Documentation
13 Dec 2011 by NikulDarji
http://www.ros...
19 Dec 2011 by raju melveetilpurayil
Start form here, and better to ask you doubts on google map forums because they are experts or solve all issues related to google mapGoogle Maps JavaScript API V3[^]
19 Dec 2011 by uspatel
If you want to use for only some addresses you can tryGoogle map codeother-wise try above answers.
1 Feb 2012 by thatraja
You didn't mention the complete error message(full stacktrace), check thisClass javax.ejb.EJBException[^]Class EJBException[^]BTW you can solve your issue by posting the complete error message in Google.
16 Feb 2012 by TorstenH.
java.lang.Nu...
3 Mar 2012 by thatraja
Here you goJSP Crystal Reports[^]CRYSTAL REPORTS FOR ECLIPSE 2.0 DEMOS[^]
28 Mar 2012 by Richard MacCutchan
answer=false...
30 Mar 2012 by bbirajdar
Hire a developer from www.freelancer.com and he will write the program for you.Everybody please vote if my solution is correct..
1 May 2012 by Nelek
Please have a look:http://www.javabeat.net/examples/2007/10/09/sending-mail-from-java/[^]http://www.javacommerce.com/displaypage.jsp?name=javamail.sql&id=18274[^]http://www.javapractices.com/topic/TopicAction.do?Id=144[^]http://www.tutorialspoint.com/java/java_sending_email.htm[^]
27 May 2012 by Prasad_Kulkarni
Please refer some links:Storing and Retrieving doc/pdf/xls files in SQL Server[^]SQl Server 2005 : Storing pdf,txt doc files in Tables [^]Store and Retrieve pdf/txt/doc/Images in Sql server database[^]CP Articl: SQL Server - BLOB Import and Export[^]Similar discussions:Save and...
17 Jul 2012 by Christian Graus
I guess you need to write a text parser, the HTTP request is easy, making sense of the response ( which is HTML, not just text ) is harder.Don't put your email here. If you give the site your email, you'll get an email from replies, and you won't get spam that way. Putting your email...
17 Aug 2012 by Dynamsoft
In this article, we will see how to use Dynamic Web TWAIN to acquire, edit images, and upload them to Microsoft SharePoint.
28 Aug 2012 by fjdiewornncalwe
Add a checked=true to the radio you want checked when you print it out.
14 Oct 2012 by Patrick Wanjau
It is a matter of choice which you select either JAX-Ws or JAX-RS. The difference is that JAX-RS is light weight and handles all requests in HTTP. On the other hand, JAX-WS is transport protocol independent, and you can use HTTP, SMTP, etc. JAX-WS is best to use if your application is heavy and...
25 Nov 2012 by coolloud13
Replace "==" sign with .equals(Object).Like if(role.equals("Customer"))
2 Jan 2013 by Prasad_Kulkarni
Refer: Retrieving Outlook Contact Lists using Javascript[^]Similar discussion here: Import contacts from outlook with JS[^]
1 Feb 2013 by Andreas Gieriet
Do the following:1) save the submitted text into a local file2) run the C compiler on that file3) zip the result4) post that zip file to a public folder5) provide the link to the published zip fileDetails to be elaborated by you - access rights and security issues too......
18 Feb 2013 by Sergey Alexandrovich Kryukov
From scratch, really? Start from learning and getting some basic experience in the technologies you have tagged.Gather some requirements for your social service.Get familiar with some most used architectural...
9 Mar 2013 by Abhishek Pant
try the code below: function doMath() { // Capture the entered values of two input boxes var...
30 Mar 2013 by Sudhakar Shinde
Encryption of JSP is not possible because it has to be readable for container to convert it into a servlet. Please read [THIS] for some workaround.
23 Apr 2013 by Sandeep Mewara
There are few Javascript based timers that you can look at. For example: How do I create a JavaScript countdown timer on my Web page?[^]
27 Apr 2013 by mohaideen shalim
Hi..Can anyone pls help me to write a code for the dynamic menu generation from oracle or any database in jsp???
28 May 2013 by Prasad Khandekar
Hello Shruthi,PageContext is used for storing and retrieving page-related information and sharing objects within the same translation unit and same request. It is also used as a convenience class that maintains a table of all the other implicit objects. For example try { ... ...
6 Jun 2013 by Prasad Khandekar
Hello Shruthi,Change your jsp code as shown below.
19 Jun 2013 by Shubhashish_Mandal
Actually your import statement are wrong .For an example QueryFactory is class , not a package. So your import statement should be :import="com.hp.hpl.jena.query.QueryFactory"instead ofimport="com.hp.hpl.jena.query.QueryFactory.*"Hence the same reason for the rest of the class.
2 Jul 2013 by jsc42
The id attribute is being copied from the ID field in your resultset. My guess is that this an autonumber field and, hence, is always numeric. If I understand correctly, all that you want to do is to convert that numeric value to a text; in which case, change both instances of rs.getString("ID")...
5 Jul 2013 by Shubhashish_Mandal
There are so many way to handle this.Process 1=============1. Create a hidden filed in your jsp called as "ReqType" .2.Set value as per Login/Logout request.2. Read this value in servletString type request.getParameter("ReqType")if("LOGOUT".equals(type)){//do logout...
8 Jul 2013 by Prasad Khandekar
Hello Mali,Since you are doing a sendRedirect, the browser is typically going to receives 301 response as shown below. This response instructs the browser that the requested resource has been moved to a different location and the browser should make a new request to the URL specified in the...
8 Jul 2013 by Shubhashish_Mandal
Try EL(Expression Language) instead of jsp scriptlet. Simply put ${loginMsg} in your logout page. To learn more ...http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html[^]
14 Jul 2013 by Shubhashish_Mandal
1. In filter grab the requested uri HttpServletRequest.getRequestURI()2. Create a list of do-not-filter .3. compare the uri with the list.
30 Jul 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
From your requirement I can make out the following steps.Decide the criteria when exactly you want to have the focus on the second TextBox.For Example - when MaxLength reaches, the focus will go to second TextBox.Use the javaScript onkeypress Event[^] for the first TextBox and call...
15 Sep 2013 by User-10031173
i have gallery page in that i diplayed single image of celebriti. when i click on this image have to show slide show of all images of respective celebriti. i have tried with the follwing link but it is not working.http://www.ppplugins.com/demo/ppgallery/index-button.html#gallery[^]i...
15 Sep 2013 by Rakesh Meel
visit here..Web-Based Image Slideshow using JavaScript[^]orhttp://www.siteforinfotech.com/2013/07/create-simple-image-slideshow-using-javascript.html#.UjbUDX_kyEU[^]
10 Oct 2013 by User-10031173
hi i have jquery script when run the page the script working perfectly but when for second its not working unless i refresh the page.this script is for editing the comments. for first time when edit the comments then submit its update in db and display immediately. when edit the next comment...
26 Dec 2013 by Marc Gabrie
Just embed Google Doc Viewer through an iframe and specify the PDF file you want to display. This is the code you should add:
28 Dec 2013 by CHill60
Have a look at the solutions to this asp forum post[^] in particular the response from sreejukg
28 Dec 2013 by Peter Leow
In addition to solution 1, you may want to read this article for an alternative way to getting stock info.Stock Quotes and Charts from Google Finance using C#[^]
29 Jan 2014 by Shubhashish_Mandal
did you check this : Caused by: java.lang.IllegalArgumentException: The servlets named [UploadDownloadFileServlet] and [com.uoc.elearning.web.UploadDownloadFileServlet] are both mapped to the url-pattern [/UploadDownloadFileServlet] which is not permitted
2 Feb 2014 by Richard MacCutchan
Plenty of information to be found by Google[^].
6 Feb 2014 by thatraja
I saw your question tags. So you could use Frames[^]. Here an example[^] like your question
14 Feb 2014 by thatraja
Check this articleModel View Controller (MVC) with JSP and JSTL[^]
14 Feb 2014 by Bala Selvanayagam
I am not too sure whether your code follows MVC patternIn MVC1.Model : Model is where the data classes, looks you have done this using the class "ModalClass"2 View : This should be almost pure HTML and should not have any data access class initiations / methods and you are defeating...
10 Mar 2014 by Krunal Rohit
Read this : JCS - Java Caching System[^].And a formal definition what page cache is : http://en.wikipedia.org/wiki/Page_cache[^]-KR
25 Apr 2014 by loctrice
I'll just take a guess since there wasn't much detail in your post. It sounds like one of the ajax calls (or both) is relying on values set by the other. If this is the case then what you are expecting is them to run in the order you called them. For instance you are...
15 Jun 2014 by DamithSL
Create javascript file with validations, common functions etc.. and add reference to it http://www.javascriptkit.com/javatutors/external.shtml[^]
31 Jul 2014 by Richard MacCutchan
Please read Code Project Quick Answers FAQ[^] and see https://www.google.com/search?q=MVC-JSP+application+with+MSSQL+as+the+database[^].
22 Sep 2014 by Fabrizio Stellato
Create a JSTL tag for manipulating and print the output of each object inside the list
6 Oct 2014 by Nelek
Step 1) Do a little research. Google is a good start...