Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
22% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
4
1 Commented Post
~32.9K People Reached
Favorite Tags
Member Avatar for Web_Sailor

Hi :-/ I have a java function that I want to call inside my JSP page. My function has got parameters.Now the problem is I cannot call it using JavaScript and if I put it inside <% %> tags it just executes while loading the webpage itself. I need to …

Member Avatar for hessah1986
0
200
Member Avatar for Web_Sailor

Hi, I need to create a user name and password login client server. Attached is my attempt. This is my first try on socket and network programming in C. I have reached to a certain level but just a little problem is stopping me because of less C knowledge. I …

Member Avatar for raptr_dflo
0
3K
Member Avatar for Web_Sailor

Hi :) I want that one of my fields in database should be redirected to some URL. For Example: Sample Table: 1111 2222 3333 4444 5555 6666 7777 8888 9999 1100 Suppose I want my 3 field to be redirected to a URL when a user clicks on the output …

Member Avatar for javaAddict
0
66
Member Avatar for Web_Sailor

Hi, I have a submit button in my JSP page. I also have drop down menus and text area in my form. Now my condition is like if drop down values or text area are null in this case if a user wants to submit he should get an alert …

Member Avatar for rakhi4110
0
874
Member Avatar for Web_Sailor

Hi... I am creating an HTML Table in my JSP page taking values from text file. Now the problem comes when I read the file again to update the Table content. In this case I have to refresh my whole page to see updated Table. :icon_cry: How can I refresh …

Member Avatar for Shanti C
0
1K
Member Avatar for Web_Sailor

Hi, I want to prevent the sorting and preserve the original order in my container. below is the example. How can I do it ? string one = "6"; string two = "7"; string three = "2"; string four = "8"; veck.push_back(one); veck.push_back(two); veck.push_back(three); veck.push_back(four); veck.push_back("9"); veck.push_back("12"); veck.push_back("13"); veck.push_back("5"); I …

Member Avatar for Ancient Dragon
0
98
Member Avatar for Web_Sailor
Member Avatar for Web_Sailor

Hi :) I am using basic replace function but getting some runtime error as below:- [CODE]terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::replace Aborted [/CODE] I already know the position where I should replace so don't need to find it. Can somebody tell me how to avoid this …

Member Avatar for Fbody
0
383
Member Avatar for Web_Sailor

Hi gurus's :cool: I have got an actionListner in my code. The problem is that when I try to set my JLabel as true it does not work and does not show up in the GUI ? :@ [CODE]Button.addActionListener( new ActionListner(){ public void actionPerformed(ActionEvent e){ label.setVisible(true); myFunction() //here's some timeconsuming …

Member Avatar for Web_Sailor
0
3K
Member Avatar for Web_Sailor

Hi.. :?: I have written a program that reads a file and loads it into the 2D matrix but the problem is that it only loads the first line into 2D Matrix and duplicates the same. Can somebody point out the mistake. Here is my input file[CODE]14 12 5 4 …

Member Avatar for Web_Sailor
0
136
Member Avatar for Web_Sailor

Hi, I have a written a program using multimap and its not giving me the results I am expecting. I have used pair in my program. There is some problem which I am unable to figure out. Perhaps I am using pair for the first time with multimap. Here is …

Member Avatar for Web_Sailor
0
149
Member Avatar for Web_Sailor

Hi, I am trying to compare 2 vectors to remove any kind of overlap. I have written a simple program but it gives a segmentation fault once I increase / decrease number of vector elements in both. Is there a better way of doing this. Especially suppose one of the …

Member Avatar for Web_Sailor
0
174
Member Avatar for Web_Sailor

Hi all, I have a java swing based client server application. The GUI is in swing and I am using glass fish as my server. Is there a way or any software available to create an environment where I can test my application by creating virtual user connections so that …

0
65
Member Avatar for Web_Sailor

Hi gurus, I have a simple question regarding file parsing. I am trying to parse a file and store the fields I require in a multimap. Now I want to pass an array which is of int type and specifies field number to be extracted in a file. I am …

0
53
Member Avatar for Web_Sailor

Hi... I want to read only the first line of a file and print the line. I don't want to read the whole file. How can I do that ? Here is how we normally read the file [CODE]import java.io.*; import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.logging.Level; import java.util.logging.Logger; …

Member Avatar for rAun007
0
8K
Member Avatar for Web_Sailor

Hi, I am trying to solve a riddle. I am passing a value to multimap like this:- combined = string1+"\t"+string2 and then setting the output to fix size using maximum length and [CODE] cout.width(combined.length()) cout.fill(' ') [/CODE] The problem is that the fixed length format is not coming properly but …

