jsp

How to handle image/gif type response on client side using GWT

Hi all, I have a question about how to handle image/gif type response on client side, any suggestion will be great. There is a service which responds for retrieving image (only one each time at the moment) from database. The code is something like, JDBC Connection Construct MYSQL query. Execute query If has ResultSet,...

jsp:how to hide folder structure of website from users?

how to hide folder structure of website from users. i have developed a website on jave platform (jsp). website is deployed on jboss. suppose my website 's home page url is dummy.com/dummyFolder/dummy1.jsp user can watch all of jsp pages in website by going on url dummy.com/dummyFolder/ what should i do to prevent user to view my ...

JSP response content type Excel

when i set response content type is excel. In excel sheet it is dsiplaying 1-Jan instead-of 1-1. here is code snippet <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% response.setContentType("application/vnd.ms-excel"); %> < table>< tr>< td>1-1< /td>< /tr>< /table> Appending s...

How do I make an search bar at the top of the page like on stackoverflow.com?

I need to make the search bar at the top of the page like stackoverflow.com have in its website. I need some sample code for jsp/servlet for performing the operation for searching. What operation it provide while one write something at the search bar. I want to search anything but into my website only. Please give me some idea... Thank...

Source code indentation and highlighting on server side?

I need to do source code formatting (similar to what Stack Overflow does), but on the server side. What options do I have? My serverside language could be PHP or JSP. Does google have a server version of syntaxhighlighter? ...

combine x-taglib with c-taglib on <x:set> and <c-foreach>

can is use a x-taglib var in a c-foreach like: <x:set var="logrows" select="$doc/properties/entry[@key='foo.bar']"></x:set> <c:forEach items="${bar.foo}" var="log" begin="0" step="1" varStatus="i" end="${logrows}"> </c:foreach> thx ...

how to implement a search from search box?

I've got a requirement where a user enters a few terms into a search box and clicks "go". Does anyone have any good resources on how to implement a dynamic search that spans a few database tables? I am using jsp,servelt,jpa as front end and mysql at back end of my project. Thanks, Satya ...

Reverse Ajax + JSP-Servlet

Hi, We are trying to create a reverse ajax in our project. I've checked on the net and didn't find something concrete. I was unable to run any of the tutorials provided successfully. My object is: to provide on-screen alerts (like a pop-up) when ever there is an even pushed from the server (it could be high cpu usage/ram, anything). ...

Struts Tiles 1 - nested tiles problem

I am using Struts tiles 1 succesfully, however I have come across a problem when trying to nest tiles. I currently have a layout like so: I wish to have another template like this, for use in quite a few user pages: So I wish to extend the first layout for the user layout. In the tiles definiton I am using: <definition name=".bas...

getOutputStream() has already been called for this response

I google the error message "getOutputStream() has already been called for this response" and many people said it is because of the space or newline after <% or %>, but in my code , there is no a space or a newline. I am using tomcat6 on linux. <%@ page import="java.servlet.*, javax.servlet.http.*, java.io.*, java.util.*, com.lowagie.tex...

JSP not compiling on GODADDY

HI, I have Deluxe Linux shared hosting account on GODADDY. I have uploaded basic index.html,test.jsp in provided folder. I also configred jsp handle in my web.xml and waited for 1:00am(sceduled server restart for godaddy) but my jsp page is not compiling and showing me all my jsp code in page loaded in browser. What can be the issue? Do...

Page redirect / refresh using ExtJS

Hi all, My Web application makes use of Ext JS & Java web technology. Due to the size and complexity of the application, I need to do a complete refresh of the page (load a different page) when user select some menu from the menu bar. What is the best what to redirect to the required page? For example, In my main menu, I have two...

Best MVC tutorial/example for JSP/Servlet?

Can you provide a link for best or elegant MVC tutorial/example for JSP/Servlet? I am going to refactor a JSP based application. so I need a good reference or template to start with. I maybe not going to use any framework. ...

Exception in JSP usebean.

I've been working with JSP usebean, when I am trying to use bean in JSP, its throwing an exception that "It cannot find the class". But I've followed the correct structure, I assume, and included everything required. Please go through the code and let me know what could be the problem. //init.jsp -------- <%@ page import="com.wipro.uplo...

Display binary tree using JSP

One of my DB tables contains data that suits well to be rendered as a binary tree. Now my requirement is to display the data read from the DB in the format of a Binary tree. The tree can go down to any level also each node of the tree should act as a hyper link so the displayed tree should not be an image. Can anyone please help me how...

how can I get Tomcat to serve external JSP's

I have a war that also needs to server jsp's from alternative external directories. In weblogic this is acheved with virtual directory mappings. Is their a clean way to acheive this with Tomcat ...

JQuery tabs in JSP

I am having difficulties finding a basic example of using jquery with jsp in NetBeans. Anyone have a resource bookmarked? thanks ...

Custom JSP tag - detect existence of other instances

Is it possible for a custom JSP tag to detect if there are other instances of itself within a page? If so, what's the preferred way to do this? My tag's output needs to be conditional dependent upon whether it's the only instance or not. Note that my page has three occurences of my tag, two of which have a different set of attributes fr...

sitemesh vs jsp-config (<include-prelude>)

Please help clarifying : In web.xml I have the following <jsp-config> <jsp-property-group> <url-pattern>*.jsp</url-pattern> <el-ignored>false</el-ignored> <page-encoding>utf-8</page-encoding> <include-prelude>/jstlTaglibs.jspf</include-prelude> </jsp-property-group> </jsp-config> Also in decorators.xml...

JSP EL (Expression Language) causing problems in Eclipse

My system: Ubuntu 9.10. Eclipse 3.5.1 with Java EE 1.2.1 (manual install - NOT from synaptic). Web Developer Tools 3.1.1 I've recently adopted someone else's code (a Dynamic Web Project), and run into lots of errors, warnings and incorrect syntax highlighting in Eclipse. I've narrowed it down to these 4 lines of code (create a new Dynam...