peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Putting anything in default Java installation directory is bad idea. If you creating just simple application you can keep JAR file in same directory as your source code for easy compiling. However while working on something larger you should set up special folder for any external resources ("lib") and either manage linking to your project through IDE or with Ant or Maven configuration files (which IDE basically does for you on background).

Your mistake as already pointed was in use of incorrect connection string that should be

//Pseudo code
jdbc:mysql://<HOST>:<PORT>/<DB>
//Example code
jdbc:mysql://localhost/danijsptutorial
//or with port number if database uses other then default port
jdbc:mysql://localhost:3306/danijsptutorial

Examples of connection string for other databases can be found here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Take a look at this tutorial - http://itextdocs.lowagie.com/tutorial/objects/index.php

Good link, but this useful only if you are creating document from scratch. In above scenario getting documents settings from document together with context is essential. So Apache POI would be more relevant

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sourceforge.net

PS: I would recommend you read forum rules as with your post you asking for warning/infraction in regards of font colour as "Avoid using an excessive amount of [bbcode] to alter font styles or to draw more attention to your post."

Rashakil Fol commented: Considering he's the OP and considering that people clicked on the thread link, there's nothing wrong with redundantly drawing attention to his post. +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Global declaration of for loop variable "pos" will for sure create numerous issues in more complex application, so local declaration inside the for loop is better to use
  2. You missed the point of this forum, people should learn by trying things rather then be given solution for copying
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

getDate() method returns Date object type so forcing it into String will obviously kick errors...
so you should just simply do d3 = rs.getDate(5);

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sourceforge.net has plenty of abandoned projects

Ezzaral commented: Definitely! +9
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1. Full sentence English is expected when you post on this forum, it is part of the rules which I'm sure you already read
2. Sorry I already provided valuable tips what may get you better marks, gave you list of technologies that are not commonly used. Now you even want my ideas so you can sell them as your own? Sorry, I did my best to steer your interest and make you think what you can achieve with these technologies, but it seems not working. You can come back and we can discuss your ideas when you get some. Till that time, happy brainstorming...

notuserfriendly commented: well said +3
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You know that you just started one of these "never ending stories" (pointless discussions in my view as you shoudl try and find your preferred IDE ) what is best?
It is like who has best best national football team? Who is best in cricket?

I have to admit that I liked JCreator while I was studying as it forced me to look in numerous errors that other advanced IDEs would warned me in advanced and let me seek solution to them. So whenever beginner will ask what to use I strongly encourage to either use command line or JCreator.
Unfortunately JCreator is not suitable for professional development. It doesn't stand chance against tools like IntelliJ IDEA (my choice), Eclipse or NetBeans. So there you go...

tux4life commented: Exactly! +6
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Remove "<Student>" from ValidRecords class opening, problem solved...

package Assignment;

import java.util.*;
/**
 *
 * @author Nigel Novak
 */
public class ValidRecords {

    // Class Fields and Constants Follow
    private ArrayList<Student> list;
    private int sortOrder;
bentlogic commented: lightning quick solution; wish i'd emailed Peter earlier! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any closer specification of interest?

  • desktop development
  • web development
  • mobile development
  • interest in any of the frameworks
  • interest in any of other technologies supported by java
  • any personal interest where you think you could develop something you could use on daily/often bases
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

OK, everybody agrees we need Java web development where to start thread. I'm not sure if I will be able to start working before end of the month, but hopefully by middle November something should be up. So watch JSP section :)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What you are trying to do is called mapping.
You have table 1 with info on photos and table 2 with info on various photo types. You will create table 3 that will have two entries per record and it will be photoID and photoTypeID.
So once you have request to show all landscape photos you query table 2 of photo types to get ID of landscape type. Then you can query mapping table to get you information on ID of photos associated with this type of photo and with result from this you can pull data from table 1 on selected photos.

ana.gr commented: it helped +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
jasimp commented: Hehe. Forgot that step ;) +6
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need to pay closer attention to opening and closing of brackets. See bellow code (the code still will not compile and throw some errors which you need to solve)

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;

public class Calculator extends JFrame implements ActionListener{

    private JTextField displayText = new JTextField(30);
    private JButton[] button = new JButton[16];

    private String[] keys = {"7", "8", "9", "/",
    "4", "5", "6","*",
    "1", "2", "3", "-",
    "0", "C", "=", "+"};

    private String numStr1 = "";
    private String numStr2 = "";

