syeda amna 0 Light Poster

is it not the same thing as ioctl??

syeda amna 0 Light Poster

Hi
I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently.

syeda amna 0 Light Poster

thanks to all for your helps

syeda amna 0 Light Poster

Thank you sooo much for all.

syeda amna 0 Light Poster

I dont know what is the problem behind it. Actually i have an assignment in which i have to test from python command line.
For example i have to test python test.py -l
what does it mean.

syeda amna 0 Light Poster

Sorry. i forgot to upload the screenshotClick Here

syeda amna 0 Light Poster

I am trying to run a program from python command line. I installed python on D: drive. PLZZ help me in fixing this problem.

syeda amna 0 Light Poster

I want to remove these rectangles from this notepad file. They appear after i edited the document using notepad++. plzz help prob

syeda amna 0 Light Poster

Thank you very much for your reply. I want to ask which one is better for future and in terms of pay?

syeda amna 0 Light Poster

Hi
Which is better Web development or VB.NET course?
I am also a java programmer.
plzz suggest me, which one will be better for me/

syeda amna 0 Light Poster

hi

What is the difference between in JFrame and JWindow?
If I want to develop a a desktop application either I have to use JWindow or JFrame.

syeda amna 0 Light Poster

Very nice :)

syeda amna 0 Light Poster

I want to know how a servlet accepts the socket client request.
What you have said is possible on localhost. Plzzz can you help me by suggesting a good tutorial. I have not found any. Thanks you once again.

syeda amna 0 Light Poster

Can you tell me the exact code for this?

syeda amna 0 Light Poster

Thanks for your reply. Is it possible on local host??

syeda amna 0 Light Poster

hi
Is this possible to send a request to servlet from socket client?
I use request.getInputStream method to get client request. I got an error
HTTP/1.1 400 Bad Request
Server:Apache-Coyoyte/1.1
Transfer Encoding:chunked
Date:Fri,04 Nov 2011
Connection:close

How can I achieve my task??

syeda amna 0 Light Poster

thanks for your replies.
I applied all these methods. By using setPrefferedSize the panel becomes broad but no component appearin it.

Also by using panel within a panel i have the same output.

pack() does nothing in my case.

please any help, why swing components do not appear??

syeda amna 0 Light Poster

Its the full width of the window; just how broad did you want it to be?

i want to change the size of north panel according to my needs. I want to accomodate components properly. But due to smaller size of the panel some of components are not visible.

syeda amna 0 Light Poster

hi
I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout.
how can I get broad panel?? Is it possible or not??

syeda amna 0 Light Poster

I want to write the code for servlet that accepts client message and then send an acknowledgement. How to do this????

syeda amna 0 Light Poster

hi
how i can write the code for servlet that accept message from client. i wrote the code for socket server that accepts message from client. but i am unable to write the code for servlet. please help me.
thanks

syeda amna 0 Light Poster

Thanks for yor reply. I have done it.

syeda amna 0 Light Poster

Hi
is it possible to use static variables with servlet.
I want to access static variable from servlet but it gives null value. Why??

syeda amna 0 Light Poster

hi

I have create a table with 11 fields with field1 is primary key and auto incremented.
In java i use prepared statement.The code is working well without auto increment that is i add this value from my program. when i change field1 auto incremented and use prepared statement for 10 fields only, I have error "No value specified for parameter 1".

Also if I use prepared statement for 11 fields then what will b the parameters??
If i specified value of column1 then how it will be incremented in the database.
Please help me to fix the problem.
I the code is like this.

statement = connection.prepareStatement("INSERT INTO table1 VALUES(?,?,?,?,?,?,?,?,?,?,?)");
				
statement.setString(2, val2);
statement.setString(3, val3);
statement.setString(4, val4);
statement.setString(5, val5);
statement.setString(6, val6);
statement.setString(7, val7);
statement.setString(8, val8);
statement.setString(9, val9);
statement.setString(10, val10);
statement.setString(11, val11);
syeda amna 0 Light Poster

Thank you very much. It is now aligned by using <table> tags. :)

syeda amna 0 Light Poster

i dont use table tag. o use select tags to align them. i am unable to eliminate unwanted line breaks between drop down lists.
I use this code for my drop down list.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Shifa</title>

<style type="text/css">
.right_aligned {
	height: 10em;
	line-height: 1 em;
}

.right_aligned label {
	display: block;
	float: left;
	clear: left;
	width: 200px;
	padding-right: 2em;
	text-align: right;
}

.right_aligned select, .right_aligned input {
	display: block;
	
}

