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
when i us a thunderbolt cable from mac book pro rethina to my imac 27 late 2009 nothing happen, even with command F2 i can not use the imac as monitor for the mcbook proYou have got a problem: your iMac does not detect Thunderbolt cables because it h [More]
Hello All, I have a problem when I call function WS_DELIVERY_UPDATE_2. I have to update picked quantity from the delivery. If I have to update qty from 2 to 3, there is no problem. The corresponding parameter (pikmg) will contain '1' and the new valu [More]
I'm not sure if this belongs here or in the Acrobat forum -- let me know if it should be moved. I sent a job to press and had the problem that in print, one character of one Hebrew font did not print and was substituted with a box. I am using Windows [More]
Hello We have a physical standby database , I've created some standby redo log files but my problem is that they aren't used, their status in v$stanby_log view is UNASSIGNED and I see this message (ORA-16086: standby database does not contain availab [More]
Hi Guys,    How to find userexits invoice verification MIRO t.code, and How to posting and parking invoice verification also.plz send me the procedure both invoice posting and parking procedure. and navigations also help me. Thanks & Regards kiran.NH [More]
Dear Experts i have a scenario where my client maintained new pricing procedure for which he has maintained a list price?(ZPRC) by using reference condition type (PR00) in r/3 i runned all customizing objects relating to pricing and even runned arequ [More]
Hello experts, I created an interface where a xml file is reverse engineered as a source datastore. The data from the xml gets pumped into an oracle target db. This all goes well. I am creating a scenario where I am getting a xml file from a ftp serv [More]
Hi Friends, Why do we use core dump I mean "core_dump_dest" till now I didn't see any files in this particular destination. My 2nd Question is where is the Recycle Bin created and can we adjust the size of the recycle bin according to our requir [More]
Hi All, I'm not really expert on vbscript and been trying to search from internet about the problem that i have but just couldn;t find any solution. We are currently making a review on our AD and found users having wrong attributes. Now, we want this [More]
I have an issue where Firefox wont' quit and gives a "not responding" message after I have been using Google Mail. It works fine when I am not using that program. I have tried Safe Mode and the problem still happens when I go to Google Mail, so [More]