JSP (Java Server Pages) is a server side technology used for presentation layer for the web applications.
0
votes
1answer
12 views
How to filter data with displaytag?
Is it anyhow possible to filter data with display tag? I want to filter data by date column, and that by providing lower and upper date limits.
EDIT:
I have two input fields. One for first date ...
0
votes
1answer
7 views
Retrieve multiple form field parameters in a multipart enctype form
I have 2 normal text fields and 1 upload field to be parsed. The getFieldName(); as suggested in the Apache Tomcat FileUpload page seems to only get the name attribute of the input html tag and not ...
-1
votes
4answers
27 views
how to connect form values in jsp to controller in spring MVC
I am new to spring MVC. i want to attach a model bean to a form which binds values and pass it to controller. so i did the following way
in jsp
<form:form modelattribute="model">
...
0
votes
0answers
4 views
Calendar field in jsp
I have multiple calendar fields in my jsp page and I am navigating the page with keyboard by pressing tabs, when my focus is on the calendar I can choose dates by pressing tabs and then enter, as soon ...
0
votes
1answer
15 views
IntelliJ IDEA JSP validation
I'm trying to turn on JSP validation in my IntelliJ IDEA, version 12.1.4, Community edition. I've read on their page where it's possible, but it doesn't work for me so I know I need to change my ...
1
vote
3answers
32 views
error SessionMap cannot be cast to java.util.HashMap
I am trying to store my HashMap value in session and then I am retrieving it using JSP but I am receiving an error saying
HTTP Status 500 - org.apache.struts2.dispatcher.SessionMap cannot be cast ...
0
votes
0answers
10 views
xml error due to servlet file Cannot find the declaration of element , Referenced file contains errors
i don't know why these error occured can someone explain me how to solve them -
cvc-elt.1: Cannot find the declaration of element 'web_1:web-app'.
Referenced file contains errors ...
-2
votes
2answers
26 views
Calling Java class from JSP button onclick
I am trying to to call a Java class when a button gets clicked from JSP. inside my JSP file I have the following:
<%
Object name = session.getAttribute("name");
Object ext = ...
0
votes
2answers
21 views
How can I reference a javascript library from a JSP in a java web application?
I am trying to create a table with sortable columns using a javascript library provided by this website. The web application is being created in Java and the table is created but not with the CSS ...
0
votes
1answer
52 views
How to show next div on click of button and hide previous one
I am creating div on jsp page dynamically.and I want to show the next div on click of next button and want to hide previous one.This is my code
Thanks in advance.
<div class="container fill">
...
0
votes
2answers
13 views
How to redirect to JSP and add values to the stack in EL.
I am getting confused with how to add values in stack in EL,how I should codeHow to redirect to JSP and add values to the stack in EL.
0
votes
0answers
47 views
using loop get the hashmap values
I have 5 attributes in my database, I am trying to retrieve it using hashmap in my struts2 project. attributes are namely MarketPlace, OrderDate, dataamount, count, result. Here I want to show the ...
0
votes
0answers
10 views
Need to change the node icon in rich tree
I am working on rich tree. I need to change the icon of node which is currently selected.
<rich:tree icon="/images/icon.jpg" iconleaf='/images/icon.jpg' ...
0
votes
2answers
31 views
How to reduce duplicating in jsp?
I have started learning Java recently and my question might be stupid, but nevertheless:
I'm working on small project, for now it's just a simple web-service, working on Google App Engine.
We aew ...
0
votes
1answer
18 views
Target Unreachable identifier resolved to null
hi everyone Im new at jsp and this is my first project I learned managed beans, navigation rules and stuff and I cant see what the problem is in here. all my codes are those. Please help me because Im ...
0
votes
3answers
19 views
What return me request.getParameter() when I send a GET and/or POST with the same name?
request.getParameter() to retrieve items sent by POST and/or GET.
String name = request.getParameter("name");
But how can we distinguish between these two cases? In fact, if I send both a post and ...
0
votes
4answers
44 views
JSP error issue in java [closed]
I have written a java servlet for a simple ebookshop and for some reason I don't understand it does not compile. Below I pasted the part of the code that gives me the error:
public void ...
1
vote
1answer
21 views
No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb'
I am deploying my project on tomcat,then I am getting this error "No mapping found for HTTP request with URI [/HelloWeb/] in DispatcherServlet with name 'HelloWeb'".
this is my web xml file
web.xml
...
0
votes
0answers
7 views
regarding JSTL tags are not working
I am deploying my web application in to tomcat 7. I am getting problem that custom tag libs are not reading unless I removed the extends attribute from page directive. But I can’t remove extends from ...
0
votes
4answers
27 views
Get div content by Id included in String Variable
I have a form in my JSP page. I am using Ajax to call the action class. And it works fine for me. The result I am getting is a variable containing HTML page.
This is my Script
...
0
votes
0answers
74 views
List & ArrayList in Java
I wanted to store all the grid panel into an arraylist so that I can iterate through them necessary. However, the results obtained were not to my expectation. Using the Netbeans debugging mode, I ...
0
votes
1answer
32 views
How to populate a form:select and select a default value?
I have an edit user form which has textfields(username, lastname..) and a select of countries. I'm having problems with this select because i don't know the better way to populate it. I've tried ...
-1
votes
0answers
21 views
how to create a discussion board? [closed]
i want to create discussion board for my website where admin can post question and login members can comment or like it similar to Facebook.
What is best and effcient way for this? i have gone ...
1
vote
2answers
23 views
Populating drop down with values in bean object Struts
I am having a Struts2 app where I am using a dropdown. I populated this dropdown with userId and userName from Users bean as below
public class DropDown extends ActionSupport{
private List ...
0
votes
1answer
57 views
how to display data in List Or grid or in table in Jsp
This is my JSP code:
<%@page import="java.util.Calendar"%> <%@ page import="org.apache.lucene.search.IndexSearcher"%> <%@ page import="org.apache.lucene.analysis.Analyzer"%> <%@ ...
1
vote
5answers
58 views
Null result being displayed using jsp
I am new to the concepts of dynamic web project .I have made the following two JSP and a one java class as just starting experiment.
The following rae my code
user.java
package com;
public ...
1
vote
0answers
14 views
Video shot from Android phone has to be streamed to JSP page via WiFi
My aim is to live stream video shot from Android phone to JSP page and show it in a media player.
How can I receive data from phone and show it in JSP real-time? Is there any API that I can use?
0
votes
0answers
13 views
Dynamic binding to dynamic table component
According to this site, a DataSource has to be dropped on to the designer for a dataprovider to be created. The table is then created dynamically and binded to the dataprovider.
However, if my web ...
-1
votes
6answers
73 views
Java Servlet if statment don't need { } brackets?
I am a beginner and reading through Murach's Java Servlet and JSP... Going through the examples. Kind of stuck at this Ch11 simple shopping cart example.
I would post the whole code here but its ...
2
votes
1answer
40 views
How to access Struts 2 variables in jQuery
I'm trying to get access to a Struts 2 property via jQuery.
My Common.js file looks like this:
$(document).ready(function() {
alert("<s:property value='myVariable'/>");
});
When I load ...