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

learn more… | top users | synonyms

0
votes
1answer
14 views

Execute Java Code based on list of checkboxes in HTML

I have written two methods that will perform different functions based on the parameter passed to it. In this case, it is an array of checkbox values (Strings). On my .JSP I have said list of ...
0
votes
0answers
4 views

Liferay redirect to createAccountURL with parameters to default input values

I want to redirect to /html/portlet/login/create_account.jsp from a StrutsAction. I see some sample code and I have this code: String createAccountURL = ...
-1
votes
0answers
15 views

Figure fail to load at the same body content after button submit

I can't find ths solution to my problem. Maybe because I am generating WebFigure from MATLAB. Hope someone could save me. I have successfully use jquery to load the other page (multipledose.jsp) in ...
0
votes
0answers
16 views

unable to store data in the database when using multipart request

Hi all I am making an quiz application what i wanted was that whenever some one upload question the person can upload a picture as well but it is optional I am using ...
0
votes
4answers
20 views

Can a jsp file hold javascript

Hello everyone quick question. First time working with java script I have a jsp file that will create a data grid and one of the columns of the data grid are checkboxes. My question is can a JSP file ...
-1
votes
0answers
11 views

Jquery ajax response is not proper when making async call in chrome

I am developing a java web application. At a point I am doing following. At on blur event of text field call a javascript function. This function would make a async ajax call to the server through ...
-1
votes
0answers
10 views

Disabling javascript and submitting a form shows a blank screen

If i disable the javascript in my broswer, the form is getting submitted to show a blank screen instead of server side error messages. Please advice me on this Thanks.
0
votes
1answer
12 views

where does the scriptlet & html code stored in j2ee

i could not find answer of this question anywhere. i only know what & why we use scriplet. but where does scrip-let stored exactly ? ( asked by my interviewer) my answer was: its just a tag, ...
0
votes
1answer
13 views

JavaBeans giving result only once

I'm having a problem displaying an error message using beans. This is what i'm trying to do on a login page: get email, password and role of a user and using beans check it against the database for ...
0
votes
1answer
20 views

Java websocket client in JSP possible? [on hold]

Can a JSP page contain a java websocket client implementation? I don't think it's possible so that's why I'm asking. I don't think the javascript is able to grab the content the client would receive. ...
0
votes
1answer
29 views

How to use join in JSTL function?

I am new to JSTL so my teacher taught me that i should use JSTL like this: In JSP page: firstly set the setter of a entity in bean and then set it in session,request etc. and get values using foreach ...
0
votes
1answer
25 views

Global variable and call by reference in Java Servlet

I have one Servlet with many Global Variables and many Functions. Every Function needs to read and write to this Variables. The Problem is, that this is not threadsafe. When i have the Variables in ...
-2
votes
0answers
16 views

how to open a dialog box after clicking a table row to make changes

I want to implement a dialog box which will open as soon as i will click a table row.Basically want to edit the database through table rows. The table content is stored into the database and fetched ...
2
votes
2answers
40 views

how to reload every tab of browser which have open our webpages

gmail use some functionality by which they reload all tabs for the login. that means if we open login form of gmail in different different tabs. then login in single tab gmail automatically reload all ...
1
vote
1answer
22 views

IllegalStateException: getOutputStream() has already been called for this response

I have a JSP page which contains a table. On load of the page, the table will be populated. I also have an ajax call for every X seconds which has to refresh the table contents. On load, the contents ...
3
votes
1answer
26 views

Creating Multiple InternalResourceViewResolver

I was wondering if i could create a multiple InternalResourceViewResolver in my dispatcher servlet. Something like this , <bean id="jspViewResolver" ...
0
votes
1answer
10 views

Simple user login with JSTL

I have tried to create some java Servlet files based on the tutorial I found online. And now, I want to create a simple login but I keep getting HTTP:// 404. LoginServlet.java package example; ...
0
votes
1answer
23 views

