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...
I am a fresh user of struts. I found that I can't use the class inside the struts library.
In struts-config.xml, I have the following action mapping:
<action
path="/L...
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>
...
I'm just learning JSP and I have a simple problem, how can I create a link.
This is part of a left menu that is suppose to link to a different page.
<A HREF="<%= PMPage.jsp %>" style="text-d...
Hi
i am new to Java Technology , can You plese send some URL for free projects in Java. So that i can learn easilty
Thanks in advance
Hi ...
I dont know anything about reading and writing an XML file through JAVA / JSP. Please help me out with plenty of examples, as I have a file in XML and I need to read it and insert in...
How do I call a servlet from a JSP
I have a jsp page that should display the pdf report. PDF is opened in acrobat reader and is shown outside of browser window. In the pdf preferences, I checked "Display pdf in browser". Still ...
Sorry if I'm asking something stupid, but
why this:
...
if (pass.equals(test)){%>
<script type="text/javascript">
alert("password haven't been changed")
</script>
<%...
To start off, I've passed several string variables to a JSP page by appending them to the url as shown:
location.href="transUpdate.jsp?Var1="+transactionId+"&Var2="+globalCurrentUser+"&Var3...
I am new to programming java server pages. I need to create an input box (box where user enters information) and update the database. Do I use html in my jsp to create my input box? What would...
Hello,
I am trying to read the current URL in my jsp page (Java Spring Application) . I am using the current code segment to obtain that:
${pageContext.request.requestURL}
The issue is ...
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...
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>
...
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...
Experts,
I am currently using the following code within a servlet to print to an excel page within IE.
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-d...
I am trying to use JSP to split a sting by a comma into an array. In most languages I am able to use an inherint function called split as in :
split("test1,test,2,test,3", ",");
How woul...
I have the following:
<c:if test="${pg.pageID.value eq '<%=pageID%>'}">
I output both values before the if in testing and they both match with no whitespaces around them. If I hardcode t...
Hi,
I'm writing jsf application. I want to initialise a managed bean's property using th values in a POST request.
The simplifed XML in faces-config.xml is..
<managed-bean>
<manage...
I don't understand how to output more than one from using the JSTL foreach tag in a jsp. Please don't give me a link to go learn it. I'm pretty confused and would like someone to show how to d...
I need to replace characters in a string, using JSTL. I'm not really familiar with JSTL. The string is the result of the c:out tag. The characters are the following (hexadecimal): 0D 0A 09, in...
Hi: I am using NetBeans IDE 5.5. when I compile it it gives that message. How do i fix that error?
Thanks.
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 ...
How to beak a loop in JSTL
c:forEach is a JSTL loop. but suppose i want to break the loop at some point. how to do that ?
I would like to set the session variables using the onClick method of the buttons. The problem is the session variables of the last button is being set even if it's not clicked.
<table>
...