peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You been offered help in your previous thread. What is wrong with approach adatapost suggested?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Design multiple panels and pass them on button click to frame for displaying

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I tried to look at it, but the use of Spanish (I presume it is Spanish and not Italian or Portuguese) make it difficult. Add to it over 300 lines of code where one has no chance to find what is which screen, it is long period of time spend just figuring out what is what. If you can get at least methods names to English, it would be different story

PS: Don't want to hurt your feelings, but boasting about being Java developer and then provide this long code and with none comments says you either lying or you not a good programmer... Nothing personal dude

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Would be helpful if you show us how you retrieve data, how you attempt to add it to database and what sort of errors you getting.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Unfortunately no.

I can only recommend good place to start. Book Service-Oriented Architecture with Java Web Services by Mark Hansen. The book should show you how to do it manually, as Mark says

Unfortunately, if you are like me, you may have found the Java Web Services learning curve a little steep. It seems that lots of powerful and complex machinery is required just to deploy a Java class as a Web service or create a simple client to consume such services. Sure, you can get the simple "Hello World" application from the Java EE 5 tutorial to work. However, when you need to deploy your purchase ordering system, things suddenly seem to get much more complicated. Either the WSDL you start with gets compiled into myriad bizarre classes that have to be manually wrapped and mapped into your real purchasing system, or, if you start from your Java classes, the WSDL that gets produced doesn't turn out the way you need it to. If you have been frustrated by problems like these, I sympathize with you.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

JSP stands for Java Server Pages, not JavaScript.
Moving to JavaScript section

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Exact error message for start would be nice...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The problem is that banning doesn't remove their actual posts. Do a site-search for Tipard, and seven pages of results. The thing is they really don't care if they get banned (can simply sign up another nic) so long d their spam remains.

Dunno about 7 pages, found only 3. On these 3 pages only 5 posts haven't been removed (already reported). Rest of them are "soft" deleted, so nobody beside admin has option to view them.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@kaninelupus language dude. You should have reported post if you believe is in wrong place instead of moaning and abusing.

PS: Request is already made

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You did not provided coding for ButtonListener so we have no idea what is happening in background

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thanks a lot.can you explain the hello world sample alone in stepwise description.Am just learning how to do this.i don want larger things and all.

Have look on linked example which I already provided in first post.
Also you can have look at:

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Axis2 is fine if you want to create HelloWorld from WSDL, but building skeleton from something larger need background knowledge as plugin gives you hell of extra bugs. So nothing for newbies for sure.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I just hope you aware that use of frames makes your page more difficult to search for search engines and W3C is actually trying to get rid of them with each release of HTML standards they limiting they functionality more and more...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Good luck, because this is not something you cannot accomplish in one-two weeks. Big teams of programmers spent months on setting this functionality for products like Microsoft Office or Open Office.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

And what do you mean by creating a web service from the wsdl file?

With use of plugin like Axis2 you can take WSDL and attempt to build service from it, examples

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Maybe you can get something useful from here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Option A) Create general action listener for all of them

// helper method that creates panel for buttons
private JPanel createButtonPanel() // returns a Jpanel
{
    // Create button objects
    firstButton = new JButton("First"); // create button object
    firstButton.setActionCommand("First"); // add actionCommand
    firstButton.addActionListener(this); // add Listener command

    nextButton = new JButton("Next"); // create button object
    nextButton.setActionCommand("Next"); // add actionCommand
    nextButton.addActionListener(this); // add Listener command


    previousButton = new JButton("Previous"); // create button object
    previousButton.setActionCommand("Previous"); // add actionCommand
    previousButton.addActionListener(this); // add Listener command


    lastButton = new JButton("Last"); // create button object
    lastButton.setActionCommand("Last"); // add actionCommand
    lastButton.addActionListener(this); // add Listener command


    // Create panel object

    JPanel panel = new JPanel(); // instantiate a new JPanel

    panel.add(firstButton); // add firt button to panel
    panel.add(nextButton); // add next button to panel
    panel.add(previousButton); // add previous button to panel
    panel.add(lastButton); // add last button to panel

    return panel; // return the panel

}

public void actionPerformed(ActionEvent e) {
    if ("First".equals(e.getActionCommand())) {
        //Action for first button here
    }
    else if ("Next".equals(e.getActionCommand())) {
        //Action for next button here
    }
    else if ("Previous".equals(e.getActionCommand())) {
        //Action for previous button here
    }
    else if ("Last".equals(e.getActionCommand())) {
        //Action for last button here
    }
[/code]

Option B) Provide each button with its own listener
[code=Java]
// helper method that creates panel for buttons
private JPanel createButtonPanel() // returns a Jpanel
{
    // Create button objects
    firstButton = new JButton("First"); // create button object
    firstButton.setActionCommand("First"); // add actionCommand
    firstButton.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
            //Action for first button here
        }
    });

    nextButton …
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I have 2 submit buttons in a jsp page. in the form action, i forward the request to a servlet. N in the servlet, i need to write logic for the respective button clicked in the previous jsp and redirect to a new jsp... Kindly help me with this... I am new to jsp n servlets......

If you took care in searching before posting you would found this recent thread

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

command compile : javac -classpath .;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar LoginServlet.java