<label>Date Of Birth: </label>

	
	<select name = "Day">
	<option value="Day" selected>Day</option>
	<option value ="1">1</option>
	<option value ="2">2</option>
	<option value ="3">3</option>
	<option value ="4">4</option>
	<option value ="5">5</option>
	<option value ="6">6</option>
	<option value ="7">7</option>
	<option value ="8">8</option>
	<option value ="9">9</option>
	<option value ="10">10</option>
	<option value ="11">11</option>
	<option value ="12">12</option>
	<option value ="13">13</option>
	<option value ="14">14</option>
	<option value ="15">15</option>
	<option value ="16">16</option>
	<option value ="17">17</option>
	<option value ="18">18</option>
	<option value ="19">19</option>
	<option value ="20">20</option>
	<option value ="21">21</option>
	<option value ="22">22</option>
	<option value ="23">23</option>
	<option value ="24">24</option>
	<option value ="25">25</option>
	<option value ="26">26</option>
	<option value ="27">27</option>
	<option value ="28">28</option>
	<option value ="29">29</option>
	<option value ="30">30</option>
	</select>
	
	
	<div style=" margin-left:290px;">
	<select name="Month">
	<option value="Month" selected>Month</option>
	<option value="Jan">Jan</option>
	<option value="Feb">Feb</option>
	<option value="Mar">Mar</option>
	<option value="apr">Apr</option>
	<option value="May">May</option>
	<option value="Jun">Jun</option>
	<option value="Jul">Jul</option>
	<option value="Aug">Aug</option>
	<option value="Sep">Sep</option>
	<option value="Oct">Oct</option>
	<option value="Nov">Nov</option>
	<option value="Dec">Dec</option>	
	</select>
	</div>
	
	 <div style=" margin-left:360px;">
	<select name="Year">
	<option value="Year" selected>Year</option>
	<option value="1960">1960</option>
	<option value="1961">1961</option>
	<option value="1962">1962</option>
	<option value="1963">1963</option>
	<option value="1964">1964</option>
	<option value="1965">1965</option>
	<option value="1966">1966</option>
	<option value="1967">1967</option>
	<option value="1968">1968</option>
	<option value="1969">1969</option>
syeda amna 0 Light Poster

hi
i am working on servlet using eclipse IDE .i have attached html form. I am unable to format drop down list. how to do it. how to align the drop down list.please help.

syeda amna 0 Light Poster

I have made jdbc connection and it is working with socket server.
Actually i want to develop multi tier system in which each computer can send and receive information or exchange information. I am unable to understand how can i do this?? Please help

syeda amna 0 Light Poster

Actually the client has to pass some information and that information will update in server database. How to do this.

syeda amna 0 Light Poster

thanks for your reply. I am able to make a simple servlet wing eclipse and tomcat and it works very well.
now i want to to make a basic client server model. i know about socket client and server. now i want to know about how a servlet can respond to client.

syeda amna 0 Light Poster

hi
is there any difference between servlet and HTTP server.
I want to develop client server model (two tier) please help. how to do it?

syeda amna 0 Light Poster

Thanks for your reply.

can you give me an example.

syeda amna 0 Light Poster

I have removed ; this. But the same problem.

i want to check whether JTextField is empty or not. I have tried it from if else too but dont get the desired results. Please guide me.

syeda amna 0 Light Poster
try{
text1=a.getText(); //text field that is necessary to fill
text2=b.getText(); //text field that is necessary to fill
while(a!= null && b!=null); 
//check for condition whether a and b are null or not. 

} 
catch(Exception e)
{System.out.println("Please write some text" +e.getMessage());
// if JTextFields (a and b) are null an error message will appear
}

please correct it or guide me how to do it?

syeda amna 0 Light Poster

hi

please help me to develop code for JTextField exception handling. i have 10 JTextFields out of which 2 are necessary to fill. if the user left them blank then error message will appear.

try{
text1=a.getText();
text2=b.getText();
while(a!= null && b!=null);}

catch(Exception e){
System.out.println("Please write some text" +e.getMessage());}

this code is not working. the program is not responding after this code. why??
please help.

syeda amna 0 Light Poster

hi

I am a beginner. I am building java application which is like a form. First the user fill the whole form and the click OK.
I want to do that as the user clicks OK all the items entered in the JTextField will save in the variables that I declared.

I have do this by ActionListener. I have to press enter every time when I entered anything in JTextField. Like this:

Name=String.format("Set_Id: %s", event.getActionCommand());
Surname=String.format("Set_Id: %s", event.getActionCommand());
DOB=String.format("Set_Id: %s", event.getActionCommand());

Please help how can I do this by using MouseListener. All the values move to variables just by clicking OK.

thanks