URGENT PROBLEM: Please help me if you can :(

i am developing a symptom sorter function in JSP and MySQL, where the flow of data is:
Select pain type e.g Ear
Select category e.g. Hearing Problems
Checkbox selections
fever
cough
tired
sick
A combination of these checkbox selections should take you to the appropriate result. e.g tick fever, sick and tired, then the symptoms should be displayed. NB You must have selected the pain type and category already.
HJowever if u tick cough with the paintype and category selected then a messasge saying no symptom found should be displayed.
My problem is the correct implementation method to use!
The data is already stored in a database, with every possible outcome already worked out!
I need to know
1. Is it better if i put the data read from the db into an object and then put that object into a session? Where the jsp then gets the object and displays the results on a new page!
If yes how do i do this?
2. Is there another method of completing my task.
Thanks again!

The best way to accomplish this kind of view of the database is to follow the MVC Architecture. Just follow the following steps to display the appropriate view.
1)send the detailes checked/selected from the jsp to the ControllerServlet (Form action to be routed to ControllerServlet).
2)Write a Bean which takes the request object into the constructor and instantiate the same in ControllerServlet.
3)In the Bean get all the parameters from the request using req.getParameter("PainTypr")...etc.
4) check for the appropriate conditions based on the parameters obtained with existing database. and have a method in the bean to give the url back to the servlet. -- end of processing in Bean.
5) Back to the ControllerServlet redirect the request to the "url" as obtained from the Bean using response.sendRedirect(url);
6) if required write a Custom Tag to display the data in the desired format. which will be embeded in to the jsp that is displayed.
Just go through any MVC prototype for a clear understanding.
All the best
adios
praveen.

