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

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
Refer the id variable of logic - iterate using jstl-el

Categories

HOME
wso2
minimum-spanning-tree
gremlin
objectgears
octobercms
framework7
spring-cloud-stream
paw-app
win32gui
windows-server
serverspec
modelica
spring-tool-suite
remote-access
ibm-odm
windows-server-2012
serverless-framework
opentracing
serilog
connection-string
oracle-coherence
interop
nas
swiftlint
visjs
object-detection
java-3d
csrf-protection
css-animations
kvc
mmap
shopware
internet-explorer-9
dbclient
large-file-upload
procdump
socialengine
phpfreechat
openoffice.org
objectlistview
ansible-playbook
graphenedb
avro4s
unixodbc
apple-news
qwt
taffy
osx-mavericks
network-flow
forever
hittest
jquery-filter
libpng
rotativa
etsy
websitepanel
persist
iad
ora-00900
dundas
sonarqube5.1.2
formatjs
pick
socketexception
onactivityresult
typeof
gridfs
gridcontrol
html4
plasma
type-equivalence
angularjs-controller
bluepill
locationlistener
self-extracting
oncheckedchanged
gdlib
floating
cxxtest
digest-authentication
ext3
boost-smart-ptr
phonon
sustainable-pace

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