I am receiving 2 string values in a form which are in
yyyy-mm-dd format. i need to insert them in oracle database using PreparedStament.
i am doing the following:
String txt1 = request.g...
Hi there,
Im currently on an application that has an administrative module. Im experiencing problems in clearing the sessions so as to log a user out and also to login as an admin and as ...
is http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi the only place i can download the jstl.jar??
Dear All ,
I want to assign the value of a Javascript variable to JSP Variable .. for example :
<%
Bla Bla Bla
%>
<script>
var JavaScriptVariable="hello"
</script>
<%
S...
I am writing a class in eclipse. I want one of the contructors to take a single argument, a reference to a javax.servlet.HttpServletRequest object. typing
public classname(javax.servlet....
In a JSP page of my site I am showing the .csv file links. When user clicks the link the file download dialog box use to appear to let the user download the file. This was working fine with IE...
I have a logic:iterate block in my JSP file that needs to iterate over two Collections (ArrayList) simultaneously. That is:
<logic:iterate id="products" name="displayProductsForm...
I need a complete example for using pagination using the http://jsptags.com/tags/navigation/pager/index.jsp
If anybody could please send me the sample code they have implemented using jspta...
Hi all,
i am using Struts 2. I have a Map that looks something like this.
Map<String,Object> map=new LinkedHashMap<String,Object> ();
Suppose key-values are
q1-object1
q2-object...
I have a javascript that makes a 'tree-view' for me. I managed to already get the tree-view to build trees whose values are taken from my db. The problem is, I want to be able to check the bea...
Hi all.
i have this in my jsp page
<td>
<html:select property="coursePublic">
<html:option value="0">No</html:option>
<html:option value="1">Yes</html:option>
</html:select>
</td>
...
<c:forEach var="Row" items="${bindings.Transactions1.rangeSet}" varStatus="idx">
<% sToday = "05/18/2005"; %>
<c:if test="${Row['EffectiveDate']==sToday}">
...
Hi experts,
I have one text field and drop down selection on jsp page with struts tag and drop down menu selection depends on value from the text field. I made drop down menu selection disa...
I am using the following stub in my jsp page to display the selected value ("Read" or "Write")
<html:form action="/addRole">
Role Name <html:text property="rolename"/>
<table>
...
i am trying to learn page refresh at regular intervals(say 5 sec).
but i am not getting it working.
though the page is refreshing but the problem of FLICKERING is remaing.
my status bar...
I need a jsp in which it contains a dropdown list. It allows the user to select the item and hit Submit button to initiate the process.
The backend process has been done.
The problem is I ...
Hi experts!
My page has 4 buttons in one form. One is the submit button, another one is a cancel button, and the other two are buttons that does another action if chosen. (For example, dele...
How can I create a WAR file for deploying my JSP application.
Do I need to compile my .java file before I create the WAR file?If so, do I include the .java file when creating the war file?
I...
Hi,
I have
....
<%
java.util.HashMap params= new java.util.HashMap();
params.put("idAccount",new Long(currentUser.getIdAccount()));
params.put("idA...
Hi, jsp gurus,
Can anyone tell what's the difference between request. getContextPath() and application.getRealPath("/")
i tried to print out : contextPath=<%=request.getContextPath() %>...
how do i pre-select radio button using javascript function ?
i am using Dynaaction form.
here is the code.
<html:radio property="card" value="Diners" >Diners </html:radio>
<html:r...
Hello all,
I have a form with 2 submit buttons. Depending on which submit button is clicked by the user, a hidden control with value command is used to pass a command to a servlet for proce...
Hi,
I have a question about <bean:define > tag
<logic:iterate name="trialdetails" id="detail" >
<bean:define id="criteria" name = "detail" property="criteria" />
I use this variable ...
Hi all,
Can anyone post me a sample and simple login page and registration (with username,password,email)page in JSP, please???
Thanks
Hi
In my jsp, i am entering the empcode, based on the empcode i retrieve empname and passing these two variables 'empcode' and 'empname' to another jsp.
Can you help me how to pass variabl...