I want to pass parameter from a Javascript function to another JSP page. Currently I am doing like this:
function viewapplet(strPerfMonPoint) {
var dateSelected = document.forms[0].hdnDateSelected.value;
document.forms[0].hdnPerfMonPoint.value = strPerfMonPoint;
var win;
win = window.open("jsp/PopUp.jsp?GraphPerfMon="...
I want to devlelop a chat website using JSP/Servlets and Tomcat. I have following questions:
Can the website handle load (1000 people at one time) without slowing down?
Will it cause the website to slow down? What is the ideal server configuration for this kind of website? Note that I don't have a huge budget to host.
How can I impleme...
I very often come across this question of why we have got lots of web frameworks addressing the same or similar drawbacks.
When looking deeply, I also have given thought on why JSP / Servlets is not being used after the other web frameworks (like Struts, Spring MVC etc) have shown their existence?
Is it because, the latest web framewor...
I want to capture the responseXML that i have built in my jsp.
What should I do.
after that i will transform it in html.
I know this is annoying and we could do it with a framework or a library like jquery but i realize it with ajax.
Also i have problems with jquery and jsp\servlet since i must use a JSON SERVICE.
Why it seems to me that...
I'm using AjaxTags as a defined set of JSP tags to facilitate AJAX programming, saving me from some heavy lifting. The project is in trial mode, so I may not adopt the technology and write my own solution.
Here's what I'm running into (code abbreviated)
I have a drop-down list that defines an item that populates numerous other drop-dow...
I have been asked to set up some authentication for some content on our website using JSP. What I would like to do seems simple to me but I can't quite figure out how to do it in JSP.
What I would like to do is this: When a user requests a page that you must be logged in to see, I have a tag that checks their cookies for an authenti...
I have been given a nasty wake up a while ago when I discovered that my 10 years of experience was really equivalent of about 4 (got trapped in a big company doing the same thing over and over without realizing it) and is now paying a huge price.
Question 1: I did servlets/JSP programming back in the day (2001-2003). Since then there h...
i Want to import a given css or javascript file depending os some conditions, in my Servlet i have:
protected void doPost(...)
{
if(condition)
{
//import some javascript or css file here
}
}
I need this behavior since i have too many files to import and the files name may vary according to the condition.
Is it possib...
Hi,
I've a Java String with new lines(\n), say for example
String value = "This is a variable\n\nfrom\nJava";
Now I've to set this to a Javascript variable in a JSP file,
<script>var val = '<%= value %>';</script>
But because of the new lines in the above line, I'm getting javascript error "Unterminated String".
Please help me.
...
I was reading this page and I found the following statement:
MVC in Java Server Pages
Now that we have a convenient
architucture to separate the view, how
can we leverage that? Java Server
Pages (JSP) becomes more interesting
because the HTML content can be
separated from the Java business
objects. JSP can also make...
I am including a jsp fragment by making an ajax call. Now this jsp frag happened to include several js files.
When the ajax request is completed, it is loading each of the included js files (on fragments) using a separate get request. (I checked this using firebug.)
Now is this the correct behavior (making separate get calls) or am I m...
Hello, in my jsp i do this
<table>
<tr>
<th>TITLLE</th>
</tr>
<tr class="row0">
<logic:iterate id="listClient" name="Client">
<td>
[...]
</td>
</logic:iterate>
</tr>
</table>
<logic:iterate id="listClient" name="Client">
<table>
<tr>
<td>
[...]
</td>
</tr>
</table>
</logic:iterate>
B...
I'm reading the steps to build a web app skeleton:
http://maestric.com/doc/java/spring/setup#web_app_skeleton
And feel it's greatly different from other languages like PHP.
How is it executed?
...
How to get the XML translation to HTML dropdownlist with ajax? I send the parameter with GET method but the JSP file that generates the XML don't receive it.
var url = "responsexml.jsp";
url = url + "?projectCode=" + prj.options[prj.selectedIndex].value;
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET", url, true);
xmlhttp.se...
Hi All:
I have added a code which will include child jsp using jsp:include. The problem i am facing is that the code present in child code is not executing. Below is the code iam using it now
JSPF File:
<jsp:include page="X.jsp" flush="true">
</jsp:include>
the above code is present in a file named "A.jspf" which is inclu...
I have added some 10 lines of code in the existing jsp file. When i execute the application received the error called " too large to compile....".
After I googled, it seems some size issue that file should be <64K size. Then i removed some 20 - 30 lines of commentted code in the existing jsp file and tried run the application but still ...
How would I email the entire content of the JSP page output as an HTML or PDF email attachment?
Thanks
...
I want to store the result of a JSP in a string.
For example, I want to be able to call a function like:
String result = ProcessJsp("/jspfile.jsp");
Also, this must be rather efficient. Making a url request to the jsp and then storing it would not work because I am running on the Google App Engine, and I'm not sure how slow that wo...
sir,
i have to use crystal report in my jsp page.I am doing it using eclipse ide
...
hi in my jsp page i am a having a jquery area which pass the values to a servlet which returns an output of dropdownlist . then the jsp file do some updation so certain values which are in the dropdownlist should not be there while repopulating. but it is not happening. my jquery code is
$("#cbocode").change(function(){
var cdid=$(...