Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~5K People Reached

42 Posted Topics

Member Avatar for Xessa

I want to connect to an FTP server and transfer a file with Java. I could not find anything about secure FTP.Can anybody help me about this? I also want to ask that if i can connect to an FTP server using SSL with command line. If i can connect …

Member Avatar for vglass
0
213
Member Avatar for Xessa

[code] String host = host_adress SshClient ssh = new SshClient(); ssh.connect(host,10022); System.out.println("ssh is connected--->"+ssh.isConnected()); PasswordAuthenticationClient passwordAuthenticationClient = new PasswordAuthenticationClient(); passwordAuthenticationClient.setPassword(password); passwordAuthenticationClient.setUsername(username); int result = ssh.authenticate(passwordAuthenticationClient); if(result != AuthenticationProtocolState.COMPLETE){ throw new Exception("Login to host failed"); } ssh.disconnect(); [/code] Above i just want to connect to an FTP server. We gave them …

0
60
Member Avatar for Xessa

I am sending an array which consists of objects that i have created. And my class consists of a String value and a HashMap How can i get these values? $F{myObject}.get(1) Can the code i wrote above work?

0
63
Member Avatar for Xessa

Hi. I want to print out Turkish characters on my report and i can't at the moment. I select PDF encoding as CP1254(Turkish) and i still can't write ğ or ş. How can I solve this problem?

0
59
Member Avatar for Xessa

Hello. I have two questions about iText. The pdf file exactly has to be like the word file that was sent to me. In the word file; the character is Times New Roman and its 10 puntos. But in the pdf file when i try to do Times.Roman and 10 …

Member Avatar for peter_budo
0
117
Member Avatar for Xessa

I want to write this. [b]Last[/b] night i dreamt of [b]San Pedro[/b]. How can I write this with 1 PdfPCell

Member Avatar for quuba
0
111
Member Avatar for Xessa

Hello I have a csv file and i want to read data from it and pass the data to the database. Now. I have values that are seperated with semicolons. The file is like this. customerID;name;surname;phoneNumber 1;Gokhan;Terzioglu;333444333 2;Melih;Terzioglu;555444333 There are 100.000 columns like this. How can I read the data …

Member Avatar for parry_kulk
0
108
Member Avatar for Xessa

I want to create a pdf file. And it has a long sentence that it won't fit in 1 line. Which method can I use to continue from the new line when the sentence to be added in the cell to continue from the new line.

Member Avatar for quuba
0
62
Member Avatar for Xessa

Hello. I'm trying to convert Calendar to dd/MM/yyyy format. My problem was it couldn't convert to exactly what i wanted. I'm Turkish so when we write a date, we write the day first then month then year... My code is here [code] public static String toFormattedDateString(Calendar input){ String year = …

Member Avatar for Xessa
0
162
Member Avatar for Xessa

I have a Servlet and JSP page. I invoke a method with form submit and the method is a java method. [code] response.setHeader("Content-Disposition", "attachment; filename = report.XLS"); response.setContentType("application/vnd.ms-excel"); response.getWriter().write(result); response.getWriter().flush(); [/code] Everything works fine but it tries to fit the columns in 1 page. So i have a long adress …

Member Avatar for ~s.o.s~
0
81
Member Avatar for Xessa

I have phone area textbox and i want to test it against values like 1111111 or 9999999. I want at least 1 character to be different in this text area(it is exactly 7 characters long) How can i do this in its shortest way?

Member Avatar for ShawnCplus
0
82
Member Avatar for Xessa

Hello. I have a PreparedStatement/CallableStatement, a ResultSet and a Connection... Now after execution finishes, i want to release my resources. First I close my connection... I also want to release my ResultSet and my PS Will assigning null to my Connection object after closing the Connection object also assign null …

Member Avatar for JamesCherrill
0
378
Member Avatar for Xessa

