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

JSP Quiz process is not giving me the correct percentage scored
Refer the id variable of logic - iterate using jstl-el
Invalid tagdir attribute while web-fragment is used
JSP foreach tag for two variables
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

Categories

HOME
at-command
amortized-analysis
sharepoint-designer
youtube-api-v3
c#-2.0
cross-browser
mvvmcross
datastax-java-driver
qore
windows-phone-7
carthage
plunker
scriptcs
cloudhub
css-animations
language-agnostic
virtualdub
fluentvalidation
srcset
r-raster
lightswitch-2013
sql-server-2012-express
directx-10
google-cloud-endpoints-v2
copying
mapdb
wpf-controls
jmonkeyengine
android-ble
libraries
objectlistview
bootstrapper
preconditions
grid.mvc
nand2tetris
fakeiteasy
outlook-api
angular2-meteor
user-accounts
apache-fop
typescript1.8
svmlight
media-player
dtexec
windows-mobile-6.5
python-cryptography
flutterwave
hittest
nested-sets
skobbler-maps
bstr
clang-static-analyzer
sdf
rvest
energy
eclipse-clp
tarjans-algorithm
sonarqube5.1.2
e10s
internet-connection
jsctypes
spring-io
ora-00911
chronoforms
twrequest
jspinclude
enter
locationlistener
self-extracting
celltable
imac
subviews
meego
firefox4
memory-size
javap
adrotator
ctp4
eqatec
xetex
multiple-languages

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