Hi,
I want to create a beep on server error in a webpage. I have searched and read the pages below on to display sound on webpage.
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm
But i can't ask users to install plug ins and other stuff. I need to generate two beep on PC speaker. I have tried to use System.out.print("\\007"); and To...
I'm trying to use log4j in JSP web application over Jboss 4.2
My problem is that I can't set the logger to use the properties file.
Here are the steps I done:
copy log4j.properties to WEB-INF folder
My code:
<%@ page import="org.apache.log4j.Logger" %>
<%@ page import="org.apache.log4j.PropertyConfigurator" %>
<%
org.apache.log4j.Log...
I have a simple XML file, such as:
<shop>
<row num="1">
<shelf1>Fruit</shelf1>
<shelf2>Milk</shelf2>
</row>
<row num="2">
<shelf1>Pens</shelf1>
<shelf2>Paper</shelf2>
</row>
</shop>
And I'd like to put shelf1, shelf2, shelf3 and shelf4 into an array. Any ideas on where to start? I'm us...
Hi,
My print application has to get the client name and then print the documents. How to find this in java script or jsp? I searched here. Some are discussing on PHP and so?
Something discussed about running secure applet to get the client computer name? If so please give me example to do that?
Thanks to all
...
I am integrating the displaytag library into my Spring MVC Application. I am using Ant for builds in my project. I have followed the installation directions from the website, which you can find here Installation Instructions for Displaytag
It states that the dependencies for displaytag use are the following
commons-logging
commons-...
Easy way to write servlet that returns table data in xml format - ?
Data comes from a database table.
...
I would like to use variable calculated in freemarker inside Struts tag. How can I do this in following situation:
<#assign val0=100 />
<#assign val1=1000 />
<@s.select value="amount" name="amount" label="Amount" id="amount"
list=r"%{#{val0:'text100', val1:'text1000'}}"/>
Currently this select is empty.
...
I am building a web application on top of a "custom" web framework. This framework is essentially the Equinox OSGi platform with Jetty sewn into a custom bundle (not the Equinox-supplied one, mind, as it is far too restrictive).
This framework is being used to build a large Java web application, primarily using JSP. No other frameworks ...
Hello,
I put a browser in my jsp page, and when I select the file via the browser
and I'm doing a System.outn select the file path, I only have the name,
and I need to recover all the file path selected
<form:form onsubmit="document.getElementById('idButton').value='Traîtement en cours ...'" action="ajouter.html"
method="POS...
I have a transverse tree written in JSP which goes through an XML file.
When I get to a certain Text Node, I'd like to be able to search back up the tree to find a certain element associated with that node.
I'm thinking I need to do a For loop and use some kind of 'getLastNode' or 'getParentNode' function. Would this be the correct me...
How can we make from a jsp using a component-type browse, retrieve the full path to a folder on an intranet
...
Summary
When using IntelliJ IDEA to debug a JSP, I'm seeing the JSP get triggered twice before the actual request from the browser. Does anyone know why?
Updated with servlet test below.
Overview
I'm using (evaluating) IntelliJ IDEA for (effectively) the first time. When doing web application debugging, I'm seeing an odd behavior tha...
I want a JSP web page that allows the user to select a folder as input,
not files. If I use , I couldn't select a folder as
input, I can only select a single file as input. In my case, are there
any solutions to my problem?
...
Hello, I have a struts application being used on handheld devices running Windows CE 4.2/5.0.
We needed the functionality of another app in this one, and the solution was to pop up a window to the other app (using window.open()), run the process, and then close the window to return to the original app.
Normally our apps always focus on...
In my webapp, I want to set a default cookie to store a locale of 'en_US'. I have functionality in place for the user to change this successfully.
However, I've removed a lot of scriptlets on my .jsp and replaced with some JSTL tags to set a default cookie value, but it doesn't seem to work. It seems that I can't access my ${lang} varia...
hello,
i have an application where the android device sends data to a server. the server receives the data, processes it and has to open a jsp page. could some one please help. i have used the usual
RequestDispatcher rd = request.getRequestDispatcher(request.getContextPath()+"/main.jsp");
rd.forward(request, response);
Al...
Hi there...
I'm using netBeans 6.7.1 for mac, and I'm working on a java EE project that
has a web project that uses jsf framework.
The problem comes when I add a new file to the project, the faces-config shows me the file with an absolute path and when I set the navigation, it seems not to work... then erase the absolute path leaving /...
please provide alternative for value=< in jsp ..
Thanks...
...
Hello, I have in my jsp with a table on each line a combo, the problem is that I can not get the value selected in my combo during a submit
I think the problem is the definition of property
JSP:
<logic:notEmpty name="gererUtilitaireForm" property="listUtilitaireBean">
<%int i=0; %>
<logic:iterate...
I asked a question here yesterday and it was kindly answered. However, I have taken the sample code and attempted to print out the value of the current node, i.e. using getNodeValue.
Whenever I run the jsp it returns a "org.apache.jasper.JasperException: An exception occurred processing JSP page" error on "printOut = n.getNodeValue().t...