Error when loading JSP

I am facing a weird issue when rendering a JSP. I get the following error on load Error: org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: ...
0
votes
1answer
27 views

how retrieve values from mysql using Dropdown list through a search statement JSP?

jsp page This is the jsp page where the drop down list option had been applied to retrieve and add set of values <tr> <td>&nbsp;</td> <td width="25%">Vehicle ...
0
votes
1answer
11 views

Browser encoding does not match charset setting in meta

I have a JSP hosted in Weblogic server. It will retreive data from database including some Chinese Characters. Below is the meta in the jsp. meta http-equiv="Content-Type" content="text/html; ...
0
votes
1answer
18 views

How to send selected value from jquery to controller in Spring MVC

I am using jquery in my jsp page.My requirement is that on selection of dropdown, my control should pass to the controller. This worked fine with jquery but I am unable to retrieve the selected value ...
-2
votes
0answers
38 views

How to add html table values to database?

I have a table whose rows are dynamically added. I want this html table's rows/records to be added to a my database table. Any ideas how I could accomplish this? P.S. I am using JSP and servlets with ...
-2
votes
1answer
31 views

Not able to do type cast in JSP code

This JSP code was working fine in java 8, but not able to run same in java 8. <c:set var="sAttrib" value="${bean.attrib}" /><% iteratorVal ((LinkedHashMap)sAttrib).keySet().iterator(); ...
1
vote
2answers
24 views

Retrieve data from database and display in in JSTL

Assume that when a user accesses to my website, then he will see a lot of images which have stored in the database before. I know how to do that in JSP Scriptlet, and I also know how to fetch and ...
0
votes
2answers
28 views

how to call a ajax function automatically after reloading the page

