Sitemap

Amicuk Programming Answers

JSP PROBLEM...THEORETICAL QUESTION

-0001-11-30   Views:0

Advertisement

Hi as you all know by now im quite new to jsp and have struggled so far to get something decent working but now that i have im happy :D quick question for you all... imagine this scenario. when you submit an application for something...i.e. a job...y

Hi as you all know by now im quite new to jsp and have struggled so far to get something decent working but now that i have im happy :D
quick question for you all...
imagine this scenario. when you submit an application for something...i.e. a job...your application status is 'pending' and when moved to the interview stage the status is changed to 'interview' and then if successful changes to 'job offer'
these 3 'status' would be done as final int data types in java...ive done it before and thats not a problem. however how is one to approach that using jsp?? can it be done...if so, how??
also when the user logs in to check the current status of his/her application they should be presented with this status either pending/interivew/job offer.
any ideas??
at the moment all i have done is an application submission which gets stored in an access database. i am nowworking on the part which manipulates the submitted applications according to criteria
thanks!

The replay answer
Advertisement
Level_ID Level_Name
0 Pending
1 Interview
2 Offer
3 Rejection
how would i make a user who logs in to see his status
as the word pending rather than 0?? i.e. how can i
point the Level_ID in Login_Details table to find its
corresponding Level_Name in the Levels table?Create a HashMap at init of your Main Servlet that is populated by this data, keyed by Integer. Make this table reloadable via an HTTP call, that way if you want to update the names you can do so without needing to restart your webserver.
Then when its time to show the name, rather than the number, do :
<%= servlet.statusTable.get( new Integer( user.getStatus() ) ) %>
Probably would be a good idea to put this into a method so you can verify that the object exists, etc., call it showStatus(user)

Go to See the other 13 answers

FCP ISL theoretical question

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I' ve got a theoretical question about the behaviour of ISL at Cisco MDS switches: I heard, that during a transfer (a continuous sequence of frames) between a target and an initiator (each of them are on seperated switches, which are connected wi[More]

Two theoretical questions

Category:DefaultRelease time:2015-10-11Views:130

Hi there! I'm designing an authentication system. Two theoretical questions have evolved. I am not so sure about it. Hope you can help me out =) 1. First sign or first cipher? What is best practice here? Is it a risk to a symmetrical cryptosystem, if[More]

JSP to Excel question

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have a jsp page that renders data from a result set (queried from database). A button on this pages calls a 2nd page that I want to re-query and open excel with the data. This all works except that there are a number of blank likes at the top o[More]

HT1926 Attempting to update Itunes, received System Error: "program can't start because MSVCR80.dll is missing form computer" try reinstalling the program to fix problem. Question , if reinstall Itunes via download, do I lose my music library?

Category:DefaultRelease time:-0001-11-30Views:130

Attempting to update itunes, received system error" Program can't start because MSVCR80.dll is missing from computer, try reinstalling the program to fix the problem. Question, I can't access Itunes to backup library, how do I reinstall without loosi[More]

Some problems and questions using OWB

Category:DefaultRelease time:-0001-11-30Views:130

For Igor or anyone who can help me :-) Hello Igor, Thanks for all your help concerning my mapping deployment problem! Now it’s working better ;-) I used the OWB Runtime Assistant to create a new runtime target schema and i use the owner of this schem[More]

Some problems and questions

Category:DefaultRelease time:-0001-11-30Views:130

I have some problems and questions about my MSI MEGA PC 180 system... One problem is that MSI live monitor only works one time after every new installation then is just say "The URL is invalid" every other time I try to search for updates. One p[More]

JSP PROBLEM...THEORETICAL QUESTION

Category:DefaultRelease time:-0001-11-30Views:130

Hi as you all know by now im quite new to jsp and have struggled so far to get something decent working but now that i have im happy :D quick question for you all... imagine this scenario. when you submit an application for something...i.e. a job...y[More]

Checkbox jsp problem

Category:DefaultRelease time:-0001-11-30Views:130

Hello, Situation: I a list of checkboxes with the same name but unique value that a user can check if they did something indicated by the checked item. After they check them and click on submit, it goes to a page that then puts a boolean true in a my[More]

JDeveloper Business components JSP problem!!

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, First of all sorry for my English language (very poor). My question is when I generate Business components JSP Application by JDeveloper 9i is running on JDeveloper(oc4j) without any problems but when I using resin server or tomcat I have thi[More]

Help me to solve this Jsp problem

Category:DefaultRelease time:2015-10-11Views:130

//Class1.java package p1.p2; public class Class1 implements Serializable private String name1,name2; public void setName1(String name) name1=name; public String getName1() return name1; public void setName2(String name) name2=name; public String getN[More]

JSP problem after PDF Form Submit

Category:DefaultRelease time:2015-10-11Views:130

Hi, Our project team is using a PDF with Acrobat Form fields behind it to post form data to a java servlet, where it is parsed and written to a legacy system. Our problem: when we return a jsp confirmation page back to the user, we are getting interm[More]

Hot
Scenario: - Two PCs (A and B) in a small LAN. - Computer A runs a NFS and a FTP server. I can transfer file from A to B mounting the nfs exported directories or downloading them via FTP. - The files can reside in ext3 or xfs partitions, on different [More]
I can open Adobe Standard as an administrator, no problem. However, when my user tries we get this error: Faulting application Acrobat.exe, version 9.0.0.332, time stamp 0x4850eb76, faulting module Annots.api, version 9.0.0.332, time stamp 0x4850e57f [More]
Hi gurus, I 'm configuring SMSY and following the steps outlined in the IMG in the basic settings and trying to configure RFC connections to/from satellite systems. In SMSY, I have 2 systems configured SMA and BIF. tcode SMSY-> Systems -> SAP ERP -& [More]
I have one of the older iPods with the wheel. (No video, no color). It has a firewire cable which used to work fine with my XP system. That crashed and I bought a new PC with Cista and the new system does not have any firewire ports - only usb 2. I d [More]
Hi, I need to buy a new cell phone b/c we are moving, and I think I'd like to try a Blackberry. Can I make it compatible with my iMac, or is there a PDA that you recommend that is better? Unfortunately I have to use Cingular, so I'm limited in my cho [More]
Just installed update 5.1 and music started stuttering. Interestingly it stutters terribly if access my computer iTunes library. If I go to the computer and stream music over AirPlay, no stuttering. Could it be a firewall or port problem? Can't seem [More]
Please help with the above! Thank youYou can't store anything on an iPhone SIM.  If your contacts are in iCloud, just go to Settings>iCloud on your phone, sign into your account and turn Contacts on.  They will then download to your phone.Read other [More]
Has anyone had success is setting up SSO token security in OBIEE 11g for Essbase. I have followed the steps in the documents of 11.1.1.x and still am not getting users to authenticate against the cube I am using. When I log in as one of those users, [More]
I've made several slide shows with video clips (.MOV), however, I can't get sound from my most recent clips.  The audio works fine if I drag in an earlier clip.  All the .MOV clips (new and old) have audio when played in Elements Organizer.  I'm usin [More]
Hi All I had tried Create and invite a new partner in R12, i created the partner and the time of clicking the invite partner button i had received the error            Error You do not have sufficient privileges to access this information. What is th [More]