jsp-tags


when I run my jsp pgogram I got this exception error type Exception report


type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 44 in the jsp file:
/jsp/ShoppingCart/AddBook.jsp The method getValue(String) is undefined
for the
type HttpServletRequest
int int_BookID,int_CategoryID,int_Price,int_Quantity;
String str_Title, str_Author, str_Publisher,str_Edition,str_Description;
int_BookID=(int)(10000*Math.random()+1);
int_CategoryID=Integer.parseInt(request.getValue("cat"));
str_Title=request.getParameter("title");
str_Author=request.getParameter("author");
str_Publisher=request.getParameter("pub");
request.getValue("cat") is the problem here.
I suppose the 'cat' is a parameter.
Instead , use request.getParameter("cat")
PS- I recommend you to read the basics of JSP first try the HeadFirst series.

Related Links

Unable to replace apostrophe symbol in my JSP Page
Build URL to query JSP
how can we display value in java server page set in dto
Difference between jsp include action tag and jsp include directive
How to iterate through a list of list in jsp
JSP Custom Tag File and Dynamic attributes
Fetch drop down box multi selector
jsp code to upload jgp files and save in mysql db
when I run my jsp pgogram I got this exception error type Exception report
jstl formatNumber in input leads to NumberFormatException
Youtube onYouTubePlayerReady() function not firing
username and password cannot be resolved or is not a field
How page directive “extend” in jsp works?
Simple property not found?
Reusing JSP custom tags inside html
JSP Quiz process is not giving me the correct percentage scored

Categories

HOME
netsuite
amazon-ec2
reflection
react-virtualized
stock
electron
bookshelf.js
cvs
razor
sqlite3
c#-2.0
alpha
ezpublish
append
slurm
mapserver
modelica
qt-creator
static-libraries
windows-7-x64
propel
scriptcs
kvc
blazemeter
firebase-crash-reporting
opentype
msys2
librato
react-chartjs
preg-match-all
oracle-fusion-middleware
abstract-class
uft-api
user-controls
ensembles
glew
nomethoderror
azure-application-gateway
qsslsocket
domain-model
yii2-extension
jxcore
windows-mobile-6.5
akka-cluster
spring-mongodb
word-vba-mac
intrusion-detection
merge-conflict-resolution
autorest
superstack
master-slave
srand
separator
reactive-banana
eclipse-clp
iis-arr
pundit
cakephp-3.1
method-parameters
nsight
iiviewdeckcontroller
csquery
pick
codeigniter-url
tt-news
flask-cors
fluentautomation
commoncrypto
ruby-datamapper
batterylevel
mylyn
random-seed
robotics-studio
trusted
javaspaces
hosts-file
uiviewanimation-curve
f#-powerpack
django-tagging
appendto
iphone-web-app
html-input
radcombobox
thunderbird-lightning
memory-size
ugc
rtml

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App