0
58
Member Avatar for Web_Sailor

Hi, I have a data I want to make fix length records Like suppose:- [CODE]one two three four one two three one[/CODE] In this case the fixed length should be of the maximum string length which is of the first line. My code below is giving creating faulty fix lengths. …

Member Avatar for jonsca
0
230
Member Avatar for Web_Sailor

Hi, I have a jRadiobuttongroup. I have 3 types of jradiobuttons in my group. [CODE]A B C 1 1 1 2 2 2 3 3 3 4 4 4[/CODE] Now the problem is that when I selected suppose A type of buttons some of the A type buttons get selected …

0
59
Member Avatar for Web_Sailor

Hi :) I was trying to find the max length in my multimap. here is how I define it: [CODE]multimap<int, string> mm; multimap<int,string>::iterator it; mm.insert(pair<int, string>(some_int, myvalues));[/CODE] Now the main part that I want to discuss is this. I have created 2 functions to find the size of records in …

0
54
Member Avatar for Web_Sailor

Hi, I want to change the color of a selected jradiobutton in a button group to RED when clicked on it. I am not able to do it make it happen till now. The problem is actually that when I select any jradiobutton the selection spot should stay and get …

Member Avatar for Ezzaral
0
880
Member Avatar for Web_Sailor

Hi :icon_smile: I have written a C++ program which works very fine. The problem comes in terms of efficiency and speed. I am using a multimap which is required for my type of requirement. [CODE]multimap<string,string>[/CODE] Now the problem is that for files more than 100 MB it takes a lot …

Member Avatar for Web_Sailor
0
65
Member Avatar for Web_Sailor

Hi, I am struggling with a Layout problem. Here is the definition of the problem:- 1) I have a JFrame where I specify space alignment in GroupLayout for JScrollPane as per the other (JButton/ comboBox etc..). My JScrollPane contains a JTable. I use get and set methods to set scrollpane …

Member Avatar for Perveance
0
180
Member Avatar for Web_Sailor

I want to control the number of clicks in my button group which is inside DefaultTableModel of JTable. Like only one click for a certain Radiobutton. Suppose I have 3 radio buttons in a button group: 1) A 2) B 3) C If a user clicks A he can select …

Member Avatar for javaAddict
0
129
Member Avatar for Web_Sailor

I have got a problem with the layouts. I am creating a Grouplayout for my JLabels / Buttons etc in a window .. Then I am adding a Jtable using the JFileChooser for which I am specifying GridBagLayout and then adding the layout to Jframe again after JFilechooser creates a …

Member Avatar for Ezzaral
0
110
Member Avatar for Web_Sailor

Hi, I am trying to develop an application that has got a Jbutton and allows to search a file and then loads selected line of that file in the JTable. I am able to do that when I hard code it inside the code but when I try to let …

Member Avatar for Web_Sailor
0
133
Member Avatar for Web_Sailor

Hi. I am trying to browse a file and use the path variable in my File code. Both the things are in same class. The problem is that I am getting NullPointerException. Please check if I am doing it correctly Here the code snippet I am declaring [CODE]public class MyClass …

0
54
Member Avatar for Web_Sailor

Hi, I am trying to create a button group which can give me both Jcheckboxes as well as Jbuttons. The problem is that I am creating a button group and not able to fit the checkbox criteria into it. Actually I want to create 2 radiobuttons followed by one checkbox …

Member Avatar for Web_Sailor
0
146
Member Avatar for Web_Sailor

Hi, I am working on creating a jradiobutton group using JTable. Here is a brief definition of the problem. My program gives an output like this:- [CODE] Questions Answers 1 radiobtn1 radiobtn2 radiobtn3 2 radiobtn1 radiobtn2 radiobtn3 3 radiobtn1 radiobtn2 radiobtn3 [/CODE] I am able to set horizontal control that …

Member Avatar for peter_budo
0
510
Member Avatar for Web_Sailor

Hi.. I have 3 JPanels. (one) JPanel contains the scrollpane and the (two) JPanel contains a JButton. I am adding (one) + (two) into (combine) JPanel and then adding to the frame.Now I am really having a hard time align the scrollpane and the Jbutton. scroll pane is coming squeezed …

Member Avatar for KirkPatrick
0
144
Member Avatar for Web_Sailor

Hi. I have a constructor like below whose class extends JFrame. The problem is that my for loop is printing only the last string.( I am using this information ultimately to build a JButton table). Can somebody tell me whats wrong with this ? Below is the code:- [CODE] public …

Member Avatar for masijade
0
104