Based on Java Servlet technology, JSP (JavaServer Pages) allows the platform-independent development of dynamic web applications.

learn more… | top users | synonyms

0
votes
0answers
6 views

Fragment “path/file.jsp” was not found at expected path “path/file.jsp”

There is a similar question to this but it does not have the same focus and is 5 years old. I have an error with a few of my includes in my .jsp files that reference things in my WEB-INF folder. The ...
0
votes
0answers
6 views

Can't get custom taglib body in jsp

need some help here. I can't make any simple example of getting a custom taglib body work. When there is no getBodyContent function I get a nullpointerexception. In this example below I get a ...
0
votes
1answer
20 views

ASP to Java/JSP

So i'm a little bit new to asp, I'm working on converting a form from ASP to JSP/Java. I'm working on the error section and I'm a little bit lost. There is more to the code but I figured that this ...
-3
votes
1answer
30 views

Image Upload in JSP

I want to add the image name to my database and the image to the folder but i dont know what am i doing wrong, Both the coding for the database uploading and the form is given below: <form ...
0
votes
0answers
8 views

Passing Data from jsp to controller in Spring mvc

I am new to Springs and I am stuck at passing data from jsp to controller What i have here is a listing page where user is allowed to click on the primary key and then that primary key should pass to ...
0
votes
0answers
15 views

Trying to target a specific image in a jsp foreach loop

I have a list of images in an array list: <c:forEach items="${articleContent.articleMediaList}" var="gridImage" varStatus="imgCount"> <img src="${imagePath}${gridImage.image"/> ...
0
votes
1answer
32 views

How to display the output of method using sessions in java

I have an action class with a method serverstate where I am parsing few server details and weblogic command to get the current status of weblogic servers.The code below gives the required output in ...
0
votes
1answer
17 views

How to write and read database from android apps

Helo, im newbie at android programming. Right now im planning to do some kind of project. Says i have website, wrote in jsp, that contain product inventory and its detail, stored in database (oracle). ...
0
votes
1answer
11 views

JSPF file variable access from java class file

I have a variable in jspf file. I want to access it from another java class file.is it possible to access the variable from java class file?If it is possible how i can do it ?
-1
votes
0answers
10 views

Display tag export

Here my code: <display:setProperty name="paging.banner.placement" value="bottom" /> <display:setProperty name="export.pdf" value="true" /> <display:setProperty ...
-1
votes
2answers
25 views

JSP table doesn't show values from db

I'm a beginner in JSP and I'm trying to fill a table with some values from my database ! The values returned as a string which contains special characters and after a double split I try to pass the ...
-1
votes
1answer
28 views

Struts 2 iterator Tag

I have a collection of Java Beans which I want to iterate in the JSP using iterator tag. What is the default order in which the list is sorted by this tag? Because it does not iterate in the order in ...
-5
votes
0answers
40 views

How to draw the table using jquery from JSON object [on hold]

