 |
 |
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|
 |
Hello,
I am wondering if following methods in my script are vulnerable for DOM XSS attack? If yes, what is the best practice to write them. Kindly help if you can guide about it.
1. document.createElement()
2. document.getElementsByTagName()
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Thank you for your time.
Best Regards,
Supriya
|
|
|
|
|
 |
I am really sorry for that. Thank you for the correct group link.
Best Regards,
Supriya
|
|
|
|
 |
Hi,
I have to learn java quickly in real time .
currently i'm not have that much tough in jav platform please advice how to learn
my email address [email protected]
|
|
|
|
|
 |
Is anyone doing Mutation Testing?
It is something I recently discovered and Java has a great tool for it called PIT. I honestly feel it is one of the greatest things since sliced bread but no one seems to really be doing it. The concept has been around since '71 so I am really wondering why it has taken so long to catch on.
|
|
|
|
 |
good luck!!!
modified 4 days ago.
|
|
|
|
|
 |
This is not even a question, but an assignment. We can provide help if you are stuck, but I don't think anyone will adapt it simply out of boredom.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
 |
Hi Experts...
I want to develop an application based on SOA(Service Oriented Architecture).
What is best java solution? my application has a service based core and multiple UI(web, android, desktop and ....)
i study about Spring MVC. Is this framework good solution? Is there any better solution Or Basically is java good tools for such application?
I want to develop my application in modular manner i mean i want to have multiple independent subsystems.
please help me.........
|
|
|
|
 |
It is really not possible to give a definitive answer to such a question, as there are too many unknowns to consider. You need to look at all the different frameworks, and decide for yourself which one appears to be the most cost beneficial for your requirements.
|
|
|
|
 |
what is the best tools can I use it to write Java code for Android Applications
|
|
|
|
|
 |
thank you for your answer .. but if you can sugest version for Androidstudio and from where download it
|
|
|
|
 |
I gave you a link in my answer above to articles which show you how to set up your development environment, how to create your first project etc, etc. Try it, you will learn lots.
|
|
|
|
 |
i've a problem for compiler,because i need a code source java compiler for j2me mobile and my goal is to create an application for mobile who able to compile without computer,thanks for helps.my email:[email protected]
|
|
|
|
|
 |