Similar Messages

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • Urgent Problem please Help(hayat)

    Hello Hi,
    I want to Install Form 6.0 With Oracle 8i on Server
    mean not personal oracle,
    if i install first oracle 8i and then form 6.0 then
    they overwrite their homes and vice versa.
    What method i use to control this problem.
    please help me so that i install form 6.0 on oracle 8i server.
    thanks
    hayat

    Ok, I have read the sun site and downloaded the JDK and saved it to disk in the C:\ drive.
    However I still get the same error so I think I must be very stupid and I think the computer knows that.

  • Got a problem with my Chatting-Room program, please help me if you can.

    There is one bug in the code (should be just one), but I couldn't find it, I even recoded the whole thing, after I recoded the code, the same problem seems still there. I just can't find where the problem is. So I hope someone here can help me, thank you very much.
    First, I made a Server and a Client. Server has 5 classes, and Client has 2 classes. My intention is that all the clients(running on other computers) will connect to the server (which is my laptop), and then they can communicate with each other. For example, if person A typed "Hello", person B and person C's computers will receive this message and display it.
    The problem is that several clients can connect to the server (My laptop), but if one person type something, other people won't receive the message, it's blank on their screens. Maybe there is a problem when server receiving the message. So this is the problem I want to solve.
    I have the code down there, here is a brife description what each class mainly does.
    First class of Server is for connecting client, this class is named Server. Everytime a client is connected, the Server class calls the second class to store the client's information (which is its IP address), the second class is named People.
    Third class is named Receiver, it is for receiving the massage from any one of the clients, then stores the message to a static field variable in Fourth class, fourth class is named Saying.
    Fifth class of Server is named Sender, it is for sending the massage to the client, that message is the one that stored in Saying.
    The First class of client is named Client, it prints any message that the server send to it.
    The Second class of client is named SendFromClient, it wait for user to type something, and then send the message to the server, so server's Receiver class hopefully will get it and store it to the field variable in the Saying class.
    Here is all the codes:
    Server Class:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class Server
         public static void main(String[] args)
              /*port number*/
              final int port = 41333;
              /*welcome messages:*/
              System.out.println("This is FriendlyJ 1.0 running");
              System.out.println("Listening on ports 41333");
              try
                   /*Clear the ArrayList*/
                   People clear = new People();
                   clear.IPs.clear();
                   /*Create a server socket that will accept any connection on this port*/
                   ServerSocket ss = new ServerSocket(port);
                   /*keep getting clients*/
                   while(true)
                        /*connect with one client at a time*/
                        Socket s = ss.accept();
                        PrintWriter out = new PrintWriter(s.getOutputStream(),true);
                        Scanner in = new Scanner(s.getInputStream());
                        /*indicate one establish of connection*/
                        System.out.println("One connection estabolished!");
                        /*two classes, one foe receiving, one for sending*/
                        Receiver receive = new Receiver(in);
                        Thread ty = new Thread(receive);
                        Sender send = new Sender(out, s);
                        Thread yt = new Thread(send);
                        ty.start();
                        yt.start();
                        /*add IP to ArrayList*/
                        clear.storing(s.getInetAddress().toString());
                        out.println("There are " + clear.IPs.size() + " people online;");
                        System.out.println("Connected to " + s.getInetAddress().toString());
              catch (Exception e)
                   System.out.println("System exception");
    }People Class:
    import java.util.*;
    public class People
         ArrayList<String> IPs = new ArrayList<String>();
         /*A method for storing IPs*/
         public void storing(String IP)
              IPs.add(IP);
    }Receiver Class:
    import java.util.*;
    public class Receiver implements Runnable
         final private Scanner in;
         /*Constructor to get the scanner*/
         public Receiver(Scanner abc)
              in = abc;
         public void run()
              Saying say = new Saying();
              try
                   while(true)
                        /*waiting for input from client, then give it to Saying*/
                        say.setSaying(in.nextLine());
              catch (Exception e)
                   e.printStackTrace();
    }Saying Class:
    public class Saying
         static String saying = "";
         public void setSaying(String a)
              saying = a;
         public String getSaying()
              return saying;
         public void resetSaying()
              saying = "";
         public int getlength()
              return saying.length();
    }Sender Class:
    import java.io.*;
    import java.net.*;
    public class Sender implements Runnable
         final private PrintWriter out;
         final private Socket s;
         public Sender(PrintWriter abcd, Socket abcde)
              out = abcd;
              s = abcde;
         public void run()
              out.println("Feel free to chat.");
              int count;
              Saying says = new Saying();
              try
              while(!s.isClosed())
                   count = says.getlength();
                   if(count>0)
                        out.println(says.getSaying());
                        says.resetSaying();
              /*disconnect with the client*/
              s.close();
              System.out.println("Connection with " + s.getInetAddress().toString() + " is closed.");
              catch (IOException e)
                   System.out.println("Network error!");
    }Client Class:
    import java.util.*;
    import java.net.*;
    import java.io.*;
    public class Client
         public static void main(String[] args)
              Socket sc;
              System.out.println("Welcome to FriendlyJ IM program");
              System.out.println("Connecting to the server...");
              int port = 41333;
              /*A variable for storing IP address of Server*/
              InetAddress ip;
              try
                   ip = InetAddress.getByName("192.168.1.68");
                   sc = new Socket(ip, port);
                   System.out.println("Connected with Server");
                   Scanner in = new Scanner(sc.getInputStream());
                   PrintWriter out = new PrintWriter(sc.getOutputStream());
                   /*a thread for sending message to the server*/
                   sendFromClient sendin = new sendFromClient(out);
                   Thread sending = new Thread(sendin);
                   sending.start();
                   /*display welcome message*/
                   System.out.println(in.nextLine());
                   /*displaying how many people are online now*/
                   System.out.println(in.nextLine());
                   while(true)
                        /*print out the message sent by the server*/
                        System.out.println(in.nextLine());
              catch(UnknownHostException e)
                   System.out.println("Couldn't find the host!");
              catch(IOException e)
                   System.out.println("Network error!");
              catch (Exception e)
                   e.printStackTrace();
    }SendFromClient Class:
    import java.io.*;
    import java.util.*;
    public class sendFromClient implements Runnable
         private PrintWriter send;
         public sendFromClient(PrintWriter sendto)
              send = sendto;
         public void run()
              Scanner sc = new Scanner(System.in);
              while(true)
                   /*get a message, then send to the server*/
                   send.println(sc.nextLine());
    That's all, thank you for helping!
    Edited by: stdioJ on Oct 31, 2007 3:58 PM

    Hi pgeuens ,
    I tried it ...but it didn't work for me.
    I changed my .jsp like this
    <%@ page language="java" %>
    <%@ taglib uri="/tags/struts-html" prefix="html"%>
    <html:form action="Registration.do">
    UserName:<html:text property="username"/><br>
    enter password:<htnl:password property="password1"/><br>
    re-enter password:<html:password property="password2"/><br>
    <html:submit value="Register"/>
    </html:form>And i changed that web.xml like..
    <taglib>
        <taglib-uri>/tags/struts-html</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>Now I am getting an error like ......."File "/WEB-INF/struts-html.tld"not found.
    Hi Ashish
    I didn't find struts-form.tld in WEB-INF folder.But all the remaining file all there.
    Again I downloaded that struts1.2.9 ...in that also i couldn't find struts-form.tld file(except this remaining are there).
    Please tell me, if there any other ways....
    Thanks,
    kona.

  • HT5004 i nedd itunes 64 file i don't know what to do with my  iphone4 has all it's data in this computer and i cant sync my iphone now cuz its need the itunes64 file please help me if you can thank you

    hello sir
    my system needs itunes64 file i don't know from where i should get this file cuz my iphone 4 is all the time synced with this computer all the back up are in this computer i dont want to lose it coz i did restore once so i dont have all the data in my phone i have it in itunes please help me with itunes 64
    thank you

    Back up all data to at least two different storage devices, if you haven't already done so. One backup is not enough to be safe. The backups can be made with Time Machine or with a mirroring tool such as "Carbon Copy Cloner." Preferably both.
    Boot into Recovery mode, launch Disk Utility, and erase the startup volume with the default options. This operation will destroy all data on the volume, so you had be better be sure of your backups. Quit Disk Utility and install OS X. When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups.
    Transfer only "Users" and "Settings" – not "Applications" or "Other files." Don't transfer the Guest account, if it was enabled on the old system. Test. If the problem is still there, the cause is external to the machine, or else you're dealing with a bug or a hardware fault.
    If the problem is resolved, reinstall your third-party software cautiously. Self-contained applications that install into the Applications folder by drag-and-drop or download from the App Store are safe. Anything that comes packaged as an installer or that prompts for an administrator password is suspect, and you must test thoroughly after reinstalling each such item to make sure you haven't restored the problem.

  • For my iphone 4S, people can hear me sometimes but i can't hear them. I am having a hard time making phone calls. Please help me if you can.

    I can't hear my callers but i hear them sometimes. It makes some weird cracking sound.

    Apple just announced new products.  It is ALWAYS busy this time of year.  You just have to deal with it.
    Alternatively, you can contact Apple Support and get assistance that way.  Worst case scenario, they'll require a $19 fee to troubleshoot your device over the phone, which is refunded if it turns out you have a hardware issue.
    Try them at https://getsupport.apple.com or 1-800-MYAPPLE and see if they can help.
    But also try this:
    Basic Troubleshooting Steps when all else fails
    Quit the App by opening multi-tasking bar, holding down the icon for the App for about 3-5 seconds, and then tap the red circle with the white minus sign.
    Relaunch the App and try again.
    Restart the device. http://support.apple.com/kb/ht1430
    Reset the device. (Same article as above.)
    Restore from backup. http://support.apple.com/kb/ht1766 (If you don't have a backup, make one now, then skip to the next step.)
    Restore as new device. http://support.apple.com/kb/HT4137  For this step, do not re-download ANYTHING, and do not sign into your Apple ID.
    Test the issue after each step.  If the last one does not resolve the issue, it is likely a hardware problem.

  • Motherboard not geting past MSI logo display - please help me if you can

    Hello all
    I have recently purchased a motherboard kit from a very respected retailer so all my components are compatible. It consisted of an MSI KT4V motherboard, an AMD Sempron 2600, a stick of 256MB DIMM, and a heatsink. I have installed them all as best to my knowledge but on booting up for the first time all I am getting is what looks to be an MSI logo screen. I have changed the jumper switches and tried other things but I am unable to get to the BIOS or anything.
    Has anyone else had this problem or does anyone know of any methods I could take to try and resolve it ?
    Thanks

    Hello again.
    First can I just say thanks to everyone who has posted a reply to me here. I have brought my motherboard manual in for any specifications that is needed, unfortunately my power supply is back at my flat but it came with a chassis I bought from a different company. I know it's 400w if that's any consolation.
    Please understand that I am unable to get anywhere near BIOS - literally as soon as I power it up the power light comes on, you can hear the hard drives whirring, the DVD ROM spins, etc. but almost instantly an MSI logo is displayed on the screen and from there I can;t do anything. I am not given the chance to do anything before. Hitting Del does nothing, in fact the keyboard doesn;t even light up at all when I switch my computer on, almost as if it doesn;t recognise it or it doesn;t get as far as reading it or something. Surely there can;t be a problem with my graphics card as I'm guessing I wouldn't be able to see the dreaded MSI logo. I reseated most stuff like the RAM and swapped IDE cables etc. and that seems fine. I am really getting sick of seeing that infernal MSI logo screen !!

  • URGENT problem - please help me now

    Hello,
    I am learning Java at college, but when I try to do it at home on my computer I get an error.
    Can someone please help me as I need to do my coursework very soon and I'm not very good with gadgets and things.
    The error is like this:
    I type this in -
    C:\Java
    And it says this back -
    'Java' is not recognized as an internal or external command,
    operable program or batch file.
    I tried different spelling and making it all capital letters but it is still broken.
    Thank you all very much for helping,
    Sally.

    Ok, I have read the sun site and downloaded the JDK and saved it to disk in the C:\ drive.
    However I still get the same error so I think I must be very stupid and I think the computer knows that.

  • Export Problems - PLEASE HELP! Thank you.

    Firstly many thanks for reading this post and any replys you may give.
    This is the first time I have used motion and am having a little trouble exporting my movie in the correct format. The finished movie needs to be put onto DVD for playback through a standard PAL player onto a 28" wide screen LCD at an exhibition. After searching the net I found what appear to be the correct settings, which are 720x576 PAL DVD/Anamorphic 1.42.
    The Movie looks great in Motion and everything is at the correct proportion. When I just do a standard quicktime export the finished movie appears to be squashed width ways as to fit on to a standard tv. I have played around with various export setting and it always comes out the same and I can't see any tabs to tick on output setting which renders the 1.42 anamorphic setting.
    I am using Motion version 1 and the movie contains just still images that fade and mask. I have noticed you can set each imported image to a certain aspect ratio, but I don't imagine this would effect the exported movie.
    Any advice or suggestions would be greatly appreciated.
    Cheers

    Hi mate,
    Just had the same problem myself working in Motion for Titles for a film in FCP. Basically the way I see it you mean like me when the clip from motion comes into FCP it is displayed as a square image whereas everything else on the timeline is Anamorphic. I ve spoken to Apple pro app support on the phone and its a very simple solution:
    Right click the clip in the browser and go to 'Item properties' then 'Format' then scroll down to 'Pixel Aspect Ratio' and simply click the two collums and a tick will appear. Now if the clip was already in the timeline delete it and put it back or just drop the clip on to the timeline and it is displayed as Anamorphic like everything else.
    Hope this helps you or anyone else with the problem.
    Regards
    Tom

  • Mail won't open - please help me if you can I'm feeling down .... and I do

    Hello everyone - never used this before so I don't know quite where it will arrive - BUT, HELP - my Mail program just will not load - I press the icon in the sidebar and it just hops and that's it! I hold the menue open and click 'open' and the same, just one frustrating hop. I did notice yesterday something odd - some mail in had one subject, and then when I opened it, it was the content from another sender. Have updated to 10.4.8 in the last week. My summary comment as simply 'aaaaaaaaarrrrrrggggghhhhhhh!!!!!' - and I have so much in various mailboxes which I need to access on a regular basis.
    Any ideas for a new boy who is somewhat challenged tech-wise????
    Thanks
    DavidI

    Hello DavidI.
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all filesystem issues, if any, proceed as follows to try to identify the problem:
    1. Open /Applications/Utilities/Console.
    2. From the File menu, choose either Open Console Log, or Open System Log, or both, so that the Console application displays the contents of both system.log and console.log.
    3. In the Finder, go to /Applications/, and try to open Mail by double-clicking on it. Look at the bottom of the Console windows for messages that might be written there as a result. They may provide some clues as to what the problem is.
    In the meanwhile, take a look at the following article, in case this is a font issue:
    Font Management in Mac OS X Tiger and Panther
    You may also want to read the following article:
    Multiple applications quit unexpectedly or fail to launch

  • PLEASE, HELP ME IF YOU CAN!!

    hi guys
    I am a window 7 user , photoshop element 9 tells me
    "Unable to continu e because of a hardware or system error. Sorry, but this error is unrecoverable! "
    I would appreciate any response or help on this problem!

    Well... what IS your hardware?
    How to ask a question http://forums.adobe.com/thread/416679
    Some specific information that is needed...
    Brand/Model Computer (or Brand/Model Motherboard if self-built)
    How much system memory you have installed, such as 2Gig or ???
    Operating System version, such as Win7 64bit Pro... or whatevevr
    -including your security settings, such as are YOU the Administrator
    -and have you tried to RIGHT click the program Icon and then select
    -the Run as Administrator option (for Windows, not sure about Mac)
    Your Firewall settings and brand of anti-virus are you running
    Brand/Model graphics card, sush as ATI "xxxx" or nVidia "xxxx"
    -or the brand/model graphics chip if on the motherboard
    -and the exact driver version for the above graphics card/chip
    -and how much video memory you have on your graphics card
    Brand/Model sound card, or sound "chip" name on Motherboard
    -and the exact driver version for the above sound card/chip
    Size(s) and configuration of your hard drive(s)... example below
    -and how much FREE space is available on each drive (in Windows
    -you RIGHT click the drive letter while using Windows Explorer
    -and then select the Properties option to see used/free space)
    While in Properties, be sure you have drive indexing set OFF
    -for the drive, and for all directories, to improve performance
    My 3 hard drives are configured as... (WD = Western Digital)
    1 - 320G WD Win7 64bit Pro and all programs
    2 - 320G WD Win7 swap file and video projects
    3 - 1T WD all video files... read and write
    Some/Much of the above are available by going to the Windows
    Control Panel and then the Hardware option (Win7 option name)
    OR Control Panel--System--Hardware Tab--Device Manager for WinXP
    And, finally, the EXACT type and size of file that is causing you problems
    -for pictures, that includes the camera used and the pixel dimensions

  • Please help me if you can Svet!

    Svet, I am new to these forums, been reading around here for a bit and see that you seem to be a very capable person. I have one favor to ask of you sir. Can you get your hands on the original Vbios for the r6950 2GB Twin Frozr II?
    I saved my original bin, I swear! The problem is it was grouped with a bunch of other non-important files and I accidentally deleted it with the rest.  

    Quote from: itsjustadeer on 11-October-11, 13:06:26
    LoL
    My first attempt at contacting customer support: fail.
    I asked for the video bios for my r6950 Twin Frozr II and I gave them my serial number... and they reply with a link to download a video bios for an NVIDIA card and tell me to use NVFLASH.EXE to install it.
    Hopefully the same person doesn't answer me this time  
    Yes, try again

  • TS1368 please help me how to veriftied my apple ID cos's I can't get it. I'm living in Myanmar. How can I verifited my apple ID? Please help me if you can.

    Help me now.

    Alternatives for Help Resetting Security Questions and Rescue Mail
    Due to recent changes in how Apple handles this issue, the most successful
    option is #5, below.
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    How to Manage your Apple ID: Manage My Apple ID

  • Logic Crashing - Please help me if you can!

    Hi guys
    First time posted; Long time browser..
    Alright So I have Logic Pro with various AU instruments etc
    Its been going great for some time (months) and last two days Ive hit a bump.
    We tracked it down to being nexus; (au instrument) however even disabled or removing the .component makes logic crash & Freeze.
    At first it would freeze and crash; reopening and re enabling the plugin would allow it to work again for days without a issue. Now with The Plugin active or non active it plays 5 seconds and severe crash
    Im unsure what to do.
    Can someone shed some light on my situation?
    Thank you

    I will try it tonight when Im home.
    Do I completely remove all AU stuff and go all from scratch? I dont mind doing so if it works again.. Alot of au's to install..
    Any other ideas on what may be wrong guys?
    Thanks for you prompt reply too.

  • HT5624 hello . my question is , if i want change my security answers , what is the best way to change it , i tried many time to sent email to restert my security answers , but nothing come to my email . can please help me . thank you .

    hello . i have problem that is i forget my security answers i tried to send it to email but nothing come . how can i slove this problem . please help my thank you .

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

