Search Results

Showing results 1 to 31 of 31
Search took 0.03 seconds.
Search: Posts Made By: adatapost ; Forum: JSP and child forums
Forum: JSP 27 Days Ago
Replies: 1
Views: 442
Posted By adatapost
You may use the Commons fileupload (http://commons.apache.org/downloads/download_fileupload.cgi) package to upoad a file.
Forum: JSP Aug 18th, 2009
Replies: 4
Views: 456
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: 4
Views: 456
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 10th, 2009
Replies: 1
Views: 928
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...
Forum: JSP Aug 10th, 2009
Replies: 2
Solved: servlet problem
Views: 397
Posted By adatapost
There is no such event for html button action. You have to use getParameter() method of HttpServletRequest class.
sample.html

<html>
.....
<body>
<form method="post"...
Forum: JSP Aug 1st, 2009
Replies: 5
Views: 424
Posted By adatapost
@OP : how to create a tabbed panel in a webpage?
Use Html & CSS.
@OP:can this problem be solved using beans??
Yes. The scope of beans must be session.
Forum: JSP Aug 1st, 2009
Replies: 3
Views: 641
Posted By adatapost
I didn't find any problem with this code.

<%@ page language="java" import="java.io.*"%>

<%
String news=request.getParameter("news");
String cmd=request.getParameter("cmd");
if(cmd==null)...
Forum: JSP Jul 29th, 2009
Replies: 4
Views: 582
Posted By adatapost
QueryString

<%
String var="10";
String url="page1.jsp?no=" + var;
response.sendRedirect(url);
%>

code of page1.jsp should be,
Forum: JSP Jul 29th, 2009
Replies: 5
Views: 424
Posted By adatapost
Session is the answer.
page1.jsp

<form method="post" action="page2.jsp">
No <input type="text" name="no"/>
<input type="submit" name="cmd" value="Next"/>
</form>

page2.jsp
Forum: JSP Jul 29th, 2009
Replies: 4
Views: 582
Posted By adatapost
Use may use session, Jsp actions (forward,include), and simply a querystring for the same.
Forum: JSP Jul 18th, 2009
Replies: 15
Views: 1,538
Posted By adatapost
Use input type button:

<input type="button" name="submit" value="Submit" onclick="check()" />
Forum: JSP Jul 17th, 2009
Replies: 7
Views: 1,065
Posted By adatapost
String path=(String) request.getAttribute("path");
Forum: JSP Jul 17th, 2009
Replies: 7
Views: 1,065
Posted By adatapost
Do not use / root with resource name.

RequestDispatcher dispatcher = request.getRequestDispatcher("GetByPath.jsp");
Forum: JSP Jul 17th, 2009
Replies: 2
Views: 444
Posted By adatapost
osirion666,

......
String todelete[] = request.getParameterValues("delete");
if(todelete!=null) {
for (int i = 0; i < todelete.length; i++) {
String sqld = "DELETE...
Forum: JSP Jul 16th, 2009
Replies: 7
Views: 1,065
Posted By adatapost
Alex_,
Read this article : http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets9.html
Forum: JSP Jul 16th, 2009
Replies: 7
Views: 1,065
Posted By adatapost
Alex_ ,
It just print it. Do know request dispatcher?
Forum: JSP Jul 15th, 2009
Replies: 15
Views: 1,538
Posted By adatapost
anindo87,
Post your latest code (page). Wrap the source code with bb code tags.
Forum: JSP Jul 13th, 2009
Replies: 4
Views: 465
Posted By adatapost
Thanks,

Mark this thread as "Solved" (a link at bottom of the page) if you get solution.
Forum: JSP Jul 13th, 2009
Replies: 4
Views: 465
Posted By adatapost
nipa.pilla,

I think following block has no importance.

<%
String name = request.getParameter( "username" );
session.setAttribute( "theName", name );
%>

In SaveName.jsp -a UserData...
Forum: JSP Jul 12th, 2009
Replies: 15
Views: 1,538
Posted By adatapost
Close the connection.

rs.close(); // release the result
st.close();
cn.close();
Forum: JSP Jul 12th, 2009
Replies: 15
Views: 1,538
Posted By adatapost
HTML tag - </select> must be placed outside the while loop.


show.innerHTML = "<label><select name='select'><% while(rs.next()){%><option><%= rs.getString(1) %></option><option><%=...
Forum: JSP Jul 11th, 2009
Replies: 15
Views: 1,538
Posted By adatapost
anindo87,
...but i'v tried ths code....it isn't working....
hkansal has wrote an expression for you. Post your source code. Use BB code tags.
Forum: JSP Jul 11th, 2009
Replies: 2
Views: 643
Posted By adatapost
memegha123,
Did you work out on this issue? Do you know about HTTP response headers?
Forum: JSP Jul 9th, 2009
Replies: 5
Views: 566
Posted By adatapost
I guess that the return type of database.jdbcOneRowQuery method is Vector class.

String val=database.jdbcOneRowQuery(sqlS).get(0).toString();
int yes= Integer.parseInt(val);
Forum: JSP Jul 9th, 2009
Replies: 5
Views: 566
Posted By adatapost
CoSIS1,
Errors in your code snippet.
1.
No such a method - Integer.parseInteger
Use Integer.parseInt()
2.
Can't assign Integer object reference to int variable.

int yes =...
Forum: JSP Jun 24th, 2009
Replies: 2
Views: 913
Posted By adatapost
Welcome memegha123.

getRealPath() translate a local URL into a path name in the local file system.

String path=application.getRealPath("/contactus.txt");
BufferedReader input = new...
Forum: JSP Jun 16th, 2009
Replies: 11
Solved: hello
Views: 743
Posted By adatapost
With little modification now, your code is working.


BufferedImage image = (BufferedImage)session.getAttribute("image");
String path = application.getRealPath("/");
String imagePath =...
Forum: JSP May 27th, 2009
Replies: 7
Views: 1,484
Posted By adatapost
I am posting a sample page containing a javascript:


<script type="text/javascript">
function select(form) {
alert(form.test.value);
}
</script>

<form name="form1" method="post">
Forum: JSP May 27th, 2009
Replies: 7
Views: 1,484
Posted By adatapost
Will you post javascript code?
Forum: JSP May 27th, 2009
Replies: 7
Views: 1,484
Posted By adatapost
Post your code fragement in BB code. Check whether a select function is defined or not and if it there then post it so I can help you on that issue.
Forum: JSP May 25th, 2009
Replies: 5
Views: 1,278
Posted By adatapost
You should have to use javascript's setTimeout method for such delaying.
Showing results 1 to 31 of 31

 


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

©2003 - 2009 DaniWeb® LLC