    private char op;
    private boolean firstInput = true;

    public Calculator () {
        setTitle("Calculator");
        setSize(230, 200);
        Container pane = getContentPane();

        pane.setLayout(null);

        displayText.setSize(200, 30);
        displayText.setLocation(10,10);
        pane.add(displayText);

        int x, y;
        x = 10;
        y = 40;

        for (int ind = 0; ind < 16; ind++) {
            button[ind] = new JButton(keys[ind]);
            button[ind].addActionListener(this);
            button[ind].setSize(50, 30);
            button[ind].setLocation(x, y);
            pane.add(button[ind]);
            x = x + 50;

            if ((ind + 1) % 4 == 0) {
                x = 10;
                y = y +30;
            }
        }

        this.addWindowListener(new Window Adapter()) {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        }
    };

    setVisible(true);

//}

    public void actionPerformed(ActionEvent e) {
        String resultStr;

        String str = String.valueOf(e.getActionCommand());

        char ch = str.charAt(0);

        switch (ch) {
        case '0' :
        case '1' :
        case '2' :
        case '3' :
        case '4' :
        case '5' :
        case '6' :
        case '7' :
        case '8' :
        case '9' :
        if (firstInput) {
        numStr1 = numStr1 + ch;
        displayText.setText(numStr1);
        }
        else {
        numStr2 = numStr2 + ch;
        displayText.setText(numStr2);
        }
        break;

        case '+' :
        case …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

DaniWeb Digest online copy is not available. If you click on the link from email you get message "An issue of our newsletter doesn't exist for this day."
Also where can we found link for previous Digests that been previously located at the bottom of the page?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@cwarn23 are you sure you do not have any messages in Sent Items?
Whenever you send personal message if check box bellow post editing area is left checked you get copy stored in your Sent Items.

cwarn23 commented: Great information! +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Just two more things

  • There is java2s.com site which hold number of examples, but no real tutorials with proper explanation - good for quick referencing
  • Also I found this book JDBC Recipes: A Problem-Solution Approach (limited preview through google books) which is targeting MySQL and Oracle. Seems to be interesting reading
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You cannot throw exception on class. You can make class throw exception with use of try catch block (often followed by finally)

Scanner inFile;
    try{
        inFile = new Scanner(new FileReader(infile));
    }
    catch(FileNotFoundException e){
        e.printStackTrace();
    }

or directly from method

public Scanner getBook() throws FileNotFoundException{}

but then you will need to catch possible exception on the receiving which is supposed to receive Scanner object back from getBook() method.

So remove exception from class header and handle it by one of the above ways.

PS: Also I'm not sure what you trying to do on line 17&18. Are these just some de-relics from past or are they have so other purpose?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have no idea what I'm looking for as I do not see any use of outFile.print(); or PrintWriter outFile = new PrintWriter(outfile); However what I see here is intentionally another problem

public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = new Scanner(System.in);

	//Constructor
		public Address(String st, String ct, String sta, String zp)
		{
			String street = st;
			String city = ct;
			String state = sta;
			String zip = zp;
		}
		Address()
		{
		}

Even though you declare global variables street, city, state, zip these are never initialized because you create another identical set inside your constructor. This is called shadowing and it happens when you redeclare a variable that’s already been declared somewhere else. The effect of Shadowing is to hide the previously declared variable in such a way that it may look as though you’re using the hidden variable, but you’re actually using the shadowing variable.
So the above should be corrected either by removing type declarations inside constructor or use of setter methods

public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = new Scanner(System.in);

	//Constructor
		public Address(String st, String ct, String sta, String zp)
		{
			street = st;
			city = ct;
			state = sta;
			zip = zp;
		}

		Address()
		{
		}
public class Address
{
	//Declare variables
	String street;
	String city;
	String state;
	String zip;
	String phone;
	static Scanner console = …
BestJewSinceJC commented: good response +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is simple example of static image to be displayed as logo on the start-up/splash screen.
This can be improved by creating animation out of series of images or use of flash file through Project Capuchin library.
As for location of image file this was placed in new folder called "res" as resources. The folder is on same level as "myProject" folder that holds Java classes. If you decide to have "res" folder placed inside "myProject" folder then image path will be /myProject/res/IMAGE_NAME ProjectMIDlet.java

package myProject;

/**
 * Created by IntelliJ IDEA.
 * User: Peter
 * URL: [url]http://www.peterscorner.co.uk[/url]
 * Date: 02-Oct-2009
 * Time: 17:40:55
 */

import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.Display;

import myProject.screens.SplashScreen;

public class ProjectMIDlet extends MIDlet{

    public String ti;
    public String entrydate;
    public String result;

    private Display display;


    public ProjectMIDlet() {}

    public void startApp() {
        if(display == null){
            display = Display.getDisplay(this);
        }
        display.setCurrent(new SplashScreen(this));

    }

    public void pauseApp() {}

    public void destroyApp(boolean unconditional) {}

}

NextScreen.java

package myProject.screens;

/**
 * Created by IntelliJ IDEA.
 * User: Peter
 * URL: [url]http://www.peterscorner.co.uk[/url]
 * Date: 02-Oct-2009
 * Time: 17:56:08
 */
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

import myProject.ProjectMIDlet;

public class NextScreen extends Form implements CommandListener{

    private ProjectMIDlet projectMidlet;

    public NextScreen(ProjectMIDlet projectMidlet){
        super("Next Screen");
        this.projectMidlet = projectMidlet;
        init();
    }

    private void init(){
        StringItem si = new StringItem(null, "Next Screen");
        append(si);
    }

    public void commandAction(Command c, Displayable d){}
}
majestic0110 commented: Great :) Nice snippet! +6
jasimp commented: Dani would be proud, you tagged it wonderfully :) +12
justM commented: Helped me twice on this +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You are not paying attention to your tags formatting, if they have all double quotes as need it, if the tag is correctly closed and if they are in right order

<html>
<head>
<title></title>
</head>
<body>
  <form name="frm_details" method="post" action="mailto:someone@hotmail.com"> 
     <table border="1" width = "100%">
      <tr>
        <td>Name</td>
        <td><input type="text" name="name" size="30"/></td>
        <td>ID</td>
        <td><input type="text" name="Id" size="25"/></td>
      </tr>
      <tr>
        <td>Password</td>
        <td><input type="text" name="password" size="30"/></td>
        <td>Address</td>
        <td><textarea cols="30" rows="2" name="address"/></textarea></td>
      </tr>
        <td>Sex</td>
        <td><input type="radio" name="sex" value="male"/>Male
            <input type="radio" name="sex" value="female"/>Female 
        </td>
        <td>Marital Status</td>
        <td><select name="marital status" size="1">
            <option value="Single">Single</option>
            <option value="Married">Married</option>
            <option value="Divorced">Divorced</option>
            </select>
        </td>      
     </tr>
     <tr>
       <td>Phone</td>
       <td></td>
       <td>email</td>
       <td><input type="text" name="email" size="30"/></td>
     </tr>
    </table>
    </form>
</body>
</html>
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would like to know if people would be interested in participating building similar starting thread like we have in Java section Starting "Java" [Java tutorials / resources / faq], but targeting Java web development.

This thread would hold resources (where to get the things, configurations, basic usage and any tips&tricks) in regards of servers (Tomcat, GlassFish, JBoss, and others), databases (Oracle, MySQL, PostgreSQL, HSQLDB, and others) and available web technologies(servlets, Java Server Pages, Java Server Faces, JavaServer Pages Standard Tag Library and others).

Additional comments are welcome.

kvprajapati commented: Good suggestion. +18
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You did not added menu bar to your frame setJMenuBar(JMenuBar menubar)

majestic0110 commented: Beat me to it! :) +5
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Problem solved with use of Commons IO API, time for more XML n00bing

private void readFileAsString(String filePath) throws
java.io.IOException {
        StringBuffer fileData = new StringBuffer(1000);
        BufferedReader reader = new BufferedReader(new
FileReader(filePath));
        char[] buf = new char[1024];
        int numRead = 0;
        while ((numRead = reader.read(buf)) != -1) {
            String readData = String.valueOf(buf, 0, numRead);
            fileData.append(readData);
            buf = new char[1024];
        }
        reader.close();
        System.out.println(fileData.toString());
    }

PS: String in method parameter received need to be obviously replaced by InputStream, you got the idea hope...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received.

public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
        ServletInputStream sis = null;
        try {
            sis = request.getInputStream();
        }
        catch (IllegalStateException e) {
            e.printStackTrace();
        }
        if (sis != null) {
            print(sis);
            sis.close();
        }
    }

    private void print(ServletInputStream sis){
        java.io.BufferedReader br = null;
        try{
            br = new java.io.BufferedReader(new java.io.InputStreamReader(sis));

            StringBuilder sb = new StringBuilder();
            String line = null;

            while ((line = br.readLine()) != null) {
                sb.append(line + "\n");
            }

            br.close();
            System.out.println(sb.toString());
        }
        catch(IOException e){
            e.printStackTrace();
        }
    }