Maybe you are looking for

  • I'm having trouble accessing ICloud to download my Photo Stream pictures to my computer

    I have the IPhone 3GS and I cannot transfer 1,000 pictures that have been backed up to PhotoStream as I took them withthe phone. I want to transfer them from my IPhone to my computer but I can't find a way to do that. I'm told that they are in the IC

  • MdsId=blahblah .pxml not found

    Hello I am trying to portlize an hello world ADF application but am unable to do so because of the situation describe below. I have tried all the options given on this post but nothing seems to resolve the issue. I have followed the instructions of p

  • Can't sync calendar - Zire 72s

    Hi I've reinstalled the operational system (Windows XP Professional) in my computer and since then I've been trying to synchronize my palm (Zire 72s). I'm using the palm desktop 4.1.4 and when I try to sync, it starts ok, running until the calendar.

  • SQL command (with XPath) does not work properly with JSP

    Hello everyone, I try this SQL command on Oracle SQL Developer, select filename, extract(xml_col, '/Operation/Records/tabDetail/Vehicle_Level/text()') as Vehicle_Level, extract(xml_col, '/Operation/Records/tabDetail/Vehicles_Closed/text()') as Vehicl

  • How do I promote members of a group call?

    I made a group call for some people running the server, but there are four people in particular I want to make better than everyone else. My friend said I can promote them to administrators, but I don't really know how.