Jump to content

Samurai Edge

Premium Members
  • Posts

    707
  • Joined

  • Last visited

Posts posted by Samurai Edge

  1. Here's my opinion.

    1) Try making the review section more attractive.

    2) We can make a tutorial section that teaches noobs how to get some harder emus to work. Take me as an example. When I first tried Chankast, I can't get it work until Agozer helped me. So, maybe we can have our members writing guides to attract pros and noobs. I believe PS, PS2, DC, DS emus are not that easy to noobs, especially when you need to burn, rip, mount CDs.

  2. I don't really know the name, only thing I know is it's either in NES and/or SNES where you are a yellow tank (player 1) or a green tank (player 2) and your mission is to kill all AI tanks to win a round. They are brown colour bricks which you can shoot and break, while white bricks cannot be break.

     

    Anyway, just suddenly felt like playing it, but just don't know the name of the game.

  3. I think that must be the most "powerful" earthquake in history since it spoil some marine cables causing different people in different part of the world having difficulties in accessing web sites across the world. Just wondering, anyone had any problems? For me, I can't access a lot of sites yesterday.

  4. I need to "know how to have more than 1 button in 1 form, yet all buttons invoke the same servlet".

    That sentence was given as a clue from my teacher, but common sense is that when the different buttons call the same servlet, they should be calling different methods. It's stupid if there are 10 buttons and they do the same thing.

    Here are parts of codes I normally use

     

    <form method="get" action="Servlet1">

    <input name="button1" type="submit" value="Submit">

    </form>

    <form method="get" action="Servlet2">

    <input name="button2" type="submit" value="Submit">

    </form>

     

    button1 will call Servlet1 while button2 will call Servlet2. In Servlet1 and Servlet2, there are only two methods, doGet and processRequest. The following are an example.

     

    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    processRequest(request, response);

    }

     

    private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{

    //simple codes that does only one task

    }

     

    And my classmate told me that another teacher gave another clue that the test have more than one JSPs, one Java Bean but ONLY 1 servlet. So I guess the servlet must have a lot of methods to do different tasks.

     

    I know the the codes for the jsp side, but I don't know how to differentiate them on the servlets.

    <form method="get" action="Servlet1">

    <input name="button1" type="submit" value="Submit">

    <input name="button2" type="submit" value="Submit">

    </form>

     

    EDIT: Just figure it out :) I'm ready for my test!!!

×
×
  • Create New...