can some one explain struts saveToken in layman's terms .
I knew that it will help to prevent (non-idompotent) duplicate submits .
but i don't how it is exactly happening,i want an example a...
hi experts
In my struts-config , for <forward > tag if i give something like this
<forward name="addAffidavitForm" path="/display.do?method=preFillForm"/>
works fine.
BUt if i g...
I am sure this is very simple, but I have not yet found the solution, so please help me!
I need to add the content of an external file to the site. The specific file is deternined by one of...
Hi,
I'm trying to figure out how to get the current url and use it in my jsp page. I tried using request..getRequestURI(), but that only gives me the jsp page without parameters. For exam...
Hi
I am connecting to a SQL Server database but an error "Connection is busy with results for another hstmt" occur. Is it due to that a new statement was created before the old one was clos...
Hi,
I am trying to start using Jasper reports and looking for a good tutorial.
I read the reviews abt Jasper and feel it would be apt for my application, but could not find good documenta...
As already answered in related question, we can do this using a servlet. But, my requirement is : I have to display multiple images from DB to JSP and each time calling a servlet to write the ...
Hi
i have a function like below
function sortResults(sortOption) {
<% if(request.getAttribute("id")!=null){
String pId = (String)request.getAttribute("id");
var ...
How can I add a timer/countdown to a main JSP page? There are other jsp pages linked to this main jsp page. When users closed these other pages, they will return to the main JSP page. How can ...
<% String param1 = "myfile.jsp"; %>
<%@ include file=param1 %>
above cannot work!
how to pass parameter to "include file"?
Struts 1 in jsp, and receive the error:
cannot find the tag library descriptor for http://jakarta.apache.org/struts/tags-html
Hie guys,
I'm trying to write a jsp using JSTL and EL to update a Pointbase database but I'm having difficulties to update the database since I'm not really sure how to convert the string dat...
Using JavaServer Faces, I am listing the contents of a list using a datatable and creating a button for each row. This button obviously shares the same handler but what I need to determine wit...
I have an app that uses JSP's, java libraries (API) with Tomcat and MySQL. The app works fine, however, since I migrate to a new server, I start getting this error.
"Only a type can be imp...
Eg <h:inputText..> will render a <input type="text"..>
What jsf tag can render a <div> tag?
Hi all,
I have a requirement where i need to display a row in blue color if a condition is true on one of the columns of the row. I am using "display tag" to display the table.
Ca...
Hi,
I've read a few answers to this question but I'm hoping there is a way to do it without scriplets. The simple reason being I'm not designing the pages and I'd like to keep it as clean a...
currently, my approach for authentication for a webbased app by using a database to store user name and password.
Some pages need login to view. If the user are not logged in, it directs t...
Hi
I am trying to pass the ArrayList as a request to result.jsp using requestdispatcher.
I am getting syntax error as below
org.apache.jasper.JasperException: Exception in JSP: /update....
Hi,
I have an ArrayList object, which holds an ArrayList of strings. So basically nested array lists.
How do I go about displaying the strings on the JSP page.
u have a form where it has two buttons when i click one button i have to call jsppage1 with parameter emp_name,when i click second button i have to call jsppage1 with another parameter
can ...
Hi, jsp gurus,
I'm trying to insert a date into a mysql table. The format will be HH:mm yyyy-MM-dd
when i use the following code in a jsp file (file name curTime.jsp)
<%
Date currentDa...
Hi there,
I'm new to JSP programming, may i know how to connect
a web application (JSP) to Ms SQL 2000 database?.
Can anyone send me the link to this problem or the
script to run it?
...
How to write the following loop in JSTL ?
<SELECT>
<% for (int i=0; i<myArrayList.size(); i++) { %>
<OPTION value="<%=((myBean)myArrayList.get(i)).getAttribute() %>">
<%=((myBean)myArray...
I need a solution for the following problem
<bean:define id="result1" name="resultsetform" property="rowResults"/>
<logic:iterate id="resultid1" name="result1">
<bean:write name="resultid...