mira yang

Ranch Hand
+ Follow
since Nov 08, 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 mira yang

i have two pages:
page1.htm:
<html>
<body>
<form name="myform" method="post" action="page2.jsp" enctype="multipart/form-data" >
name: <INPUT type="text" name="name" size=40 maxLength=40 ><br>
pic:<input type="file" size=40 name="File1" value=""><br>
<input name="next" type="submit" value="next">
</form>
</body>
</html>

page2.jsp:
<%
String name = request.getParameter("name");
String file1 = request.getParameter("File1");
out.print(name);
out.print(file1);
%>

the output is: nullnull

but when i remove the enctype="multipart/form-data" in page1.htm,i can got the name and file1;
why? and how i can got the parameter whitout remove enctype="multipart/form-data"?
[ July 26, 2004: Message edited by: Bear Bibeault ]
19 years ago
JSP
when the user click on a button or a hyperlink ,i want to invoke a java method.
is there any ideas?
thanks.
19 years ago
JSP
I'm sorry,
myJLabel.setBackground(Color.red) doesn't work also.
19 years ago
the method myLabel.setBackground(Color.read) doesn't work, why?
Thanks!
19 years ago
is anyone else can answer my question?
19 years ago
Thanks ,i got it like this.
19 years ago
hi everyone.
i have two frame ,one called 'firstFrame' and one called 'controlFrame'. they are both hold a Jtree. when you selected a leaf node in the controlFrame, it will invoke the method addNode(path,name) to add a new node in the firstFrame. But as you will see, it insert the node into the controlFrame.
first, excute CreateData to get the file 'tree.data'

// TreePanel is the class who holds and changes the tree


This class creates the two frame, 'firstFrame' and 'controlFrame'

And please note the output.
What's wrong?
19 years ago
i tried it but it does't work.
is there anyother solution?
19 years ago
"shift+enter+ctrl" means that when all of the three keys are pressed at the same time.
i try it this way but it does't do what i want:
19 years ago
The user put some words in the textArea,and send the message to he friends. i want to add a keylistener ,the code send the message to net when the user press "shift+enter+crtl" .how to do this?
Thanks!
19 years ago
How to make a deep copy of jtree?
Thanks!
[ April 23, 2004: Message edited by: mira yang ]
19 years ago
Is there any method that can change the cup icon? I mean that once you change the Icon ,the frame has the new icon when you create a new JFrame anywhere?
thanks!
19 years ago
the user give a nickname when login,but how to find he put nothing?
Thanks!
19 years ago
Hello, I have got a answer to solve this problem:
The best way to create a dead lock is to try to read from both ends of a stream at the same time. I assume that the code for your server and your client are both attempting to get the ObjectInputStream before getting the ObjectOutputStream. Basically, all you have to do to fix this problem is put the getObjectOutputStream line BEFORE the getObjectInputStream line..
Hope this helps!
Sorry, i have got the answer.
thanks!
19 years ago