jsp

Using dataTable Primefaces

Hello, I am using the dataTable object of primefaces to display some data and I am having some problems to realize something : I display first a table with only 1 column and I want to display another table filled with data depending on what the user selected on the first one. For that, when the user selects a row in the first table, I...

How to Return to Previous page that was request by Post Form Submitting after Login?

I want to redirect to the previous page from Log In page after user logged in. The problem is the previous JSP page was requested by form submitting(with Post method) and the previous JSP need the data submitted to do some logic. What's the best way to return to previous page without missing the data that has submitted by Post method? Th...

What JAR files are needed for Eclipse to use JSTL so it ultimately works on GAE/J?

I've been trying for longer than I'd like to admit to get JSTL working under Eclipse (and ultimately under GAE/J). I've downloaded Eclipse, the Google App Engine Extension for Eclipse, and JSTL (http://download.java.net/maven/1/jstl/jars/ - jstl-1.2.jar is in the WEB-INF\lib directory). My code is below along with the output: <%@ tagl...

alternating colors in table in jsp using css

Possible Duplicates: How to alternate HTML table row colors using JSP? Table row - Giving alternate colors can any one provide basic code for dynamically adding rows in a table with alternate colors using css in jsp file kindly provide this code ...

Java & JSP Tutorial

Hi, Can any one guide towards a good Java & JSP Tutorials(videod/Books etc),it should be for basic as well as advance developers with alot of coding examples.I googled alot but couldn't find any thing useful. Thanks ...

Passing non-string attribute to custom JSTL tag

Hello, is it possible to create a custom JSTL tag that accepts a non-string attribute? I would like to create a tag that would be handle pagination using PagedListHolder from Spring MVC. <%@tag body-content="scriptless" description="basic page template" pageEncoding="UTF-8"%> <%-- The list of normal or fragment attributes can be spec...

How can i do a multiselect in jsp/jstl with selected value?

Hello I have an User with some Roles User.class public class User { private Long id; private String firstName; private String lastName; private Set<Role> roles = new HashSet<Role>(0); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getFirstName() { return this.firstName; } pu...

How to store model information in spring mvc with hibernate

Hi, I need advice how to store model in spring mvc 3 with HIbernate (example on ilustration) I have model public class Customer{ int id; String name; String surname; ArrayList<Contact> contacts; ... getters, setters } Here is class Contact public class Contact{ int id; String ...

Is it possible to invoke a javaScript server side ?

greetings all i was wondering if it's possible to send some javaScript code in the response of a controller meaning that i want to invoke a javaScript but not from the jsp (from server side) something like: var d = new Date(); var gmtHours = -d.getTimezoneOffset()/60; var tz=gmtHours; window.location="page?tz="+tz; what do you think g...

Spring MVC 3.0 + jsp footer

Hi, I'm writing Sping MVC based application all my methods inside a controller return ModelAndView objects. What I would like to do is to apply standard HTML footer on each JSP page, like signup/signin/about us/contact use/etc... Is there any way I can do it within a controller? I know that I can use <%@ include file="footer.jsp" %> ...