Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Rehan Malik

Ranch Hand
+ Follow
since Jul 09, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rehan Malik

jar -cvf OutputJarName.jar FilesOrDirectory

That's one way. Another way to do it is just use winzip and zip up the foler and rename the extension to *.zip (unless you need the manifest file in there)
18 years ago
JSP
If you already know the form field parameter names, then why not just retrieve just those parameters? And the way I'm seeing it, I don't think that you would ideally want to store the request parameter values into the same string over and over unless all you plan to do is print the values out.
i.e
String username = request.getParameter("username");
String password = request.getParameter("password");
and so on...
18 years ago
JSP
From what I've seen, you arn't given the capability to include a file on another server. The file that you are attempting to include must reside on your server. If you attempt to do so, it will automatically look for a folder or file starting with the URL you specified that resides ON your server.
18 years ago
JSP
What Marco is suggesting is that the problem is more with the JDBC driver that you are using. It may not support the "addBatch()" method.
18 years ago
JSP
From what I know, you can't prevent a user from pressing the Refresh button.
18 years ago
JSP
Nice work. Here's a few suggestions:
1. Use database connection pooling
2. Separate business logic from presentation logic.
3. On deletion of some of the items, I noticed that the values became "null" and not really deleted entirely.
4. Work with a specific database system and encapsulate as much functionality as you can within it. It would be nice to see a good web front end for MySQL.
5. Like you pointed out before, error handling. Log all errors to a file so you can trace the errors.
Other than that, looks good

[This message has been edited by Rehan Malik (edited November 17, 2001).]
18 years ago
JSP
If you're accessing the main user table in Oracle, then all you have to do is make a connection to the database. If it succeeds, it's a valid user, if not, do anything you want with them.
18 years ago
JSP
Mostly either a flat standard text editor such as notepad, textpad, editplus, or JCreator.
The main one I use now at work is JBuilder 5.0 Enterprise. It makes development much easier in my opinion.
For web server(s):
JRun or Tomcat
18 years ago
Actually I just found a better way of handling what I needed to do.
I was using a Vector to hold all the information and then pulling information from the same vector and gonna throw all the data into a JTable. Ill just throw it directly into the JTable instead of putting it into the vector over and over.
Thanks neways.
I'm having an OutOfMemory exception being thrown because the Vector cannot store all the information that I am retrieving.
Here's what is known:
There are 99,000 rows being returned with 8 columns of data being retrieved from the database.
The memory appears to be jumping quite rapidly if I try to retrieve the 99,000 rows of results. Is there any possible way I can minimize the memory usage and still retrieve all the results?
Any suggestions? Here is the code below which does the retrieval of information:
</pre>
public Vector getRowInfo(ResultSetMetaData rsmd, ResultSet rs)
throws SQLException
{
Vector vRow = new Vector();
Vector vRowElements = new Vector();
while(rs.next())
{
vRowElements.clear();
for(int i = 1; i <= rsmd.getColumnCount(); i++)
{
vRowElements.addElement(rs.getString(i));
}
vRow.addElement(vRowElements);
}
return vRow;
}
</pre>
Thanks
You need to have access to a SMTP server to send the mail. There may be a few free providers but you'll have to look around.
19 years ago
Add the following code to top of "secret pages":
<%
if(session.isNew())
{
response.sendRedirect("http://www.errors.com";);
}
%>
[This message has been edited by Rehan Malik (edited August 24, 2001).]
19 years ago
I believe this is because you cannot assign another value to the variable OUTSIDE of a method.
It works within the method but not outside.
When I ran a non-GUI client with zero threads (in the code that I created), I had about 5-7.
I checked this when I was running Linux a while back.
19 years ago
You need to download the HTMLConverter to convert your HTML file. It's a headache of having to do so but there's no other option =P
Check Sun's website for the HTML Plug in
19 years ago