Sam

Greenhorn
+ Follow
since Sep 10, 2003
Merit badge: grant badges
For More
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 Sam

I am passing more than value from Servlet.
i.e (Value1, Value2)..
How do I receive these variable values in JSP...
Thanks..
20 years ago
Thanks for your mail. I u/stand using Model 2 is traditional and better practice.
But, can I also use an applet or java program that processes the ID I am passing from JSP and return it ?
'Cause, first of all, I am new to web environment and I would like to achieve this asap.
Your timely help are reall appreciated.
Rgds,
Paraankusam

Originally posted by Bear Bibeault:
With regards to your question.
Your username and password are being submitted to the 'b' JSP and are available as parameters on the servlet request instance.
Might I use this oppurtunity to suggest that you follow a 'Model 2' pattern and submit your form to a servlet rather than a JSP. The servlet, after processing your parameters, would then forward to a JSP page to display the results of the processing. This is considered a better practice than performing operations in a JSP page.
hth,
bear

20 years ago
JSP

Originally posted by Paraankusam:
Hello Jason,
Sorry, I couldn't understand. My name is Paraankusam and why do I need to change my display name, please.
Thanks
Paraaankusam


Hello Jason,
I am getting the same error, please.
C:\TowerUsage\JavaFiles>java Detail 'abc'
Exception in thread "main" java.io.FileNotFoundException: Detail09-10-2003-04:34:44.doc (The system cannot find the file specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at java.io.FileWriter.<init>(FileWriter.java:46)
at TowerDetail.main(TowerDetail.java:30)
thanks...paraankusam
20 years ago

Originally posted by Paraankusam:
Hello Jason,
Sorry, I couldn't understand. My name is Paraankusam and why do I need to change my display name, please.
Thanks
Paraaankusam


Hello Jason,
I am getting the same error, please.
C:\TowerUsage\JavaFiles>java Detail 'abc'
Exception in thread "main" java.io.FileNotFoundException: Detail09-10-2003-04:34:44.doc (The system cannot find the file specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at java.io.FileWriter.<init>(FileWriter.java:46)
at TowerDetail.main(TowerDetail.java:30)
thanks...paraankusam
20 years ago
Hello Jason,
Sorry, I couldn't understand. My name is Paraankusam and why do I need to change my display name, please.
Thanks
Paraaankusam

Originally posted by jason adam:
Paraankusam,
Welcome to JavaRanch!
We don't have many rules here at JavaRanch, but we do have one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!

20 years ago
Hello,
In my Java program, I am creating a file followed by datetime (ie, TowerDetail09-10-2003-03:28:04.doc) and writing into it.
I am getting this error:-
Exception in thread "main" java.io.FileNotFoundException: TowerDetail09-10-2003-03:28:04.doc (The system cannot find the file specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at TowerDetail.main(TowerDetail.java:30)
***************
The snippet of the code is:
java.util.TimeZone tz = java.util.TimeZone.getTimeZone("EST");
java.util.Date now = new java.util.Date();
DateFormat df = new SimpleDateFormat("MM-dd-yyyy-hh:mm:ss");
df.setTimeZone(tz);
String result = df.format(now);
String fileName = "TowerDetail"+result+".doc";
File inputFile = new File(fileName);
FileOutputStream fos = new FileOutputStream(inputFile);
PrintWriter pw = new PrintWriter(fos);

Help will be appreciated.
thakns...
20 years ago
Hi guys,
I am new to JSP.
I have two JSPs a and b.
In (a), I am getting Login and Passwd and passing to (b) and then calling a class to connect to the db.
Please let me know how,
(1) How I can pass values to another JSP and call the java class to connect to the db ?
thanks for a ll the help
:roll:
20 years ago
JSP