To test this I use curl utility to pass file to url as

curl URL --data-binary @FILENAME -H 'Content-type: application/atom+xml;type=entry'

However content of the file is not printed, only new line is added which means process get to this sb.append(line + "\n"); command.

Any advice is welcome.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Few things for start

  1. I split your single file of nearly 600 lines into multiple files as they should be organized
  2. in Java Microedition there is no String method as equalsIgnoreCase() please follow JME API more closely or you can write such method for your self, it is not difficult.
  3. Provided URL for connection is not working so you better set it up before you do anything else (few tips in configuration of your server and PHP can be found here on Sony Ericsson, I never try it so I cannot comment. However my preference would be to use Java enabled server so I can talk to servlet directly then messing around with some other web implementations). Because of the issue with URL not being set up I couldn't test this application any futher

MIDlet - MyProject.java

package myProject;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

import myProject.screens.LoginScreen;

public class MyProject extends MIDlet{

    public String ti;
    public String entrydate;
    public String result;

    private Display display;


    public MyProject() {

        /* Calendar logincalenda = Calendar.getInstance();
        logincalenda.setTime(new Date());

        int monthc = logincalenda.get(Calendar.MONTH) + 1;
        int datec = logincalenda.get(Calendar.DATE);
        int yearc = logincalenda.get(Calendar.YEAR);

        String entryDate = "" + yearc + "-" + monthc + "-" + datec;
        curdate.setString(entryDate);

        int h = logincalenda.get(Calendar.HOUR_OF_DAY);
        int m = logincalenda.get(Calendar.MINUTE);
        int s = logincalenda.get(Calendar.SECOND);
        String thetime = (h < 10 ? "0" : "") + h + "." + (m < 10 ? "0" : "") + m + "." + (s < 10 …
majestic0110 commented: Making it count ! +5
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You are missing missing "static" keyword in main method public static void main(String[] args)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Recommended reading Kicking Butt with MIDP and MSA: Creating Great Mobile Applications or Beginning J2ME: From Novice to Professional, or I should say must to read for any of you who wish to start Java mobile development.
Or try to follow any of the numerous tutorials on the internet, but then you are running risk of copy&paste syndrome where your code will be working but you have no clue what is actually happening inside your code, google search

Salem commented: Excellent collection of info +36
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Stephen you forgotten my favourite IntelliJ IDEA ! ! !

@MxDev If you make me angry I will do it through simple text editor and command line

stephen84s commented: Eeeps sorry about that :P +10
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hi m also going fir the same project...
can u tell me which software r u going to use for image processing

Software???
More likely programming language and any additional libraries or plugins

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Closing down this thread as it is getting wrong attention.
If you want forum build from ASP.NET then use Google to search for it

Salem commented: Keepin' those "me too" drivebys parked on the side roads ;) +36
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Bluetooth, InfraRed (OBEX) or traditional HTTP/HTTPS.
As you want to do later publish last option would be most suitable

majestic0110 commented: Great to see you are still an avid helper ! Been away for a while but I am back now ! +4
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Awwwnn, political topic. You may get more attention with global warning and what everything America does or not improve the situation...

Tamari commented: Hi +0
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy.
With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.).

Kevingon commented: Excellent tip :D +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

3 threads merge together. Please do not flood forum with same question, simply reply to already existing thread with new updated informations!

kvprajapati commented: Thanks! +13
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

All 3 IDEs that I mentioned are very good. My preference is IntelliJ and I do not like Eclipse (GUI seems to be messy and configurations are over done, too many options equals too many chances to get something wrong). NetBeans is somewhere between these two...

kvprajapati commented: I agree. +11
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Plain text is OK if you looking for management of small amount of data and not necessary structured/organized. For the above task database would be suitable and I would go for serverless/embedded database like JavaDB, HSQLDB or SQLite then MySQL that need server installation as it gives you mobility

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm sorry if you feel offended by comment, but please understand that we go through hundreds of post daily to ensure that forums goes by desired rules which is not easy task.

PS: Gentlemen if you find some post offending or breaking forum rules please feel free to hit "Flag Bad Post" link next to the post and report it with a short explanation.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Ooops size() was incorrect it should be lenght().

Did you attached ItemStateListener to TextFields?

As I said this

public void itemStateChanged (Item item) {		
		if (item instanceof TextField) {
			String teste = ((TextField)item).getString();
			if (teste.size() > 0) {
				recordOK = true;
			}
		}

can be replaced by simple validation method such as

private boolean validation(){
    if(name.getString().length() > 0 && telefone.getString().length() > 0){
        return true;
    }
    return false;
}
Nathan Campos commented: Thanks very much!!!! +1
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

>that some couple getting married

Agree; marriage is surely a crazy thing! :-)

Are you talking from personal experience? ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

All the digits in a row, lunchtime today :)

Read somewhere in the news papers that some couple getting married at that time. Crazy :twisted:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

To put everybody mind in peace here is your "why essential, but what about Ramy and Scott".

I made nomination of essential for featured poster which was approved. My reasons to do so? In very short period essential is here, he become great asset. Most of his post (some 3/4 of all his posts) are supported by coding to help with issue or provide an example on which to explain suggested approach. There is no moaning or making fun of poster, essential is straight to the point.
I do not care how long you here, how many posts you made and if people giving you reputation points. What I care is what you post and is it helpful. Do this and you can be next nominee.

So do not blame dani or davey for not knowing who is good in what, as they cannot spend whole time looking on quality of posts in every forum section.

Nick Evan commented: Hell yeah +24
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

m2 required same criteria dude, if u get that post immediately plz

Well then get started as we love our forum policy about We only give homework help to those who show effort. If you come up with something please create new thread.

Closing down this thread as it is getting attention of "me too posters".
I was able to work out this assignment. Why don't you try same?

Salem commented: For the mod wh's not afraid to use the padlock - some soylent green :) +36
Nick Evan commented: What have you done? Me 2 needz tha kodez ;) +22
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

This thread was good while it last, but it is starting to get attention of spammers therefore I will close it down.

Salem commented: For the mod who closes pointless threads with the "me too" bumpage +36
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Threads locked as people only demand solution instead of actually trying to work it out.

Salem commented: Kudos to the mod who actually closes all these loser "gimme project" threads :) +36
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Make a data class with methods for the varying actions that might taken on the PDFObject and give it also an addListener and fireEvent methods. The "Panel" class to display the PDF will be added as a Listener to the data object so that it can actually display everything that changes. Then I would make an abstract class with varying methods for calling the "data" methods and I would make all of my swing listeners extend this class. Those swing listeners then simply need to call the method from the abstract class which will then call the "data" method.

If you wanted to be complete, you would have the normal Swing and listeners running in the main (and of course event thread), the "panel" class in another thread (using invokeLater, or invokeAndWait to display the changes), and the "data" class in a third thread, with a synced queue between the listeners and the "data", and use wait/notify between the "data" and the "panel" classes.

Sorted!

Well I had small help from Eric Freeman , Elisabeth Freeman, Bert Bates, Kathy Sierra and their chapter 2 in Head First Design Patterns ;)
With your advice I came very close to my current deployment that was little adjusted after reading that chapter from the book.

Thanx masijade

masijade commented: Congrats +15
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

For start yo can have look at Iternationalization. I'm not sure if this will be best solution for you, but as previously mentioned you can create "property" files with localization for given languages (you can have look at Pebble bloging application, where these files are stored in TOMCAT_DIR\WEB-INF\classes).

If this info is not enough please create new thread in Java section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sorry mate.. basically wanted to give the font a color and cud only find red flavor in the pull down..

I understand your point.. Looks like Daniweb is a site of morons..
Bye Bye Daniweb ...

If we are what you said we are, we are still better of as we are willing to learn and help each other, rather then cheat like you. One nice day your lies will catch up with you and there will be no escape.

iamthwee commented: harsh and true +23
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I'm not database expert but simple design can be break down to

  • student [studentID, name, DOB, address]
  • modules [moduleID, module_name]
  • module_mapping [studentID, moduleID]
  • modulID_exam [questionID, question, answerA, answerB, answerC,theAnswer]
  • modulID_exam_answers [studentID, questionID, answer, pointsAwarded]

You can build on this and expand, but that is your job. You need to prove you learned something and not waste your and your teachers time...