So I'm trying to learn how to develop web pages using JSP and I can't believe the technique I've been shown for what I'm doing is the easiest/best/standard way of doing things.
Here's what I need to have at the end of my project:
A webpage that lists statutes (Active/Inactive/All) and allows the user to filter based on who enforces the statute (City, State, Local, County) and then allow editing/adding from a "detailed" page.
So:
[tt]
o Active o Inactive o All
o City (C) o State (S) o Local (L) o County (N) o All
RowID StatuteID Description Origin
14 1-12-42 FAIL ALLOW EMPLOYEE TIME VOTE S
15 10.1.1.4B PARK SANITATION (REFUSE) C
16 10.1.1.9 PARKS OPERATING POLICY (HOURS) C
17 10-1-1-10 PARK OPERATING POLICY C
18 10-1-1-4C GLASS CONTAINER IN PARK C
19 10-1-1-6B MOTOR VEH PROHIBITED IN PARK C
20 10-202F OCCUPANCY VIOLATIONS N
21 10-3-2-15 MAIN DRAINS C[/tt]
when the link is selected a form opens that allows editing of the detailed information.
Now, my coworker who started this project used a tokenizer but he was only dealing with a subset of all the statute fields. I think the tokenizer is a bunch of #$%@! Every field has to be added and extracted. The query has to have each field specified (instead of *). Is there a better/easier way to do what I'm trying to do? I was looking at the tutorial at and it says for what I need to do i should use beans (not real beans though...here's the specific page).
I currently have listRows.jsp which coincidentally lists the rows (shown above)...I have editForm.jsp which allows (surprise) editing of the statute in a form. I have a class Library that jaxtell helped me with in Thread695-1479415 but I'm assuming that needs to be modified in order to allow filtering on the type of statute.
I was able to get the information from the query into the editForm.jsp and turn off and on check boxes and radio buttons with some assistance from prosper in Thread695-1481383, but I feel like I'm just piecing together bits and pieces to make it work the way i want, but I'm not putting it all together correctly.
Any thoughts or suggestions?
Leslie
Have you met Hardy Heron?
Here's what I need to have at the end of my project:
A webpage that lists statutes (Active/Inactive/All) and allows the user to filter based on who enforces the statute (City, State, Local, County) and then allow editing/adding from a "detailed" page.
So:
[tt]
o Active o Inactive o All
o City (C) o State (S) o Local (L) o County (N) o All
RowID StatuteID Description Origin
14 1-12-42 FAIL ALLOW EMPLOYEE TIME VOTE S
15 10.1.1.4B PARK SANITATION (REFUSE) C
16 10.1.1.9 PARKS OPERATING POLICY (HOURS) C
17 10-1-1-10 PARK OPERATING POLICY C
18 10-1-1-4C GLASS CONTAINER IN PARK C
19 10-1-1-6B MOTOR VEH PROHIBITED IN PARK C
20 10-202F OCCUPANCY VIOLATIONS N
21 10-3-2-15 MAIN DRAINS C[/tt]
when the link is selected a form opens that allows editing of the detailed information.
Now, my coworker who started this project used a tokenizer but he was only dealing with a subset of all the statute fields. I think the tokenizer is a bunch of #$%@! Every field has to be added and extracted. The query has to have each field specified (instead of *). Is there a better/easier way to do what I'm trying to do? I was looking at the tutorial at and it says for what I need to do i should use beans (not real beans though...here's the specific page).
I currently have listRows.jsp which coincidentally lists the rows (shown above)...I have editForm.jsp which allows (surprise) editing of the statute in a form. I have a class Library that jaxtell helped me with in Thread695-1479415 but I'm assuming that needs to be modified in order to allow filtering on the type of statute.
I was able to get the information from the query into the editForm.jsp and turn off and on check boxes and radio buttons with some assistance from prosper in Thread695-1481383, but I feel like I'm just piecing together bits and pieces to make it work the way i want, but I'm not putting it all together correctly.
Any thoughts or suggestions?
Leslie
Have you met Hardy Heron?