Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~8K People Reached
Favorite Tags

46 Posted Topics

Member Avatar for softDeveloper

Hi everybody! I´ve used jdk to generate my certificate with the following command: keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: import javax.mail.* and import javax.mail.internet.* # and MimeMessage and Multipart. #. …

Member Avatar for stultuske
0
223
Member Avatar for surya55

In interfaces you have the method headers. In the classes you implement those methods If you create a class that implements your interface you give more freedom to whom implements the interface. Consider this example where different classes implement the same method in different ways because they have different characteristics: …

Member Avatar for ~s.o.s~
1
230
Member Avatar for softDeveloper

Hi everybody! I´ve used jdk to generate my certificate with the following command: > keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: # import javax.mail.* # and # import javax.mail.internet.* # and …

0
157
Member Avatar for softDeveloper

Hi, I'm submitting a html file in a form enctype=multipart/form-data file item to the server: at the server: <%@ page language="java" contentType="text/html; charset=utf-8"%><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> DiskFileUpload fu = new DiskFileUpload(); fu.setSizeMax(5000000); List fileItems = fu.parseRequest(request); Iterator itr = fileItems.iterator(); while(itr.hasNext()) { FileItem fi = (FileItem)itr.next(); if(!fi.isFormField()) { text=fi.getString(); } …

0
90
Member Avatar for softDeveloper

Hi, I'm making login in my site which has a database, and I check if the user exists in the data base. However, If I navigate through the web pages of the site, or if I type the url other than the beginning page, I can get to the site. …

Member Avatar for Taywin
0
99
Member Avatar for softDeveloper

Hi! I am trying to wrap some html paragraphs inside a div element: <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> I want to have this when I select this text from an iframe with window.getSelection(): <div> <p>1st paragraph</p> <p>2nd paragraph</p> <p>3rd paragraph</p> </div> and, in case I select 2 paragraphs and …

Member Avatar for ko ko
0
122
Member Avatar for softDeveloper

Hi, I want to get all the elements (span, paragraphs, div, etc.) that hold text inside, but just text. e.g.: If I had : <p>this is a paragraph</p> <p><div>this is a paragraph with a div inside</div></p> <div>this is a div</div> <span>this is a span <span>with a span</span>inside</span> So I would …

Member Avatar for ko ko
0
76
Member Avatar for softDeveloper

Hi! Do you know how to get elements which text is selected my mouse? e.g.: Several paragraphs in a html file. You select text with your mouse, and you get all "p" elements which have parts of the selected text. Regards

Member Avatar for pritaeas
0
70
Member Avatar for softDeveloper

Hi! Does anyone know how to upload a file, say in a form, with input type="file". But what I want is to display the uploaded file in an iframe in the same page. Best Regards

Member Avatar for Travus
0
664
Member Avatar for softDeveloper

Hi all, Is there a way to upload a text file to an iframe and then instead of getting an iframe with an horizontal scroll bar, getting the text width resized to iframe's width? Best Regards,

0
74
Member Avatar for softDeveloper

Hi all, I found this code : http://www.magic-dev.com/drag-drop-multiple-items.htm It works perfectly. However, if I pass these elements by ajax to a javaserverpage,they will be displayed, but won't either be dragged or dropped even If I have all the droppable and draggable functions and jquery libraries in the destination page, it …

Member Avatar for Airshow
0
169
Member Avatar for softDeveloper

Dear All, Please suppose that I have this line of code, and that my selection range goes from div element with id=1, starting at '2', to div element with id='2', ending at '8'. `<div id='1'>1`2`3</div>456<div id='2'>7`8`9</div>`. I'm using chrome, I would like to get the position of the cursor inside …

Member Avatar for patocardo
0
179
Member Avatar for softDeveloper

Hi all, I have a table 'table 1' which has a primary key. Now I want to create two other tables with a composite key in each one, composed by primary key and a foreign key both referencing table 1 's primary key. However I can only do it with …

Member Avatar for softDeveloper
0
167
Member Avatar for softDeveloper

Hi all, I'm checking for primality in BigInteger type. I'm using isProbablePrime with certainty 15. I would like to know how to test if a BigInteger is really a prime number. Thanks in advance.