[code] package mypackage; import java.security.SecureRandom; import java.util.Random; public class SecureRandomTest { /** * @param args */ public static void main(String[] args) { SecureRandom sr1 = new SecureRandom(); System.out.println("1. SecureRandom object 1. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 2. nextInt() result :" + sr1.nextInt()); System.out.println("1. SecureRandom object 3. nextInt() …

Member Avatar for Xessa
0
324
Member Avatar for Xessa

Hey; i have a table and rows. For example two texts In one row my text is "Helegelemere" In another row my text is "More" But in my JSP page they don't seem identical. For example It looks like Helegemere More And because of after every word i have a …

Member Avatar for essential
0
79
Member Avatar for Xessa

Hello people. I have a pop up window and i have 2 pages that open the same pop up window. I want to make a button hidden when one specific page opens my pop up. If the other page opens my window; i want the button to be there and …

Member Avatar for Krishna_vs
0
101
Member Avatar for Xessa

Hello guys. I have a callable statement which runs and gets a value from the database. I have registeroutparameter which turns an integer value. I got to alert that value on screen. In java code everything works fine and i can print it on screen. But i can not turn …

Member Avatar for Airshow
0
84
Member Avatar for Xessa

Hello people i have a textbox and i have its size 20 and its maxlength = 11. it does show it in the textbox while writing, but it lets me insert 15 digit number to my database. i type 12345123451 (it shows in my textbox) then i type 9999(it doesn't …

Member Avatar for Airshow
0
155
Member Avatar for Xessa

Well it seems that i have a textbox and a textarea under it. Both sizes are 20 but they don't seem identical. Is there a way to make them identical vertically? Thanks

Member Avatar for essential
0
135
Member Avatar for Xessa

like isnull? Is there any way to check if like? select @myVariable isequal("hotta","kutel") If it is equal to "hotta" set it as "kutel" something like this?

Member Avatar for Xessa
0
73
Member Avatar for Xessa

I want to avoid user to press " and ' characters. What must i do in keyup event?

Member Avatar for essential
0
109
Member Avatar for Xessa

Hi. I am Turkish. When the text is written in Turkish, some characters are double bytes in the database. Is there a shortcut to find these characters? Will checking if the high byte of the character is not 0 will work?

0
63
Member Avatar for Xessa

In my textArea the strings ' and " are passed to my Java method as unicodes. So instead of ' what i see is ’ What can i do to prevent this because it is also updated in the database as its unicode representetive.

Member Avatar for JamesCherrill
0
71
Member Avatar for Xessa

*** [code]form.myTextBox.value[/code] [code]document.getElementById("myTextBox");[/code]

Member Avatar for Xessa
0
89
Member Avatar for Xessa

Hello again people. I have a problem. Think of a textarea. The text area is filled with information depending on an entrance in a textbox. Like userID is entered and the information is filled in the textarea. I want the user to edit the textarea. But when he is editing, …

Member Avatar for Xessa
0
125
Member Avatar for Xessa

I have 3 textboxes names myTextBox1 myTextBox2 myTextBox3 onblur i want to check if the value of the checkbox is true. I have a function in my js file. [code] function isNumeric(myString) {.......} [/code] In my JSP file i write; [code] onblur="isNumeric(X)" [/code] I wrote everything and it does not …

Member Avatar for itsjareds
0
101
Member Avatar for Xessa

Hello. I have a stored procedure that brings information from the database. The problem is when i close the window the transaction continues to work. What can i do in my JSP and Java code to prevent this? Does that mean that my transaction is wrong? When the result data …

Member Avatar for masijade
0
80
Member Avatar for Xessa

Hello people. I seem to connect and select the data i want from a specific and big table. But when the information to be selected is small, everything is allright. But when i try to select information that is not that much small. For example when i select from 3000 …

Member Avatar for Xessa
0
109
Member Avatar for Xessa

Hello. I have a web page and i want user to be able to select multiple options. The problem is that when i write [code] <select name="aha"> <option value="hhh">HHH</option> <option value="kkk">KKK</option> <option value="ppp">PPP</option> [/code] There is no problem in my JSP page. But later when i try to write [code] …

Member Avatar for jodin
0
210
Member Avatar for Xessa

I want to create a listbox in a jsp page. I want people to be able to choose multiple options... Also i want if one option is selected, people should not select another option. EXAMPLE If b is selected people can select a and c. But if a is selected …

Member Avatar for essential
0
127
Member Avatar for Xessa

Hello . I have a web page and a button on it. From that button i pop-up another page and update the user's information. After updating is done, it focuses to my original page. Not the page that i have been working. Why is this happening? How can i make …

Member Avatar for essential
0
88
Member Avatar for Xessa

I have a textbox. in js code, i try this... if(isNAN(parseInt(form.myTextBox.value))) {alert("not a number");} I'm trying to check if it is a number. Else i want to warn him.... How can i do this in a js file?

Member Avatar for essential
0
137
Member Avatar for Xessa

I have a checkbox and when i change it to clicked from non clicked it always turns to servlet as false and it does not affect my search criteria. It always returns "false". What can I do? Any way to prevent this???

Member Avatar for peter_budo
0
41
Member Avatar for Xessa

I want to insert an array into a table. Each array element is a row in the table. How can I achieve my goal? I don't want to use [code] VALUES x1,x2,x3,x4 ......[/code]

Member Avatar for humbug
0
165
Member Avatar for Xessa

I submit the form and execute a method in a servlet. I want to inform the user if the execution worked. I'm returning false from the method if it did not executed. Else if he was able to do the execution, i want to inform that he did it and …

Member Avatar for essential
0
108
Member Avatar for Xessa

I want to get the row number of a specific row in the table. Also is this legal? [code] INSERT INTO (SELECT * FROM myTable WHERE mynumber=2) VALUES ........ [/code]

Member Avatar for pty
0
139
Member Avatar for Xessa

Hi. I have a JSP page and servlet and a java class. Also a .js file. Anyways. I want to go to the database and select some variables from the database. After i select the variables i want to populate my HTML file with them with js code. The problem …

Member Avatar for kvprajapati
0
131
Member Avatar for Xessa

Hi. I have a textarea and i want my button to be enabled when the contents of the textarea is changed. But i don't want onchange method because even when i type even a letter it keeps firing the js function. I got the contents of textarea from the database …

Member Avatar for Airshow
0
114
Member Avatar for Xessa

Hello. I want to execute an insert command when the result of previously select statement is true. Can i use both data source and result set in my method so i can check if the result is null or not. Or is there a way to see if ds is …

Member Avatar for kvprajapati
0
321
Member Avatar for Xessa

I have a data source. I want the null values of my text to be printed as a new line in my text area. How can I do it? Think of sql table 1-I am 2-null 3-good I want it to be printed on textarea like this. I am good

Member Avatar for sillyboy
0
84
Member Avatar for Xessa

I have an .aspx file and i try to align the table to the center. But when i do this [code] <table style="text-align:center"> [/code] it does not work. It shows the table always at the left side of the page.

Member Avatar for greeny_1984
0
147
Member Avatar for Xessa

Hi. I tried dragged and dropped an SqlDataSource and then click "Configure Data Source". From there i start a new connection and select my server. Under "Select and enter a database name" listbox i can not see anything. So i try to attach a database file "NORTHWND.MDF". When i try …

Member Avatar for Xessa
0
192
Member Avatar for Xessa

Hi people. I am new to this forum. In fact the reason why i registered here is my problems about making a JSP page work. I am using Apache-Tomcat I just wanted to test an html file. It was form.html.When i start tomcat and type ht*tp://localhost:8080/ everything works fine. But …

Member Avatar for ~s.o.s~
0
224

The End.