Am having the JSON object as [ {"roleName":"Java Dev","weeks":["Aug 10-Aug 16 2014"],"resources":"20"}, {"roleName":"Java Dev","weeks":["Aug 17-Aug 23 2014"],"resources":"30"}, ...
-1
votes
1answer
19 views

How to proccess href parameters jsp

I have little test page, but i can`t get request parameters an dont understand why. Test page have "href" links like this: <a href="main.jspc?param=show" class="submenu">Show smth</a> ...
0
votes
0answers
11 views

Change image using javascript and jstl with database

I'm trying to change a banner image using javascript and jstl with database. here is my code please help me in this case:- Database: TABLE ADV id int image varchar javascript: index.jsp ...
1
vote
0answers
24 views

How to retrieve Textbox value even after page is refreshed in jsp?

I have 2 Textbox and 3 select box which contains Date such as "EventId","State","Distrcit","schools","Event Date" and a submit button. I am calling the same page through servlet, when I hit the submit ...
0
votes
0answers
16 views

how to display a table which has 3 appointments for each day of week in Struts 1

In Struts 1 , It displays 3 appointments for each day of the week. each appointment of respective day has a 'from' and 'to' textbox , where the user has to enter the time. Every day has a checkbox , ...
0
votes
1answer
26 views

Controller mapping works but jsp giving 404

I have a jersey webapp running and i'm trying to integrate spring mvc in to it. couple of breakpoints later i found that when controllers request mapping is accessible but the jsp is giving a 404. Any ...
0
votes
1answer
25 views

how to add spring security in login form

I have a login page with email address and password. How can i use spring security for the secure login. I'm don't understand how to do it..? In my web app the first page is the login page with with ...
0
votes
0answers
11 views

Selected value is getting reset on cancel while using <input type='file''> for file selection

i am using <input type='file'> for file selection in jsp but when we already selected a file and we again click on browse for new selection there if we click on cancel button , old selected file ...
1
vote
1answer
41 views

model class beans are not being filled

I wrote a web application where there are login.jsp, loginAction and login Beans. When I fill the form in th jsp beans in the loginbeans are being filled through loginAction. When I replicate the ...
0
votes
1answer
19 views

Json Array not properly generated in jsp

I have written jsp code for generating json .But its not generating exact JsonArray. Its like [{"item":"747"},,{"item":"1617"},] instead of [{"item":"747"},{"item":"1617"}]. below is the code ...
1
vote
4answers
26 views

How to deploy/upload a JSP file on Server

I have created a jsp file which will give an output in JSON format using java class and servlet, i am new to java and i don't have idea about the deployment of jsp file. Can anyone suggest me how to ...
0
votes
2answers
43 views

Add images to the form in java

I want to add the image and the file with the same form in JSP. how should i do it? Here, i made the form as: <div id="user_img"> <form name="form1" method="post" ...
0
votes
1answer
40 views

Passing Array values from js file to JSP file

js file: while passing the dropdown1[i],only one element alone is passing .but kot[i],item[i] is completely passing. for(var i=0;i<count;i++) { ...
0
votes
0answers
8 views

How exactly do the jspInit() and other methods work on JSP with Glassfish 4.0?

I am new to JSP. This is my simple JSP file: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.Date"%> <!DOCTYPE html PUBLIC "-//W3C//DTD ...
0
votes
1answer
27 views

About a way of filtering the access to web pages based on IP address

I am managing a server providing web administration pages and communicating with client apps. I designed the web part which allows the public access through the 80 port. However, I was told from my ...
-3
votes
0answers
25 views

which attribute is used for request before the servlet is invoked [on hold]

Which attribute is used for request before servlet is invoked. As i know "ServletRequest" is used for this purpose. But i am still confused. How to fix this issue. Please tell me which attribute is ...
0
votes
1answer
18 views

Tabbed Browsing Session Issue in Java

The code already exist and i have less time I Open Tab 1 in browser - JSP Page XYZ opened for ID 100 contains session.setAttribute("100",ID) Then, Open Tab 2 in same browser - Same JSP Page XYZ ...
0
votes
0answers
11 views

Error when trying to build Apache Commons IO 2.5 SNAPSHOT “(path) as the parent directory does not exist”

I am getting this error Tests run: 134, Failures: 0, Errors: 71, Skipped: 0, Time elapsed: 1.614 sec <<< FAILURE! - in org.apache.commons.io.FileUtilsTestCase At first it was a lower number ...
0
votes
1answer
14 views

Sending Arrays from one application to another

i want to send 2 arrays from my application to another application. i am using the following code $.ajax({ url:"http://bdln2459:50000/pg.com~prf~scprf~dc_pte_sbuyer/PTEMain.jsp", ...
0
votes
2answers
44 views

Creating a return type of a recursive method

I have the following recursive method that generates permutations for a given string. I am trying to create a return type for the generated strings in an arraylist, more specifically I am trying to ...
0
votes
1answer
27 views

Dynamic URL from database and MVC in JSP

I am learning JAVA and Spring Framework. I wanted to know that is it possible in java to create Dynamic URL in spring framework using values from url and fetching from database. I am trying to make ...
0
votes
1answer
14 views

New line not show when alert text returned by ajax

I have a JSP: <%@page contentType="text/html"; charset=GBK"%> <% out.println("a\\nb"); %> now in a web page, I call this jsp with ajax: alert($.ajax({url:'test.jsp', async: ...
0
votes
0answers
14 views

Ajax autocomplete with gson on jsp

I have problem about autocomplete with ajax. I take datas from my java class to ajax jsp file. But i cant append it to my listing area. index.jsp <head> <script ...
0
votes
2answers
27 views

how to pass values between pages using thymeleaf in a spring mvc web application

i have a string variable that i create in a controller class and i want to print it in a jsp page using this ${time} my code work if i dont use a thymeleaf view resolver but if use one it dont ...
0
votes
4answers
23 views

request.getAttribute not working in included file

In my Dynamic Web Application (working in Eclipse, with Tomcat 7 server), my pages have the same header, which includes the username of the currently logged in user. Rather than having the header ...
0
votes
1answer
18 views

Regarding the Action Mapping in Struts2

I am trying to run my struts application but i am getting a error action is not mapped i have seen the namespace it is correct but still getting the error?Can anyone Help me? struts.xml: <?xml ...
0
votes
1answer
22 views

Embedded Jetty and Spring MVC not mapping index.jsp

I am relatively new to Spring MVC, and have a working knowledge of Embedded Jetty. We have an existing Spring MVC webapp which I can compile into a war and drop into Tomcat, and it works fine. However ...
0
votes
1answer
15 views

JSP How to view all session on server

I am a very newbie in JSP Dynamic Web, I have a small project that request input username for user and use HTTP session to store temporary. After user register, user will come to guest page which show ...
-2
votes
2answers
35 views

How to capture three step path in web.xml Servlet project? [on hold]

In my Dynamic Web Application in Eclipse using Tomcat 7, I would like to map any url of the pattern: www.mysite.com/product/{anything}/{anything} to a certain .jsp page. In other words, I want any ...
0
votes
1answer
22 views

Java servlets resource not found

I am trying to enter a new user into my database with servlets. I have a problem when I click submit button i registraion form. I get "The requested resource is not available." error. I cant figure it ...
0
votes
1answer
17 views

How do file paths work in a Dynamic Web Application in Java and Eclipse?

I am building a Dynamic web application in Eclipse. In my Login.java servlet, I want the doGet() method to perform some logic (i.e. check if the user is already logged in) and open the page login.jsp ...
0
votes
1answer
16 views

Java servlet: request.getParameter and request.setAttribute connected in a way I don't understand [duplicate]

At the top of my doPost method I grab a few parameters that I previously set in the JSP using a basic form: protected void doPost(HttpServletRequest request, HttpServletResponse ...
1
vote
1answer
16 views

JSP EL parameter list / interface

Is there at a mechanism (preferably compile-time) in JSP to specify required parameters for the JSP accessible by EL, or are the available objects always unknown? There are cases where I want to ...
1
vote
1answer
27 views

how to ensure thread safety for session attributes

I was writing j2ee code but i am facing a problem with session attribute. Regarding ensuring of thread safety for session attributes which is being set and accessed in a servlet? As, i know we can ...
0
votes
3answers
19 views

use of (+) sign in JSP for addition

i am trying to get the value of multiplication and addition of numbers but in jsp it is taking the (+) as concatenation and not as addition symbol Here is my code <html> </head> ...
-1
votes
1answer
21 views

How to download all the data from Datatable that is available in screen not in serverside to excel and csv format?

I have two datatables Table A and Table B in one page where user can shifts data back and forth between two tables. So what i would like to do is after user shifts data between these two tables I ...
-1
votes
0answers
9 views

How to redirect from a Servlet to an HTML page that has three frames?

How to redirect from a Servlet to an HTML page that has three frames. I have tried with response.sendredirect(), request dispatcher. All works fine with simple HTML and JSP pages but I can't get to ...
0
votes
2answers
21 views

JSP class not found exception

I am trying to run a war file in Red5 0.9.0 server with embedded tomcat-6.0.24. After deployment of WAR file I can access the index page sucessfully. But when I try to access any other jsp page, ...