Member Avatar for softDeveloper
0
281
Member Avatar for softDeveloper

Hi all, In my web application I load data from MySQL database into an iframe. Sometimes files bigger than 1 Mb. I make some changes on the file, and afterwards I send it back to the database. The issue is that with this code below I can't send files bigger …

Member Avatar for peter_budo
0
105
Member Avatar for softDeveloper

HI all, I want to get the contents of an iframe with jquery doing this code [CODE] for(var i=0;frames.length;i++){ if(self.parent.frames[i].getSelection().toString()!=""){ var bdy = $(self.parent.frames[i].name).contents().find("body"); alert('iframe:'+ bdy.html()); } } [/CODE] Is there a better way of doing this? My goal is getting the iframes selection create a range, extracting its contents, …

0
70
Member Avatar for softDeveloper

Hi all, I'm using google chrome as client of my web application. If I open it with mozilla or ie it won't work 100% all application features. Does anybody know the differences concerning iframes and document selection for example in the following lines of code: [CODE] self.parent.iframe[i].getSelection().getRangeAt(0); map = document.createElement("map"); …

Member Avatar for stbuchok
0
138
Member Avatar for softDeveloper

Hi all, I'm using scrollintoview to scroll to the element but it's very quick, do you know anything like this but smooth?

Member Avatar for Troy III
0
156
Member Avatar for softDeveloper

Hi all, I want to upload a file the way input type=file does, but I want to upload it as a client to a remote server. Any ideas please?

Member Avatar for softDeveloper
0
130
Member Avatar for softDeveloper

How to get the parent node for all selections? this just give one selection out of 4 iframes: [CODE] self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML; [/CODE]

0
86
Member Avatar for softDeveloper

Hi all, how can we replace the getSelection HTML in an iframe? I want to getSelection() and the replace selection's html with simple text.

Member Avatar for softDeveloper
0
168
Member Avatar for softDeveloper

I'm getting xmlHttp.readyState 1 when sending these parameters and it only happens when parameter 'text' is very big. [CODE] var url="replaceText4.jsp"; url=url+"version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text; xmlHttp.open("POST",url,true); xmlHttp.send(url); [/CODE] Could you help me on this?

Member Avatar for softDeveloper
0
142
Member Avatar for softDeveloper

Hi all, I want to send big amounts of data, like a very big text with 3 Mb from an iframe to a database. For this I send the text from javascript side to JSP and from here to MySQL. When the text is big like this the text is …

Member Avatar for softDeveloper
0
130
Member Avatar for softDeveloper

Hi all, I have Text in MySQL utf 8 and an iframe displaying this text, and the page content is utf8. Does anybody know why the iframe caret position doesn't match with MySQL position when there are line breaks, and how to fix it? Regards

Member Avatar for softDeveloper
0
109
Member Avatar for softDeveloper

Hi all, I have a text file saved as utf8 without BOM. I loaded it into MysQL database. An iframe is loaded with this data from MySQL. I need the caret position in the iframe in order to perform operations in the database. Everytime there's a new line the positions …

Member Avatar for smantscheff
0
151
Member Avatar for softDeveloper

Hi All, I'm selecting text from an iframe using getSelection(). It reads everything but the tabs '\t'.

Member Avatar for softDeveloper
0
143
Member Avatar for softDeveloper

Hi all, I'm trying to get the caret position of an iframe. I tried several ways, based on this example: [url]http://stackoverflow.com/questions/8664504/designmode-iframe-get-cursor-position[/url] Anyway I try I allways get the start position of the selected text added with 19. I'm not getting why?

0
82
Member Avatar for softDeveloper

Hi All! I'm trying to call a method defined in a jsp that is in my webcontent web application. I placed [CODE] <%@include file="method.jsp"%>[/CODE] in the jsp from where I want to call the method. I get an exception saying: [CODE]org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred …

Member Avatar for stultuske
0
295
Member Avatar for softDeveloper

Hi All! I'm trying to read ms word documents stored in my dataBase in a BLOB column. However, concerning the encodings there are issues with characters. My web application can read the ms word documents the to an iframe with POIFSFileSystem without problems. [CODE] File docFile = null; [COLOR="Green"]WordExtractor[/COLOR] docExtractor …

