Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs427fa20team22
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
htmoss2
cs427fa20team22
Commits
40142a0e
Commit
40142a0e
authored
4 years ago
by
adityab3
Browse files
Options
Downloads
Patches
Plain Diff
Fixed null error in PreRegisterPatient.jsp
parent
25741949
No related branches found
No related tags found
1 merge request
!3
Uc91.1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
iTrust/WebRoot/util/PreRegisterPatient.jsp
+7
-5
7 additions, 5 deletions
iTrust/WebRoot/util/PreRegisterPatient.jsp
iTrust/src/edu/ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
+2
-2
2 additions, 2 deletions
...ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
with
9 additions
and
7 deletions
iTrust/WebRoot/util/PreRegisterPatient.jsp
+
7
−
5
View file @
40142a0e
<%@taglib
prefix=
"itrust"
uri=
"/WEB-INF/tags.tld"
%>
<%@page
errorPage=
"/auth/exceptionHandler.jsp"
%>
<%@page
import=
"edu.ncsu.csc.itrust.action.AddPatientAction"
%>
<%@page
import=
"edu.ncsu.csc.itrust.action.AddP
reRegisteredP
atientAction"
%>
<%@page
import=
"edu.ncsu.csc.itrust.BeanBuilder"
%>
<%@page
import=
"edu.ncsu.csc.itrust.beans.PatientBean"
%>
<%@page
import=
"edu.ncsu.csc.itrust.beans.HealthRecord"
%>
<%@page
import=
"edu.ncsu.csc.itrust.beans.
forms.
HealthRecord
Form
"
%>
<%@page
import=
"edu.ncsu.csc.itrust.exception.FormValidationException"
%>
<%@include
file=
"/global.jsp"
%>
...
...
@@ -19,11 +19,13 @@ boolean formIsFilled = request.getParameter("formIsFilled") != null && request.g
if
(
formIsFilled
)
{
PatientBean
p
=
new
BeanBuilder
<
PatientBean
>
().
build
(
request
.
getParameterMap
(),
new
PatientBean
());
HealthRecord
h
=
new
BeanBuilder
<
HealthRecord
>
().
build
(
request
.
getParameterMap
(),
new
HealthRecord
());
HealthRecord
Form
h
=
new
BeanBuilder
<
HealthRecord
Form
>
().
build
(
request
.
getParameterMap
(),
new
HealthRecord
Form
());
String
s
=
"bla"
;
long
mid
=
new
PreRegisterPatientAction
(
prodDAO
).
addPatient
(
p
);
String
name
=
"
<
Name
>"
;
if
(
p
!=
null
)
{
s
=
p
.
getFullName
();
name
=
p
.
getFullName
();
}
%>
<div><%=
s
%></div>
...
...
This diff is collapsed.
Click to expand it.
iTrust/src/edu/ncsu/csc/itrust/action/AddPreRegisteredPatientAction.java
+
2
−
2
View file @
40142a0e
...
...
@@ -27,8 +27,8 @@ public class AddPreRegisteredPatientAction {
* @param loggedInMID
*/
public
AddPreRegisteredPatientAction
(
DAOFactory
factory
,
long
loggedInMID
)
{
this
.
patientDAO
=
factory
.
getPatientDAO
();
this
.
loggedInMID
=
loggedInMID
;
this
.
patientDAO
=
factory
.
getPatientDAO
();
this
.
loggedInMID
=
loggedInMID
;
this
.
authDAO
=
factory
.
getAuthDAO
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment