Sitemap

Amicuk Programming Answers

JSP PROBLEM...THEORETICAL QUESTION

-0001-11-30   Views:1

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
I have AirPort Extreme 6th gen, it can not recognize my printer HP deskjet ink advantage 1515. I already contact hp support and they reply my printer is support by AirPort Extreme. This is the link web statement http://h10025.www1.hp.com/ewfrf/wc/doc [More]
HI! I use bank account 193200 as a clearing account to clear open items. I have made two postings on this account in different currencies. Now I wan't t o clear this items in f-03, and the difference of apprix 10 EUR is to be posted on an exchange ra [More]
hi, I want to know to know the how to print a page in front and back.HI Ragavendra set this <b>Print mode is D</b> With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values: <b> [More]
Hi everyone, My mac mini is new. I have a few issues with it. But the most annoying is the malwares that infested it now. I have only been using it for about 3 weeks or so. Of course, I thought everything that popped up are safe to click and just sta [More]
So my iMac crashed and will not boot. The power will come on and when it switches to the boot sequence it powers off.  I bought Black Tie protection at Best Buy but when I took it to them they shipped it to Apple. The problem was never fixed. Apple s [More]
I just got an iMac and it didn't migrate my emails from my Windows PC; only some of them.  I gave up on getting them into Apple Mail, but had Postbox (just Google it to find the download site) on my PC for another email account, so I was able to get [More]
Is there any difference at all between drive bay "A" and bay "B?" I know that we can make boot drives for either, but is there any advantage to having the primary drive be in bay "A" -vs- "B?" Additionally, if both [More]
After installed ios 7 photos not able to see fully audio not working properly.... [no treble, no depth in sound, very low soung even the volume is full] get strucks while playing gamesThis board is full of people that are update crazy... even when th [More]
Hello, I am trying to develop a BSP application which will use the Dojo toolkit for some nice controls.  Has anyone been through this process and is able to help me out with the necessary steps? I have downloaded the toolkit, deployed it in the MIME [More]
hai, I have created ztable and zprograms in my local object with user "fujikawa" now I created new user Chandra. i want to continue coding by copying programs from Fujikawa user. If at all we copy these PGMS, it seems we cant execute in new user [More]