Posts by Pacíficão • 882 points
25 posts
-
1
votes1
answer505
viewsQ: Receive values (popup) on parent page
On another question, they were able to help me about storing the values of some input of a popup, to move to the parent page. Summary.jsp (father) <input type="button" onclick="test();"…
-
5
votes3
answers2170
viewsQ: Pass values from a popup (child) to parent page
The parent window (jsp) has a button to open the popup (child). <input type="button" onclick="test();" value="Call Child Window" /> When you open the popup, there are text fields for the…
-
4
votes2
answers402
viewsQ: Wrong formatting when opening a latex generated PDF
In my program I need to open a PDF file and pick up the text that contains it. But when opening the PDF, the text comes badly formatted. For example: Please to `my fam ? read by ? measure efforts…
-
19
votes8
answers5853
viewsQ: Recognize word repeats in String
I have a text inside a StringBuffer and I need to check and mark the words that appear more than once. At first I used a circular row of 10 positions, because I am interested only repeated words in…
-
3
votes3
answers2210
viewsQ: Remove First Word from String
I have a stringBuffer with a sentence inside. I need to remove the first word from the string. Making the second word become first and the number of words x-1.
-
14
votes1
answer1274
viewsQ: Select Multiple with dynamic operation
I have a select with 4 options. These 4 options are the number of options that will appear in a multiple select. What I want is as soon as the user selects the option of number of frequently asked…
-
2
votes1
answer124
views -
1
votes2
answers387
viewsQ: Problems with if Else in Servlet
I’m messing with jsp. In mine servlet have if and else if and they both send to the same page, only with different values. However, when you enter the if(shows the result) and then when it returns…
-
2
votes2
answers588
views -
3
votes1
answer561
viewsQ: Two pages using the same Servlet
I have my main page(index.jsp) uses Servlet for a few little things. Then redirect to the final page.jsp. This page will use Servlet as well, as I need the user to choose the functions (buttons) he…
-
1
votes2
answers202
viewsQ: Change class vector size
I have to use vector public static String vetor[] = new String [15]; in the class... but this class is used in a Servlet. And the size I need the vector is what the user chooses... how can I pass…
-
2
votes2
answers548
views -
0
votes3
answers1045
viewsQ: Separate values from List
I’m using List to sort some values, but I need to separate them after I manipulated the values. List<Map.Entry<String,Integer>> lista = new…
-
2
votes2
answers1417
views -
2
votes1
answer1055
viewsQ: Pass parameter between two Jsps
I have the.jsp end page and output.jsp. On the.jsp end page I send the parameter like this: <form action="saida.jsp"> <input type="hidden" name="informal"…
-
0
votes1
answer200
viewsQ: Swap attributes from one Object to another
In my java application I have a declosed object like Extrair extrair = new Extrair(); And I use this object and its attributes for my Serrvlet. But I need to pass this object to .jsp. In jsp I use…
-
3
votes1
answer1276
viewsQ: Mark (colorize) a string to write to the file
My application searches for a few words in a file. When the program recognizes these words (strings), it should mark it. For example: change the font color or change the word background color. Then…
-
9
votes2
answers7414
viewsQ: Manipulating String in Java
I have a text inside a String. I will go through this String. Going through it I need to pick up every word it contains. I thought I’d use string.split(" "); but I need to treat "." ;" "," ":" "!"…
-
2
votes0
answers111
viewsQ: Distinguish nodes in a TRIE tree
I have a multi-word TRIE tree (dictionary function), in the node that is the last character of the word I need to have a "type" inside this node. I need to distinguish what kind of word each is, so…
-
6
votes2
answers2013
viewsQ: How to pass a JSP file to Servlet?
I have a page . jsp, where I have an input file. I need to open this file to use the information contained in it. Suppose it is a pdf. I receive this pdf, sent to Servlet for the purpose of using in…
-
5
votes2
answers3778
viewsQ: Using JSP and JAVA
I’m starting to mess with JSP. But I’ve been using JAVA for some time. I have the index.jsp file which is my page and I have my indexJava.java which is the program itself. I would like to know how…
-
-1
votes2
answers1131
viewsQ: Pass JSP variable value to JAVA
Good afternoon, I am using JAVA and JSP to program. I have a JSP variable and need to pass the stored value to the JAVA code. I need to pass the variable "X" which is in index.jsp to the variable…
-
2
votes2
answers2660
viewsQ: How to grab a file extension?
I am using JSP and HTML and need to select a file and know its extension. The only way I know how to open a file is with input file but with it I can’t get the extension. How can I get this result?…
-
1
votes2
answers67
viewsQ: Placing two attributes in a cell
Have some structure, List, LinkedList, etc., that allows me to put two attributes in the cell? For example, an integer and a string in each cell.
-
3
votes1
answer2624
viewsQ: How to separate a PDF file line by line, in Java?
I need a way that I can read line by line from a pdf file. I am reading the entire pdf file at once on this command line: String conteudo=PdfTextExtractor.getTextFromPage(reader, 1); However I need…