jsp

How to get cell data of specific row from the dynamically created HTML table?

How to get cell data of a specific row from the dynamically created HTML table in JSP? I am creating JSP Page in the following way Connect to MySQL Databse Fetch rows from table based on criteria Construct HTML table dybamically based on the rows returned in step 2 The first column of table contains checkbox JSP page contains ...

how to display an object on jsp page ?

Hi, i m pretty new to Spring MVC, i m trying to setup a page to display user information I have trouble with the controler and the view. Controler (getDetail returns a User object, it has an email field) : @RequestMapping("/{code}") public String get(@PathVariable long code,ModelMap model) throws Exception { model.addAttribute("us...

simple OGNL projection required in struts2

Hello, I would like to create a really simple tag parameterized with a collections' ids something like the following: <s:url action="theaction" namespace="/" includeParams="all" id="histURL"> <s:param name="sources" value="sources.{id}"></s:param> </s:url> ${histURL} If I have say three Source objects defined in my Action class, h...

sharing common jsp's in multiple wars in an EAR..

Hi all, We have a big application having 13 modules. Depending on the customer requirement, we should able to deploy core module+customer specific modules. We are planning to break the app into multiple wars. Now problem is we have some common jsp's like header.jsp, error.jsp etc. Is there any way by which we can keep the common jsp's i...

how to detect of a requested url contains query string ?

hi all i want to detect if a requested url contains query string or not how to do so ? ...

Use JQuery SWF plugin in JSP

I used an example script of how to load an SWF file with the JQuery SWF plugin (http://jquery.thewikies.com/swfobject/examples). I am trying to get the plugin to work in a JSP. It appears to work in FireFox and Chrome but not in IE8. Can anyone see any obvious issues? Thanks in advance. <%@ taglib prefix="c" uri="http://java.sun...

Use jQuery SWF Plugin in a JSP

Possible Duplicate: Use JQuery SWF plugin in JSP I used an example script of how to load an SWF file with the JQuery SWF plugin (http://jquery.thewikies.com/swfobject/examples). I am trying to get the plugin to work in a JSP. It appears to work in FireFox and Chrome but not in IE8. Can anyone see any obvious issues? Than...

Tomcat ignores my custom error servlet/page

Hello experts, I have an issue which drives me crazy. Not sure it this is a bug in Tomcat or just my plain stupidity but here goes. I have a custom error servlet set up, something like this. The setup works and if I simulate exceptions or 404 errors etc the servlet runs, the error page is displayed corectly, the response code is either...

How to SetVariable in jQuery

I have a percent gauge dashboard widget implemented as an SWF movie. I am using jQuery in my JSP to achieve some AJAX update capability. For now, I am simply trying to set the value that displays on the gauge with the SetVariable() function in the code below. This cannot be done as an initial flashvar by design of the creator of the g...

What is the equivalent of JOptionPane in JSP?

I want to make such as JOptinonPane in JSP. What is the equivalent of it JSP? ...

JSP JavaBean and Servlets?

Hi everyone, I'm in a bit of a dilemma on how to connect the above mentioned three technologies. I'm still a student so please bare with me on this as I try to explain my problem. For an assignment I have to create a simple form that uses JSP for the view with the Model and the controller being Servlets, the communication needs to be do...

without closing the popup window, how to submit the form value to server

Question: I have one popup window it contains some values in textbox and textarea. I need to submit the value to server without closing the popup window. Is there any way.... Thanks in Advance ...

Spring MVC 3 JSTL will not output values in Tomcat 5.5

I'm having difficulty showing the model values from my controller to my JSP view. Everything works in Tomcat 6. But it doesn't work in Tomcat 5.5. Here are my files. web.xml for Tomcat 5.5 (For Tomcat 6, I use version="2.5" and the correct schema) <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" ...

Commenting approach: How to comment something that's used elsewhere in app?

Hi, all. My IVR app contains a lot of global variables, as a side effect of an inescapable vendor-supplied framework. As such, there are a lot of cases where a variable is given a value on one JSP, and is not touched again until a caller has gone several dialogs deep into the app. When I have to add or modify such a variable, I leave ...

Get domain name in url with JSTL?

I am trying to get the domain name from the url with JSTL. The 2 methods I know return the wrong info. I need exactly what is in the url. When I do: ${pageContext.request.remoteHost} I get an IP. When I do ${pageContext.request.serverName} I normally get the right domain name but on a server we have on amazon it is returning "server1" ...

Switching links between multiple wars..

Hi All, We have a big application having 13 modules. We want to create war file for each module and deploy the app as an EAR. We navigate to different pages through top menu which contains link for all modules. Now problem is that each module have their own context. In order to switch the context we are using an external.jsp <html> <h...

Good Book on Understanding JEE/J2EE security

Hi, I have been using and learning Servlets and JSP without giving enough thoughts on J2EE/JEE security. Now, I wanted to upgrade my knowledge and add security into the web apps that I am building. I have searched over SO post but cant find enough resource to read on about Security. Can you share me some links or tutorials where I co...

EL evaluation in tags

In the below code snippet, the intention is to take value for name from a variable, however no value gets output when it is tried with EL, while direct assignment works fine. <%! String sName; %> <% sName="ABC"; %> <H3> Hello <c:out value="${sName}"/> </H3> <H3> Hello <c:out value="ABC"/> </H3> What is missing or has gone wrong here?...

404 error page for all url contexts

Hi there. I have a custom 404 error page in my java web app. (declared using web.xml) It is working in all the cases. But if the url pattern comes like for example : www.mysite.com/admin/cannotfind the custom error page doesnt locate the images and css java script files for 404 custom error page. But it get works for normal url like www...

JSTL & Spring: Accessing methods in conditionals

I have an object with a method public boolean hasPermission(String role) { return permissions.contains(role); } I want to do the equivalent of: <c:if test="${row.hasPermission(role)}"> <td></td> </c:if> But I cannot access the hasPermission method from within the JSP file. How can I do it? ...