0
83
Member Avatar for softDeveloper

Dear All, I have a database with two columns, to keep several files of text with lots of text lines in each text: ----------------------- |---name -|- Text---| ----------------------- I want the column |-name-| to be a primary key, and to upload the text file I'm using the command: [CODE] LOAD …

Member Avatar for softDeveloper
0
174
Member Avatar for softDeveloper

Hi all, My web application uploads files from MySQL database. I have the text in ms word *.doc files, so I convert it to *.txt as UNICODE-UTF8, and mysql table charset is set to UTF8. I load the database entering this command: [CODE] LOAD DATA local INFILE 'file.txt' INTO TABLE …

0
141
Member Avatar for softDeveloper

Hi All, I'm copying a long text from word and pasting into a html textarea and from here I send it to MySQL database. If the submited text is too long nothing happens. Any ideas on how to submit a large amount of text from a webpage to a MySQL …

Member Avatar for stultuske
0
203
Member Avatar for softDeveloper

Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var …

0
104
Member Avatar for softDeveloper

Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String …

0
112
Member Avatar for softDeveloper

Hi all! Does anybody know a cool and cheap site where I could host my web application (jsp+Mysql)? Thanks in advance! Kind Regards

0
116
Member Avatar for softDeveloper

Hi all! I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It …

Member Avatar for peter_budo
0
268
Member Avatar for softDeveloper

Dear all, I'm passing a javascript String variable varname in a form inside a jsp to another page. [CODE] <form name="form1" action="nextpage.jsp" method="post "> <input type="hidden" name="varname" value="teste" /> <input type="button" value="button" onClick="document.form1.varname.value = function(window);"> <input type="submit" name="button" value="test1" /> </form> [/CODE] When I get the String in the next …

Member Avatar for softDeveloper
0
199
Member Avatar for softDeveloper

Dear All, I'm working on a web application, JSP. I have a script with a javascript function that returns a String. I want this returned String to be passed to another page in a form, when a button is clicked. Any ideas on how to make this work? I was …

Member Avatar for softDeveloper
0
1K
Member Avatar for softDeveloper

Hi All! I'm working on a web application, JSP, where a user selects the text with the mouse in html. I want this text to be inserted in a MySQL database as a java string using prepareStatement in Java and executeupdate. Example: String querystring = "INSERT INTO mySelectedTextTable(selectedTextWithMouse) VALUES (?)"; …

Member Avatar for softDeveloper
0
211
Member Avatar for softDeveloper

Hi all, I have the following problem: I have 4 documents whose text is divided into blocks of text, hereafter called section. One of the documents is the main document, and the sections from the other documents are related to the sections of the main document. The main goal is …

Member Avatar for niranga
0
119
Member Avatar for softDeveloper

Hi all, I have several sections in a text, and I would like to highlight each section as mouse rolls over.. I've tried to span the fragments of text but it doesn't work in my jsp...any suggestions?? Thanks

Member Avatar for softDeveloper
0
100
Member Avatar for softDeveloper

Hi all, I'm reading to a jtextpane a word document. Everything is fine except for this character \u0169 ( a tilde over an u).. Any suggestions? Thanks

Member Avatar for stevanity
0
75
Member Avatar for softDeveloper

Hello All, Can anyone give a tip on reading .doc files to a JTextPane? How to get the characters right? Thanks!

0
45
Member Avatar for softDeveloper

Hi All! I'm doing a web application (jsp) where I have several texts displayed and highlights the text rolling mouse over it. I would like to pass an entire text as an applet parameter, so that the the text can be seen in a text pane/editor. At the moment I …

Member Avatar for softDeveloper
0
152
Member Avatar for softDeveloper

Hi all, Does anyone know how to read a .doc file with reader in java? Is it possible to read a doc file the same way you read a txt file? Thanks in advance

Member Avatar for hfx642
0
58
Member Avatar for softDeveloper

Hello everyone, I've made a client web project, which is working using Tomcat server that, in turn, connects to a server that wait socket connections in a port. If I start eclipse and tomcat and run the server side, I can access the application using any browser by internet. I've …

Member Avatar for peter_budo
0
119

The End.