Hi,
I am not sure if this is a right question in this forum. But some one might have a solution.
We have a web page from which a user can download an MS Project file with a extentsion (.mpx) and can open the file in MS Project. The issue is if the MS Project is not open and then the user opens...
Hi,
Here her the example for regexp hope this will hlep you
public void extractIdValue() {
String htmlString = "The values for Key1 is <span id=\"key1\">value1</span> and for Key2 is <span id=\"key2\">Value2</span>.";
String regexpForSpanTag =...
Hi,
Use image as a backgound for the header and spcify the URL of the image in CSS file and include the CSS file in the JSP page using <jsp:include>. I haven't tried the solution hopefully it will work.
ex: CSS file
<style>
.img-src{
background-image: url('images/icon_info.gif')...
Hi,
If the html form is using ENCTYPE="multipart/form-data" then you cannot assess the parameters by calling request.getParameter(String s);
Generally Enctype is used when you want to uplaod files to the server.
http://www.jguru.com/faq/view.jsp?EID=160
Cheers
Venu
Hi,
I have a template page which has 2 Ifames inside it. onload of the template page I call a javascript function init(); the init() function will invoke another javascript function after 10 seconds which uses IFrame1 values to populate preview in Iframe2.
So my question is, when I invoke...
Hi
ActionServlet is used when you have to load or verify some thing when the application is loaded on to the server.
RequestProcessor is used when you want to verify some thing in the request before you execute the action or after the action is executed.
Let take an example. I want to load...
Hi,
You you need put those three lines of code in the JS function
showResponse. Now it will like this
/*
Upon completing the request the AJAX will call this method
which is responsible for loading the depedent list from the XML
*/
function showResponse(originalRequest)
{
var list =...
Hi,
I am trying to write a query which returns a list of recods in a tree structure.
When a user searches for TEXT then it has to display the entire trees for the searched text.
Table instance
INS_ID
TEXT
TABLE hierarchy
H_ID
INS_ID
PARENT_INS_ID
DISPLAY_ORDER
ex: data
1
/...
Hi,
The other way of doing it some thing like passing the href with the URL as a parameter then you don't have to worry about different browser behavior. And in the JSP page you get the parameter href.
<a href="#" onClick="javascript:window.open('http://123.123.220.220/aaa/login.jsp?app_id=99...
Hi,
The clean way to implement this is by using Filters and Custom HttpResponseWrapper. All you need to is overwrite the doFilter() that extends GenericFilter.
Here is the link http://www.orionserver.com/tutorials/filters/3.html
Hope will help you.
Cheers
Venu
Hi,
I am not sure why, but it is what might be happening. If you are using javascript:document.location.href to invoke the jsp then IE will not send "referer" URL it will be null were as FireFox (Mozilla)send the "referer" URL.
Try this test page both in IE and FF, In the page there are 2...
Hi,
It is better to store the information into an object and store that object into the session. Before storing it into session verify if the user is valid or not.
Well, if we take the above post then you have all the values except for requestedSessionId uses pageContext.session.id
<%@...
Hi,
I am sorry, I dont understand the question.
For the first time if you accessing the page then all of the attributes except remoteAddr would be null.
Hit F5 (Refresh)
Will see both remoteAddr and requestedSessionId
Clck on the List
Will display all values
Below is the code, tested in...
Hi,
The other solution from sedj's is using prototype.js
<script language="javascript">
// $H creates a HashMap similar to Java
var params = $H({
Circle:"circleValue",
other:"otherValue",
other2:"other2Value"
})...
Hi,
Strange.... in the alert statement is shows the XML ie., alert(originalRequest.responseText); but it doesnot get the lableValeBean with xmlString.getElementsByTagName('labelValueBean');
The only reason I can see is that the response is not of type XML.
Can you run the division.jsp it...
Hi,
hmmm.. you are able to see the XML in the alert statement. Try to put the debug statements in showResponse function.
/*
Upon completing the request the AJAX will call this method
which is responsible for loading the depedent list from the XML
*/
function showResponse(originalRequest)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.