I have ajax function like this: $("#noOfFollowing").click(function(){ $.ajax({ url : 'Details', type : 'POST', data: "", success : ...
0
votes
2answers
15 views

Not able to assign value from jsp to nested ArrayList variable

I am trying to assign value for empList variable employeeAttdList value attendance and dt from jsp page My pojo classes public class Employee implements java.io.Serializable { private Long id; ...
0
votes
2answers
17 views

How can you pass in a value from a database on one jsp page to another jsp page?

On one page I displayed a table from my database and the user chooses a department. Based on that option the next page will display the items within that department. Is there a way that you can pass ...
0
votes
0answers
10 views

Escaping HTML attribute value in .tag file

I create a .tag file in eclipse IDE, which contains below code as such. <%@tag description="Dynamic Table Tag\nRequirements\n\t* A div of class \"dynamicTable\"\n\t* A series of spans whose ID's ...
0
votes
2answers
25 views

Cannot forward after response has been committed Servlet error

When I run this code, I get an IllegalStateException: Cannot forward after respons has been committed. I apologize, I am new to servlets. What should I do to fix this problem? This occurs at this ...
0
votes
0answers
4 views

Eclipse Juno with TomEE can't reference another class in the web service

Created a simple Web Service in Eclipse Juno using TomEE (v7.0 ) Here is the service code: public class TaskListWS { public String getTaskListForUser( String userToken ) { ...
-3
votes
1answer
8 views

Pros and cons on two approaches for moving from an exisiting java graphical user interface to an html5 graphical user interface

In a nutshell my question is of the pros and cons of the following potential approaches to migrating an existing java GUI the shows a map being built by a robot in realtime to an HTML5 GUI: Approach ...
0
votes
0answers
8 views

JSP page return array from invocation web service database query

I have a Web Service and will return the result with array in XML file, but i want to show the results with web service client JSP page. I want return array of web service result in JPS page but i ...
0
votes
1answer
42 views

Getting large form to Spring controller

I have a form whose purpose is to allow a user to create a new entry in a database table. The form is very large, ~50 fields in total. I'm needing a way get all of these values to my controller, ...
0
votes
0answers
17 views

Making a JSON string or object in JSP

This is what I thought a very simple issue. Basically I am trying to send a json string to a REST API service. Here is the JSON they supply "vslText": "[field1] = '12345678'" Now to send it to the ...
0
votes
0answers
9 views

How to solve “JSP support not configured” when using Jetty and Gradle

I'm trying to start new web application with gradle + jetty. When I run gradle jettyRunWar and open page in browser I got HTTP ERROR 500 Problem accessing /WEB-INF/view/home.jsp. Reason: JSP ...
0
votes
1answer
18 views

integrating JTable with STRUTS HIBERNATE

i'm trying to integrate JTable to display rows from the POSTGRE SQL, i use STRUTS and HIBERNATE to add, update, list and delete DATA from the database. i have succeded to add rows to the database but ...
0
votes
1answer
33 views

How to access two model attributes in JSP using a loop?

I am using spring-mvc, bootstrap and I want to set two attributes and access them simultaneously for a text field in my JSP page, sp that one attribute gives me name and another attribute gives value ...
0
votes
1answer
30 views

Servlet to JSP forward leads to jsp page but does not execute java code (only html)

I'm using a system which includes Jersey (1.18.1) for REST web services + custom servlets to treat client requests and call web services. I'm also using FORM method authentication. The problem is ...
0
votes
1answer
22 views

Creating a jsp search form to run a java Search program

The background info here is that I have a working Indexer and Search (in java) that indexes and searches a file directory for the filenames and then copies the files to a "Results" Directory. What I ...
0
votes
1answer
25 views

Sending Javascript array to Spring Controller without jquery

I need to send an array from my JSP page to a Spring Controller. In my JSP I get my array full with the things I need, and then, I start an AJAX request: var ajaxRequest; try{ // Opera ...
0
votes
1answer
24 views

JSP and Servlets: save layout changes in database

I am trying to build Java web application with draggable and resizable layout elements. I am using gridster to make layout customizable. I don't know how to save state of layout for every user in ...
0
votes
0answers
27 views

Embedded Jetty 9 PWC6188 Error

As many others, I'm facing the PWC6188-Error saying "http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application". This is a quite ...
0
votes
1answer
11 views

What is the easy to schedule a tast using jsp

I have one simple application. using that application i insert some data in the database at regular intervals. Which is working fine. Now i want to create a scheduler which should run from Monday to ...
0
votes
1answer
27 views

Cant start my Spring Web Flow

I have an app that uses a Spring Web Flow. This is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" ...
0
votes
0answers
25 views

Spring, hibernate and JSP

Controller.java @Controller public class ClassMasterController { @Autowired private ClassService classService; @RequestMapping(value = "/addClass" , method = RequestMethod.GET) ...
0
votes
1answer
12 views

Unable to reach home.jsp

I have an app. Due to some issues, in my web.xml, I had to change the url pattern from "/" to "*.action", and added a welcome-file-list. This is my web.xml now: <?xml version="1.0" ...
-1
votes
0answers
11 views

Cant edit jspx/jsp file in eclipse / blank cards

i cant see nothing when im trying to open/edit jsp/jspx files in eclipse. There appears only bookmark's but they are blank. I cant attach screenshoots... please help me:)
0
votes
0answers
28 views

Liferay + JSP + AlloyUI: Button as link and submit

I use Liferay 6.2 on JBoss 7.1.1. Also I am using a JSP as view with AlloyUI. I want a button as a link and as a submitter of a value to a method in the MVCPortlet class. The link is inside a java ...
0
votes
1answer
14 views

Run query on database using struts2

I am new to struts2 programming. I want to create a project that can access the mysql database and show its results on a jsp page. I am able to access the database and obtain required values from it. ...
0
votes
2answers
16 views

best practice in developing a web-application

is it the best practice of placing all the scripts use in different pages to be placed in the header file?? I think no because if a page do not uses a particular script and it is still loading and ...