I have several issues that I cannot figure out. I need to figure out how to ensure that all data is saved in the database. I also need to figure out how to display an order summary and order list. Any pointers in the right directions are appreciated.
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
public class Flooring extends JFrame implements ActionListener{
JRadioButton radioWood, radioCarpet, radioGroup;
JLabel labelName, labelAddress, labelLength, labelWidth;
JTextField textName, textAddress, textLength, textWidth, textCalculateArea;
JButton buttonCalculateArea, buttonCalculateCost, buttonSubmitOrder, buttonDisplaySummary, buttonDisplayList;
JTextArea textAreaSummary;
JTabbedPane tabbedPane;
public Flooring() {
super("Flooring");
tabbedPane = new JTabbedPane();
JPanel panel1 = new JPanel(new GridLayout(5, 2, 4, 9));
labelName = new JLabel("Name: ", SwingConstants.CENTER);
panel1.add(labelName);
textName = new JTextField(10);
panel1.add(textName);
labelAddress = new JLabel("Address: ", SwingConstants.CENTER);
panel1.add(labelAddress);
textAddress = new JTextField(50);
panel1.add(textAddress);
tabbedPane.addTab("Customer", null, panel1, "First Panel");
JPanel panel2 = new JPanel(new GridLayout(5, 2, 4, 9));
radioWood = new JRadioButton("Wood");
radioWood.setBounds(336, 157, 64, 23);
radioWood.setSelected(false);
panel2.add(radioWood);
radioCarpet = new JRadioButton("Carpet");
radioCarpet.setBounds(336, 157, 64, 23);
radioCarpet.setSelected(false);
panel2.add(radioCarpet);
labelLength = new JLabel("Flooring Length: ", SwingConstants.CENTER);
panel2.add(labelLength);
textLength = new JTextField(10);
panel2.add(textLength);
labelWidth = new JLabel("Flooring Width: ", SwingConstants.CENTER);
panel2.add(labelWidth);
textWidth = new JTextField(10);
panel2.add(textWidth);
buttonCalculateArea = new JButton("Calculate Area");
panel2.add(buttonCalculateArea);
buttonCalculateArea.addActionListener(this);
textCalculateArea = new JTextField();
panel2.add(textCalculateArea);
buttonSubmitOrder = new JButton("Submit Order");
panel2.add(buttonSubmitOrder);
buttonSubmitOrder.addActionListener(this);
tabbedPane.addTab("Size", null, panel2, "Second Panel");
JPanel panel3 = new JPanel(new GridLayout(5, 2, 4, 9));
buttonDisplaySummary = new JButton("Display Summary");
panel3.add(buttonDisplaySummary);
buttonDisplaySummary.addActionListener(this);
tabbedPane.addTab("Summary", null, panel3, "Third Panel");
JPanel panel4 = new JPanel(new GridLayout(5, 2, 4, 9));
buttonDisplayList = new JButton("Display List");
panel4.add(buttonDisplayList);
buttonDisplayList.addActionListener(this);
tabbedPane.addTab("List", null, panel4, "Third Panel");
ButtonGroup radioGroup = new ButtonGroup();
radioGroup.add(radioWood);
radioGroup.add(radioCarpet);
radioWood.addActionListener(this);
radioCarpet.addActionListener(this);
getContentPane().add(tabbedPane);
setSize(270,200);
setVisible(true);
}
public void actionPerformed(ActionEvent e) {
if (textName.getText().equals("")){
JOptionPane.showMessageDialog(null, "Must enter name!");
}else
textName.setText(textName.getText());
if (textAddress.getText().equals("")){
JOptionPane.showMessageDialog(null, "Must enter address!");
}else
textAddress.setText(textAddress.getText());
if (radioWood.isSelected()){
radioWood.setText(radioWood.getText());
}else if (radioCarpet.isSelected()){
radioCarpet.setText(radioCarpet.getText());
}else
JOptionPane.showMessageDialog(null, "Must choose flooring type!");
if (textLength.getText().equals("")){
JOptionPane.showMessageDialog(null, "Must enter length!");
}else
textLength.setText(textLength.getText());
if (textWidth.getText().equals("")){
JOptionPane.showMessageDialog(null, "Must enter width!");
}else
textWidth.setText(textWidth.getText());
if (e.getSource() == buttonCalculateArea){
int length, width, area;
length = Integer.parseInt(textLength.getText());
width = Integer.parseInt(textWidth.getText());
area = length * width;
textCalculateArea.setText(Integer.toString(area));
if (e.getSource() == buttonSubmitOrder){
tabbedPane.setSelectedIndex(2);
if (e.getSource() == buttonDisplaySummary){
int flooringPrice = 0;
int cost;
if (radioWood.isSelected())
flooringPrice = 20;
if (radioCarpet.isSelected())
flooringPrice = 10;
cost = flooringPrice * area;
if (e.getSource() == buttonDisplayList){
}
}
}
}
}
}
import javax.swing.JFrame;
public class FlooringTest {
public static void main( String args[] ){
Flooring flooring = new Flooring();
flooring.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
}
}
|
|
|
|
 |
Member 10728667 wrote: Any pointers in the right directions are appreciated. Start by explaining exactly what the problem is and where it occurs. Saying "I need to figure out ...", is not enough. There are plenty of articles and reference pages on database and UI that will explain how to get started.
|
|
|
|
 |
ERROR: doPost(HttpServletRequest, HttpServletResponse) in MyServlet cannot override doPost(HttpServletRequest, HttpServletResponse) in HttpServlet overridden method does not throw SQLException
|
|
|
|
|
 |
goddynk wrote: overridden method does not throw SQLException
What part of that is unclear?
|
|
|
|
 |
You maybe forget to use servlet.api in your project
|
|
|
|
|