jsp

retriving date only from database by using servlets and displaying the result in jsp page

how to retriving the date only not date and time from database by using servlets and how to display the result in jsp page ...

Does myfaces ExtensionsFilter change page encoding?

two days ago i started using tomahawk ExtensionsFilter components im my jsf application. i noticed that all javascript alerts were not displaying special characters (ç, ã, ó ô), it displays things like #231 instead. When i remove ExtensionsFilter from my web.xml file, javascript displays allright. Anybody had this issue before? thanks i...

Using SSL with an application deployed on IBM-WASCE

I have an application which uses JSPs and Servlets and deployed on IBM-WASCE 2.1. I want the application to use SSL for login purposes. Based upon the documentation, I added the following lines to web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/...

Scope of jsp:useBean

home.jsp <jsp:useBean id="username" class="java.lang.String" scope="application"/> <% username="Jitendra"; %> <jsp:include page="include.jsp"/> include.jsp <%=username%> This gives an error saying “username” is undefined in include.jsp, even though the scope of Bean is application… ...

Issues with JavaBeans Form

I have an assignment to use JavaBeans to create an online Banking application. I am trying to make the signup form but I am having some issues. When the form submits I am not able to get the values. The Form: <jsp:include page="header.html"></jsp:include> <h3>Create An Account</h3> <form action="process_new_user_account.jsp" metho...

Additional Ascii char 'Â' added in JSP request

Hi, I am facing the same issue in tomcat & jsp as listed in below asp issue http://stackoverflow.com/questions/350429/classic-asp-gremlims-getting-a-ainserted-into-text-whenever-an-html-special-cha Using tomcat 5 and jsp. When I type in a string containing like ±20°C and submit to another JSP the resultant parameter after submit is ±2...

Java error: Only a type can be imported. XYZ resolves to a package.

I get the error: "Only a type can be imported. XYZ resolves to a package." Someone has explained the cause here but I am not sure what I supposed to do to fix this. FYI: I am using Eclipse. I have added the code that does the importing below. The java.util.* import works fine. <%@ page import="java.util.*"%> <%@ page import="org.ivec...

Spring Hibernates session issue with http request

Hello there, I too have the same situation and i had configured the OpenSessionInViewFilter like this in my web.xml. <!-- Hibernates session management for request --> <filter> <filter-name>hibReqSessionFilter</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> </filter> ...

Who here is working with java/jsp as web development can you recommend it ?

Hello all I am now in the process of choosing framework for our web application. I am coming from java/c++ background and built web front ends based on java, but for inner network applications ( not public internet ). I would like to hear what do you think about using java as framework for building web application for the public web...

How to run jsp netbeans glass fish on local ip 192.168.1.165

Hi all, I am trying to run a jsp app on my machine ip: 192.168.1.165 and want to get it in system with ip 192.168.1.163 but giving the url http://192.168.1.165%3Aport/app is not working ( we are working in intranet. ) Pls, help me... how to make this possible. ...

path problem in jsp

In my application, I am using jsp include as :- <jsp:include page="/jsp/selectRoom/listRoom.jsp" /> That's working fine, but when I include the same jsp in my servlet as :- RequestDispatcher rd = getServletContext().getRequestDispatcher("//jsp//selectRoom//listRoom.jsp") ; rd.include(request, response) ; That's not working. Am I ma...

Storing data when an jsp call (no submit) an action.

Hi at all... I need some help about a little question. I make a pagination by db for my survey application. I divided my list of questions in six page. Before the pagination, when the user submit the vote, the action check a hashmap and return error on key where the resp is not present. Now, with the pagination, I call the pages by ...

Construct Network Topology

Hi All, We are trying to develop a Topology Map of available devices in a network. I have the details of the system, like IP, Device Name. All I need to do is to populate them on the graph and show it graphically, the problem is that we need to do it in JSP. Is there another way, like show using Flex, where I would pass IP/Device Nam...

Possible to jsp:include a jsp from another package instead of from WebContent/jsp folder?

Due to a design decision, our project contains JSP files that include other JSP files like so: <jsp:include page="/jsp/controls/InputControl.jsp"/> These JSP files exist under the WebContent/jsp folder of the project. Is it possible to move the JSP files to another package (i.e. com.company.project.components.jsp) and include them fr...

JSP pass Variable

Hi guys! I have to write a website with JSP and Servlets which displays a questionnaire and gets the result of the user. I've already written the question object, a questionnaire (random list of questions) and the questions library. Now my Servlet generates an instance of the questionnaire and displays the questions. My problem is I d...

can I control eclipse jsp validation?

Apologies if this is a rehash of an earlier question that I can't find, but is there any way to stop eclipse (ganymede irc) flagging unresolved java references as a problem? I have a web app that I want to deploy via eclipse in order to debug. However, it contains .jsp files including other .jsp files, which reference java objects define...

JavaServer Pages: How to get a value into an attribute from code without Expression Language?

I am using the MyFaces 1.1 ValidateRegExpr tag to validate the input from a user against a regular expression. I would like to be able to dynamically assign the regex pattern via code, but according to http://myfaces.apache.org/commons11/myfaces-validators11/tagdoc/mcv_validateRegExpr.html the attribute pattern does not support Expressi...

handling forms and textbox for multiple button

As you can see here that I have a text box with three submit buttons each redirecting to a different jsp page, however in those jsp pages, when I do request.getParameter("bid"), all I get is null... How can I fix this the simplest way possible? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtm...

JSP template implementation (Composite View Pattern)

What is the best way to implement the Composite View Pattern for a Java website? My idea was to take one jsp and include multiple pages like: <h1>Layout Start</h1> <% Values values = DataHandler.getValues(request); LayoutHelper layout = values.getLayout(); out.println("Layout.getContent(): " + layout.getContent()); %> <jsp:include pag...

javascript and jsp

I have a problem with my jsp file... inside it I have a form and in that form I have an onsubmit method that is basically calling a javascript... the problem is that whenever I click on a button it always redirects me to the page, whether it's true or false ...