Forum: JSP 7 Days Ago |
| Replies: 3 Views: 336 >what i want to get, how to convert the filename variable named v_csvfileName of javascript to the filename named csvFileName of jsp.
No. JSP runs on the serverside and Javascript runs on the... |
Forum: JSP 19 Days Ago |
| Replies: 1 Views: 393 You may use the Commons fileupload (http://commons.apache.org/downloads/download_fileupload.cgi) package to upoad a file. |
Forum: JSP 25 Days Ago |
| Replies: 1 Views: 477 From the java documentation - HttpSessionListener.html (http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSessionListener.html)
Implementations of this interface are notified of changes... |
Forum: JSP 25 Days Ago |
| Replies: 3 Views: 499 File errorPage.jsp must be placed inside school folder in the root of your website.
root\
|
\school\
|
| errorPage.jsp |
Forum: JSP Nov 5th, 2009 |
| Replies: 1 Views: 527 Putting pages under WEB-INF is a good one but my suggestion to you to use urlrewrite (http://tuckey.org/urlrewrite/#download) or authentication mechanisms... |
Forum: JSP Nov 5th, 2009 |
| Replies: 3 Views: 710 On Tomcat, there are (only?) two possible reasons: invalid schema in web.xml, or el-ignored config option.
Set isELIgnored="false" attribute.
<%@ page isELIgnored="false" %>
..... |
Forum: JSP Nov 5th, 2009 |
| Replies: 2 Views: 545 If you are familiar with struts then try to use tiles (http://struts.apache.org/1.x/struts-tiles/). |
Forum: JSP Oct 24th, 2009 |
| Replies: 2 Views: 945 Do not use forward action. As we know the action forward sends the dynamic content of html of the page1.jsp to web-browser.
Use include action.
<body>
<script language="javascript" >... |
Forum: JSP Oct 7th, 2009 |
| Replies: 1 Views: 473 Your code has some bugs. Have a look,
1. Variable var xmlhttp; must be placed outside the function.
2. Callback method,
xmlhttp.onreadystatechange=XLNAME;
<html>
<head>
... |
Forum: JSP Oct 1st, 2009 |
| Replies: 3 Views: 740 Good suggestion, Indeed. The 'Read Me' thread has great value and adding some sticky threads (as suggested by Peter) to the Java web development will helps the community. |
Forum: JSP Sep 29th, 2009 |
| Replies: 1 Views: 382 Take a look at smpp (http://opensmpp.logica.com/introhtml/menu.htm) |
Forum: JSP Sep 24th, 2009 |
| Replies: 1 Views: 335 Check the code of Action and Form (bean) classes. Review the LoginAction and LoginForm classes. |
Forum: JSP Sep 20th, 2009 |
| Replies: 6 Views: 792 I apologize for inconvenience.
What I said,
Stock = Sum of quantity of purchased item - Sum of quantity of sold item.
EDIT: I suggest OP that don't update (add or subtract) total quantity. |
Forum: JSP Sep 20th, 2009 |
| Replies: 2 Views: 674 Pagination requires both, server code (java) and client code (xhtml, javascript). |
Forum: JSP Sep 20th, 2009 |
| Replies: 6 Views: 792 Don't update or subtract values. Use aggregate sql functions.
For example,
1. Calculate the sum of quantity of a specific product in your purchase
table.
2. Calculate the sum of quantity of... |
Forum: JSP Sep 9th, 2009 |
| Replies: 16 Views: 1,160 @ceyesuma : Can this be setup in netbeans?
-- YES or NO - It may be.
But I have a suggestion for you. Read & act this tutorial throughly - JDBC(TM) Database Access... |
Forum: JSP Sep 9th, 2009 |
| Replies: 3 Views: 939 Take a look - package1.package2.package3.ClassName,
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); |
Forum: JSP Sep 2nd, 2009 |
| Replies: 2 Views: 341 sandipdandel,
Read sticky (http://www.daniweb.com/forums/thread141776.html) thread. I hope this will be a solution of your problem.
Have a look at an article -... |
Forum: JSP Sep 2nd, 2009 |
| Replies: 2 Views: 536 ishlux,
You have to create a context - a folder in which you may add your jsp/servlet programs/pages.
Read http://tomcat.apache.org/tomcat-5.5-doc/config/context.html |
Forum: JSP Aug 31st, 2009 |
| Replies: 4 Views: 487 http://tomcat.apache.org/download-55.cgi
Mark the thread as Solved if you get appropriate answer. |
Forum: JSP Aug 31st, 2009 |
| Replies: 1 Views: 625 There are two ways of doing this,
1. The "Right" way
FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
LoginBean lb =... |
Forum: JSP Aug 31st, 2009 |
| Replies: 1 Views: 615 You should have to post code of Tag handler.
Example,
tag handler
package tg;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*; |
Forum: JSP Aug 31st, 2009 |
| Replies: 1 Views: 402 <%
application.setAttribute("beanName",null);
%> |
Forum: JSP Aug 30th, 2009 |
| Replies: 4 Views: 302 Create an instance of jsp bean with session scope and set value for each field once record after deletion of record in your controller. |
Forum: JSP Aug 23rd, 2009 |
| Replies: 2 Views: 463 Use an implicit object of jsp page - request
ServletRequest (http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html) |
Forum: JSP Aug 22nd, 2009 |
| Replies: 4 Views: 490 ....
String query = "insert into table(stringcol, numcol) values(?, ?)";
pstmt = conn.prepareStatement(query);
pstmt.setString(1, "A");
pstmt.setInt(2, 10);
... |
Forum: JSP Aug 22nd, 2009 |
| Replies: 1 Views: 459 <jsp:useBean id="bId" class="pk.ClassName" scope="session"/> |
Forum: JSP Aug 22nd, 2009 |
| Replies: 2 Views: 364 Please minimize the scope your question however I am sure that the documentation of apache-tomcat will assist you to understand the deployment issue of web application. |
Forum: JSP Aug 19th, 2009 |
| Replies: 5 Views: 529 localization.jsp - put this file in public folder (anywhere but outside the WEB-INF).
<%@ page language="java" pageEncoding="ISO-8859-1" %>
<%@ taglib uri="/WEB-INF/c-rt.tld" prefix="c" %>
<%@... |
Forum: JSP Aug 18th, 2009 |
| Replies: 4 Views: 442 To upload a file, html form tag must be look like this.
<form action="upload.jsp"
method="post" enctype="multipart/form-data">
Select a file:
<input type="file" name="first" />
<br />... |
Forum: JSP Aug 18th, 2009 |
| Replies: 5 Views: 529 Put .properties files into WEB-INF/classes folder. Use JSTL to read properties values. |
Forum: JSP Aug 18th, 2009 |
| Replies: 2 Views: 666 First of all, write extracted data into a CSV file and then download that file. |
Forum: JSP Aug 18th, 2009 |
| Replies: 4 Views: 442 >Can I pass an audio file from one jsp to another using form submit.
>If yes, then how do I write this file to another file in the next jsp page.
JSP - Java Server Pages are servlets and they are... |
Forum: JSP Aug 17th, 2009 |
| Replies: 1 Views: 322 ....
if(role.equals("user")){
%>
<jsp:forward page="user_home_page.jsp"/>
<%
Vector vc=new Vector(1,1);
session.setAttribute("Shopping_List",vc);
}
else if(role.equals("admin")){
... |
Forum: JSP Aug 17th, 2009 |
| Replies: 1 Views: 267 Use &ersand; entities.
submit=મોક્લશો
submit=મ ;ો ; ક ;્ ;લ ;શ ;ો ; |
Forum: JSP Aug 17th, 2009 |
| Replies: 8 Views: 1,139 >the passed parameter and desination is not same...no. of columns and values not matching.
You need to post the query. |
Forum: JSP Aug 16th, 2009 |
| Replies: 6 Views: 534 No, they are not same. There is a difference in their scope. |
Forum: JSP Aug 16th, 2009 |
| Replies: 8 Views: 1,139 Exclude autonumber column from the list. I presume that the table TestTable has three columns; ID,Name,Age where column ID is autonumbered.
String sql="insert into TestTable (Name,Age) values... |
Forum: JSP Aug 10th, 2009 |
| Replies: 1 Views: 433 Use mail.host key instead of mail.smtp.host.
....
Properties props = new Properties();
props.setProperty("mail.host", "smtp.gmail.com");
... |
Forum: JSP Aug 10th, 2009 |
| Replies: 1 Views: 873 There is not jsp dialog user interface for file selection. It's a input type file html tag.
If you want to get filename only in your server side (java) code then use,
File s=new... |