Forum: JSP 27 Days Ago |
| Replies: 1 Views: 442 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 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 >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 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 Views: 397 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 @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 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 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 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 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 Use input type button:
<input type="button" name="submit" value="Submit" onclick="check()" /> |
Forum: JSP Jul 17th, 2009 |
| Replies: 7 Views: 1,065 String path=(String) request.getAttribute("path"); |
Forum: JSP Jul 17th, 2009 |
| Replies: 7 Views: 1,065 Do not use / root with resource name.
RequestDispatcher dispatcher = request.getRequestDispatcher("GetByPath.jsp"); |
Forum: JSP Jul 17th, 2009 |
| Replies: 2 Views: 444 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 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 Alex_ ,
It just print it. Do know request dispatcher? |
Forum: JSP Jul 15th, 2009 |
| Replies: 15 Views: 1,538 anindo87,
Post your latest code (page). Wrap the source code with bb code tags. |
Forum: JSP Jul 13th, 2009 |
| Replies: 4 Views: 465 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 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 Close the connection.
rs.close(); // release the result
st.close();
cn.close(); |
Forum: JSP Jul 12th, 2009 |
| Replies: 15 Views: 1,538 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 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 memegha123,
Did you work out on this issue? Do you know about HTTP response headers? |
Forum: JSP Jul 9th, 2009 |
| Replies: 5 Views: 566 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 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 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 Views: 743 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 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 Will you post javascript code? |
Forum: JSP May 27th, 2009 |
| Replies: 7 Views: 1,484 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 You should have to use javascript's setTimeout method for such delaying. |