peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You will always need web.xml for few things. If face-config.xml support navigation rules you may try to rewrite it, but unfortunately I cannot be of any assistance because I did not use JSF as yet.
If you succeed please post it on forum for others to see it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you have ideas for project put it in writing on our forum and we will try to help. Targeting members to help you is unwelcome practice. So if you wish to continue discussion please start new thread so we can forget this inappropriate start.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The plus in query uid='"+userName+"' is part of Java as you are building SQL query from simple string. The value provided between single and double quotes and plus is a value that you either retrieved from user or received by previous computation. Consider it as small plus point on the list why to use PreparedStatement instead of basic query

As for second problem I have no idea as you neither provided log file as suggested to look into by error message, neither you provided relevant code with pointing which section is working and where you getting error

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hello dude ,
If u have finished the project can u help me with it ..im doing a same kind of project and i have got few idea so willu help me with it ..the reply to my mail <EMAIL SNIPPED>

Sorry kid this is no "give me solution" service for lazy students. You better to bring in something for discussion or nobody will take interest in your demands

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want to be able filter spam messages you need to have application that is running on background, can be triggered by device operating system and starts automatically with mobile device is turned on.

Java Microedition application, MIDlet, is not capable of running on background, application is on most device events be default paused. There is very little about listening to operating system events, mostly everything is querying. And as I said before, there is no way to start MIDlet automatically on device start up.

So arrive of SMS will push your application to paused state from which you can call your application back and run it on received message to determinate if it is spam. However by doing so you already lost the opportunity to do it quietly without user know it and user have to trigger the action.

You can still try to develop such application as it is possible, but you will give up on main idea and this for me is unsuccessful project with wasted time and resources. Sorry...

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

OK, it is actually simple. In command line you just call "say" and provide what ever you want to say and Mac OS will do it. So like "say daniweb" and it will say daniweb. If you happy do it manually then type in command line else use any programming language to get you command line programatically and pass a string as parameter for the "say"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can not achieve this with Java Microedition as you cannot run your application on top of device OS. Because of that you will not able to intercept incoming SMS and filter it out.
You can try to find out work around for Symbian, but JME is "no way". (There is slight possibility for Android device as you can make you application run automatically on start up and be triggered by event, but I cannot give any insight on it as I'm not so deep in it)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So far as I'm concerned this is not possible. SIS files are for Symbian devices written in shrewd C++ of Symbian, where JAR is way to distribute Java Microedition files for any Java enabled devices.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is Mac library or utility that is capable to do so. At this point I do not know much about it (only heard of it), but tomorrow I may know more when I speak to our "Mac guru"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Put your code in ZIP/RAR and upload it with next post so I can have look what is going on. The above is not standard behaviour.

PS: To attach document to post you need to be in Advanced Editing mode (click Go Advanced button bellow editing area) and the when you scroll bellow you will see Manage Attachments. Through this you can attach it

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I guess that specifying what language you using and what you trying to do with that output would be generally good start...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@soumali12345 what a splendid idea to mix ASP with JSP

PS: that link is not leading to tutorial but some general search result

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can start here and here then continue with search

PS:Bluetooth for Java by Bruce Hopkins, Ranjith Antony and Beginning J2ME: from novice to professional by Sing Li, Jonathan Knudsen are worth to look into

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Simple google search can get you numerous resources like Pager Tag Library v2.0 references and there are many others

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Never used GlassFish before, but I got this book from friend Java Ee 5 Development Using Glassfish Application Server by David Heffelfinger. There are some examples of how to write web.xml so will see what I can come up with...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

EDIT: wrong answer, sorry

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

It is unlike event you will trace who did it as IP masking and other techniques imply, but if you drop question in appropriate forum section you may learn how to improve your security. I think best point would be start with server technology used (Apache, Apache Tomcat, IIS) to get i t fixed first and then maybe fix some odd security lay-backs in underlying OS

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Linked tutorial is 7 years old so if high-end devices used that time are now more likely out of stock and not used any more. Any of current low-end devices can do more then these "high-end".

As for your problem you need to provide better explanation as only thing I understand is you want to provide similar functionality which is easily done with the help of the tutorial.
I have no clue what you saying about multiple MIDlets as there is only one MIDlet that is running requests through HTTP to connect to servlet in order to retrieve data from database.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
  1. Please use full sentence English, chat speak is not welcome
  2. If you do database connection through JSP then that is bad
  3. your SQL query is malformed
  4. have look on the post on the top of JSP section for general idea about querying database
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Yes you can possibly get this sort of info, but only when you specify what mobile platform you wish to use (Java Microedition, Symbian, Windows CE, Android, iPhone)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

JCreator

Configure >> Options >> JDK Profiles

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In Window Explorer go View >> Toolbars >> Address Bar (sometimes it is good to first unlock with Lock The Toolbars and when Address Barr is visible lock it back)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Get a copy of Head First Design Pasterns and you have get plenty of ideas, beside you may learn something new by reading it too...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Head First Servlet & JSP or any other decent material on Java web development will explain it all

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

you can go here"http://www.jasonlam604.com/v2/index.php?action=tipshints"...
here you may get help...

That is exactly what I warned about. Code snippets, with zero explanation, you have zero idea what you doing. On top of that any networking activity requires use of Threads which above website doesn't show.
My rating for you on provided resources, out of 5 stars you only get half star for attempt to search...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no JSP username or password there are user data that are commonly stored in database. If you want password to expire after certain period of time you should store in your database information about time when password was created. Then have routine to check every password creation and determinate these that are about to expire and send warning email to user plus check for these that expired and presumably reset them.
This can be done with servlets and DB communication, but for sure I would l wouldn't use JSP as long there is nothing to present for seeing

PS: If something is urgent to you it doesn't meant to be urgent for us. We have our own life to go through so do not urge us, it is rude.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Welcome to daniweb.

As for term Android OS it is name as any other of Linux or Unix distro on the shelf - Ubuntu, Mandraka, Red Hat etc

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

hi friends. I am hansal.
I want to create a .jar application for java based mobile. can any one help me out with this...

Any IDE with general WTK will do it for you automatically.
So what you using?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I do not know, I do not use it...
Try to find out more here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There been some issues with classpath associated with file extension under Windows when you had to swap it from JRE to JDK or vice-versa to get it working with double-click, sorry cannot remember exactly

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry I just realised what stupid thing I posted.

Here is what you been looking for. Simple example

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
    <title></title>
  </head>
  <body>
  	<form method="POST" action="controller">
	  	<table>
	  		<tr>
	  			<td>Record 1</td>
	  			<td><input type="submit" name="123" value="Edit" /></td>
	  			<td><input type="submit" name="123" value="Delete" /></td>
	  		</tr>
	  		<tr>
	  			<td>Record 2</td>
	  			<td><input type="submit" name="234" value="Edit" /></td>
	  			<td><input type="submit" name="234" value="Delete" /></td>
	  		</tr>
	  		<tr>
	  			<td>Record 3</td>
	  			<td><input type="submit" name="345" value="Edit" /></td>
	  			<td><input type="submit" name="345" value="Delete" /></td>
	  		</tr>
	  	</table>
	  </form>  
  </body>
</html>
import java.util.Enumeration;
import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServlet;


public class Controller extends HttpServlet{
	
	public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException
	{		
		Enumeration en = request.getParameterNames();
		while(en.hasMoreElements()){
			String name = (String) en.nextElement();
			System.out.println("Retrieved name is "+name);
			
			String value = request.getParameter(name);
			System.out.println("Value is " + value);
		}
	}
}

Basically in name attribute you will pass ID of the item you want to manipulate. In your servlet because you do not know what name will pop-up you need to query for list of the names (this will be only one as you working with buttons and not radio or check boxes) that has been submitted. Once you have them loop through list get the name of attribute used and based on that query about action to be taken. The above is just crude example that need to be fine-tuned, but I hope you get idea

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Then use AJAX capability of database connectivity

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You better to ask this question on Nokia developer forum, I have no answer for it, sorry...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In the future please search before you post, your question is more likely already been asked and also answered like now here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
<input type="submit" id="<%= t.getID %>" name="actionCommand" value="Edit" />
<input type="submit" id="<%= t.getID %>" name="actionCommand" value="Delete" />
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No. And if you love Visual Studio so much you can use it instead of NetBeans (just do not mention it in front of other developers)

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

Leave JSF till you get good understanding of JSP and servlets

When you getting errors please post them toether with any code they reference to...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ceyesuma: Your question is confusing, if you have problems to link MySQL with NetBeans have look at this tutorial else please provide better explanation

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

send me any resourceful info u have on JAVA to (iclaat@yahoo.com) n I'll be sooo greatful.

  1. Edit you post and remove email address it is against forum rules
  2. On the top of the forum there is a link Starting "Java" [Java tutorials / resources / faq] where you find numerous resources
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Did you downloaded that driver and included in your project?

PS: Try to avoid using excessive of scriplets and DB connection should be managed through servlet called class

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Start in MIDlet

private Display display;

public void startApp(){
    if(display == null){
        display = Display.getDisplay(this);
    }
    display.setCurrent(new StartCanvas(this)); // "this" stands for MIDlet
}

StartCanvas

public class StartCanvas extends Form implements CommandListener{

    private MyMIDlet midlet;
    private Command nextCanvas;

    public StartCanvas(MyMIDlet _midlet){
        super("Start Canvas");
        midlet = _midlet;
        TextField tf = new TextField("User name", "", 25, TextField.ANY);
        append(tf); 
        nextCanvas = new Command("Next", Command.SCREEN, );
        addCommand(nextCanvas);
        setCommandListener(this);
    }

    public void commandAction(Command c, Displayable d){
        if(c == nextCanvas){
            Display.getDisplay(midle).setCurrent(new MenuCanvas(midlet));
        }
    }

MenuCanvas

public class MenuCanvas extends Form implements CommandListener{

    private MyMIDlet midlet;
    private Command nextCanvas;

    public MenuCanvas(MyMIDlet _midlet){
        super("Menu Canvas"); 
        //REST OF THE CODE
    }
}

Be aware that if you do any heavy computing, networking or local file connection or PIM usage you need to use threads for it and moving from screen to screen more complex

Let me know if there are any errors, I writing this sort "on fly"

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you placed system call already in servlet when you query about parameters sent to servlet you would find out that ID is actually never passed.

Each of your submit buttons should have the item ID associated with them. Use "id" parameter that is available for most html tags to give them item ID which will be passed on submit (check out standard attributes).

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hey not sure if your still active on this forum but i was wondering if you could help me out i am currently in development of my own puyo puyo game and i could use some help if you can please reply back thanks.

Help can be given if you start talking in specific terms, however I do recommend that you start new thread and leave this relic

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Can you please explain what you trying to do in your startApp() method?
I see you are creating two instances of two classes and then you call first one. However both instances are missing type declaration at start. Secondly from MIDlet you either want to

  • all a class that extends any of Screen sub-classes and call it on MIDlet start
private Display display;

public void startApp(){
    if(display == null){
        display = Display.getDisplay(this);
    }
    display.setCurrent(new StartCanvas(this)); // "this" stands for MIDlet
}
  • or you should declare and initialize inner class and show this directly from MIDlet (most example of internet start like this because they mostly show only one screen)
private Display display;

public void startApp(){
    if(display == null){
        display = Display.getDisplay(this);
    }
    Form form = new Form("My Form");
    
    TextField tf = new TextField("User name", "", 25, TextField.ANY);
    form.append(tf);
    display.setCurrent(form);
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dunno why you want to take old 9 exam when there is 10 available and even this is expected to be soon replaced by version 11. Have look at Oracle university for relevant materials

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