For the command compile, i got error message as below:
"javac: invalid flag: Files\Apache
Usage: javac <options> <source files>
use -help for a list of possible options"

I was assisting with this, but still I'm puzzled why LoginServlet wasn't compiled. After this failure I asked sven1981 to move servlet-api.jar to Java installation directory (I know I shouldn't do this, but there been reasons). After this desperate act LoginServlet compiled successfully, but still sven1981 received this blasted error when submitted username and password

"HTTP Status 404 - /daniwebtutorial/controller/login
type Status report
message /daniwebtutorial/controller/login
description The requested resource (/daniwebtutorial/controller/login) is not available.
Apache Tomcat/6.0.18"


Ver. Tomcat : Tomcat 6.0
paths to java :C:\Program Files\Java\jdk1.6.0_12\bin;

Anyone have any suggestion what may be wrong?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You need hosting either free or paid (paid was already discussed here not sure about free option).
What you need to upload? Either whole project in WAR or EAR package and deploy it on server, or second option of uploading whole project folder structure through ftp (jsp, html, css, javascript any classes working as servlets, images and anything else on what your project depends; expect server software and database)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry dude. I gave you best advice, but if you insist on using NetBeans there is no helping you...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@ashu_305 congratulation on your program, just shame you are about 4 year too late...

PS: Next step in your messaging service would be perhaps some GUI and use of threads. Good luck

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Android plugin for NetBeans is unreliable and so far I know they still on SDK 1.0. You better of with Eclipse or IntelliJ IDEA as both support SDK 1.5

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Eclipse is always "special" from other IDEs. Have look here .

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Not such problem as long you will show what you did so far as we do have following policy We only give homework help to those who show effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hello mirzanaaz welcome to daniweb. For more info in regards of both languages please visit relevant forum sections C++ here and C here. You can ask your questions here, but before you do so please have look on sticky post/read me, on top of each forum, 6 for C++ and 1 for C and see if some of your questions can be answered that way.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What's a tombol?

Take it as a quiz

how about question number 1,i want active a tombol in condition, i have condition in panel a,if is true tombol in panel b is active!for easy
e.g : 5 question and 1 tombol in panel a!if 5 question true(check by tombol a) tombol in panel b is active!thanks for answer relative path!

What would be good idea to do is have main panel to which you can pass a component (in your case another panel) to dynamically set&change. So at the start you pass to this main panel your panel with questions. I'm not sure if you have some sort of submit button or you just run a check on any input components (check box, radio button, drop down) for change of state, but either of them would have some sort of mechanism to say "hey all answers correct" in which case you should pass to main panel your "winner" panel

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
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Please provide your code so we can see what you did so far

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

Would you consider to create daniweb group on twitter?
That way you could easily make quick updates in regards of any site changes, server downtime etc.

If there is already group please provide url.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You should add the wav file to your NetBeans project, instead of providing absolute file path, and once JAR file created this would be included as part of your application

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Servlet validation is showed in sticky post on top of this forum section JSP database connectivity according to Model View Controller (MVC) Model 2 , for JavaScript examples you should ask in JS section of the forum

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Do it this way java+sftp+tutorial ;-)

There been few complains from users about this approach so I keep it simple

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Wrong approach. This forum is about you coming here and asking specific questions and not requesting "baby-sitting" service. So please start working and come back with more concrete questions.
Good starting pint would be find out what sort of data you wish to store in database and how should they be organized...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Obviously you just used it for single purpose and that is provide argument for query. If you store it, you could return it to next page with search results

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Two basic options

  1. Submit data to servlet for validation (full check as in regards is there any input, is the input in correct format and do the data match with whatever is in database - in case of login action)
  2. Use JavaScript traditionally used for just general check if the fields are filled and correct format (number of characters and no forbidden characters), option selected. You can also do DB connectivity, but you will need AJAX
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Googling might help. I found a free pdf library called IText.

You can find it here

Hopes this helps.

Grtz,

Congratz on discovering and reposting what was already recommended...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

iText free Java library for converting number of document types, or you can go for JasperReports (however I think this is just enhanced version of iText)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i need the database schmema of hospital managment system, the jpg of the ERD

And you been asked to provide what you done so far...

There is rule on the forum which goes as We only give homework help to those who show effort

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hello dear please i need a jpg of the database schema,

  1. Please create new thread
  2. Do not forget attach what you did so far
  3. Closing down this thread to avoid more of request for full solution instead of trying to do it in first place
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sir i am dumb and i really dont understand that much coding

whatever code i have posted na , in that u make changes and give sir please. I am trying for this from yesterday

If you are not interested in reading and trying out already provided suggestion what is then point of this? You just wasting someone time while trying to help you.
And as you already said "sir i am dumb and i really dont understand that much coding" there is no hope to help you if you not willing to cooperate...

PS: Any other forum flooding with same question would be removed and treated as repated rule breaking act

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@anuj576 I just joined all 3 post to related same JavaScript question. In the future DO NOT create new post just because you want to provide new info, stick to original thread and just post there with new updates

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Closing down multi-post. Please read forum rules, forum flooding is not welcome. Stick with original post and update it.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Nice to hear that.
Shame she did not asked you earlier she could save some money...