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

Adding Parameter to href tag before uri
Servlet exception stream closed jsp
creating and exporting a csv from Display tag table
bean write to number type id
restrict image file size in alloy UI
The function getContextPath must be used with a prefix when a default namespace is not specified
how can i retrive parameters from EncodeURL using jsp?
onclick tag giving error in h:commandLink
Displaytag - How to pass hidden value in url?
Embedding Tag Files in a JAR
Errors when the compiler is trying to build a custom JSP tag based on an Java Bean
Creating nested custom tag using jsp2 tag files
Unable to access session on JSP
Dealing with <html:options>
No tag “tableFacade” defined in tag library imported with prefix “jmesa”
how to refer values of one jsp file to other jsp

Categories

HOME
wso2
listview
openmp
debugging
minimum-spanning-tree
heroku
iot
sqlite-net-extensions
rdf
ojdbc
fancybox
rascal
modelica
circular-dependency
alignment
leiningen
orchardcms
serverless-framework
after-effects
saxon
serilog
nhibernate-envers
google-cloud-speech
viewport
immutable.js
conemu
autoconf
jasonette
sox
devops
kannel
replaceall
saas
wtx
large-file-upload
data-manipulation
gtrendsr
calibre
html5-fullscreen
devextreme
vxworks
dosbox
adobe-premiere
swisscomdev
swift3.0.2
service-discovery
greenrobot-eventbus
gzipstream
fakeiteasy
no-www
statsd
brightcove
crypt
cubes
asp.net-4.5
google-web-starter-kit
plottable.js
bstr
storekit
connect-by
testng-dataprovider
captivenetwork
bluemix-app-scan
itextpdf
netmq
cartesian-product
comobject
jmeter-maven-plugin
dukescript
embedded-code
android-listview
microbenchmark
processmodel
python-green
fscommand
java.util.concurrent
android-imagebutton
bitcoinj
poller
mechanize-ruby
undefined-reference
mcts
spring-io
random-seed
comaddin
interface-orientation
dice
first-responder
ohm
semantic-diff
assembly-loading
boost-filesystem
servicehost
appendto
site.master
asp.net-mvc-areas
suppress
mozilla-prism
compiler-specific
boost-smart-ptr
aquaticprime

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