Search Results

Showing results 1 to 40 of 165
Search took 0.02 seconds.
Search: Posts Made By: adatapost ; Forum: JSP and child forums
Forum: JSP 7 Days Ago
Replies: 3
Views: 336
Posted By adatapost
>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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
Take a look at smpp (http://opensmpp.logica.com/introhtml/menu.htm)
Forum: JSP Sep 24th, 2009
Replies: 1
Views: 335
Posted By adatapost
Check the code of Action and Form (bean) classes. Review the LoginAction and LoginForm classes.
Forum: JSP Sep 20th, 2009
Replies: 6
Views: 792
Posted By adatapost
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
Posted By adatapost
Pagination requires both, server code (java) and client code (xhtml, javascript).
Forum: JSP Sep 20th, 2009
Replies: 6
Views: 792
Posted By adatapost
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
Posted By adatapost
@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
Posted By adatapost
Take a look - package1.package2.package3.ClassName,

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Forum: JSP Sep 2nd, 2009
Replies: 2
Views: 341
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
<%
application.setAttribute("beanName",null);
%>
Forum: JSP Aug 30th, 2009
Replies: 4
Views: 302
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
....
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
Posted By adatapost
<jsp:useBean id="bId" class="pk.ClassName" scope="session"/>
Forum: JSP Aug 22nd, 2009
Replies: 2
Views: 364
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
Put .properties files into WEB-INF/classes folder. Use JSTL to read properties values.
Forum: JSP Aug 18th, 2009
Replies: 2
Views: 666
Posted By adatapost
First of all, write extracted data into a CSV file and then download that file.
Forum: JSP Aug 18th, 2009
Replies: 4
Views: 442
Posted By adatapost
>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
Posted By adatapost
....
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
Posted By adatapost
Use &ampersand; entities.

submit=મોક્લશો


submit=મ ;ો ; ક ;્ ;લ ;શ ;ો ;
Forum: JSP Aug 17th, 2009
Replies: 8
Views: 1,139
Posted By adatapost
>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
Posted By adatapost
No, they are not same. There is a difference in their scope.
Forum: JSP Aug 16th, 2009
Replies: 8
Views: 1,139
Posted By adatapost
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
Posted By adatapost
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
Posted By adatapost
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...
Showing results 1 to 40 of 165

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC