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
This is partially related to Final Cut Studio, although not necessarily.  I've been trying to back up dozens of my miniDV tapes on to my harddrive for several months now, racing against the clock as their video quality starts to degrade.  Since Final [More]
new version wont load..Message Error 7 - Windows error 126Any update on this???? Still having the same problem.Read other 2 answers [More]
Hi all, I've created a file using InDesign (CS5) and exported it to PDF format, with crop marks (for proofing purposes).  I then "place" the PDF file(s) back into an InDesign document and align them as a master for printing/cutting.  However, th [More]
Hi all, This is regarding Disaster Recovery approach for Oracle Application Server 10g. There are two environments Active (DC-PROD) and Stand-By (DR-PROD). Each environment have 2 nodes where OAS Instances are installed in both nodes and each environ [More]
I recently purchased a brand new MacBook. Naturally, it came with installation discs for Mac OS X. I'm now wondering if I can use the same discs to install Mac OS X onto our old iMac with OS 9. How would one go about doing that?-- if it is in fact po [More]
Hi, My requirement is to add a Push Button to the selection screen of a report program. The button has to be position near the 'Variant' button which is already present. How to do this. Regards.First of all, in initialization event, declare your own [More]
How can I call the .mxi using the JavaScript API? In previous versions of the plugin I could easily call upon the mxi file to grab a token definition value using the dw.getConfigurationPath(). As in the following example: dw.getConfigurationPath() + [More]
I'm trying to subscribe to multiple ICS/iCal calendars that are published by a local hockey league on their web site. The link is actually to a PHP script that uses a query string parameter to determine which team's calendar you want. But when I atte [More]
A very (embarrassingly) basic question, but a bit different than any previously asked (I think - have searched for hours) - Computer #1 - only has CS2, cannot be upgraded, not online Computer #2 - will have CS4 (The computers are not connected) Can y [More]
Hi, Can any one tell me what is the difference between SAP MDM & IBM MDM,  What are advantages of SAP MDM over IBM MDM. Pl. give reply the good answers will be get good points. Thnks in advance. praful.HI SAP Master Data Management SAP Master Data Ma [More]