Linked Questions

1773 votes
31 answers
323k views

I know that something like the following three lines <%= x+1 %> <%= request.getParameter("name") %> <%! counter++; %> is an old school way of coding and in JSP version 2 ...
chmoelders's user avatar
  • 18.7k
214 votes
9 answers
617k views

In JSP how do I get parameters from the URL? For example I have a URL www.somesite.com/Transaction_List.jsp?accountID=5 I want to get the 5. Is there a request.getAttribute( "accountID" ) like there ...
Josh Curren's user avatar
  • 10.3k
24 votes
3 answers
56k views

I want to create an encoded URL for my site. Say for example, for this URL: "http://google.com/index.html" I want to give this URL to the client by URL encoding it.
Abrah's user avatar
  • 361
14 votes
3 answers
96k views

Hi i am trying to call regular java class in jsp page and want to print some on jsp page when i am trying to do i am not getting any output Here is my code MyClass.java package Demo; public ...
user3575501's user avatar
3 votes
5 answers
6k views

I am reading a String value from database and printing it onto a jsp page through a servlet. The Problem is that on the Jsp the String 'null' is getting printed in case the field in the database is ...
Stanley Mungai's user avatar
2 votes
2 answers
32k views

I am learning debugging and I am getting the following error when running tomcat through my browser. I am using Texpad to write and I guess tomcat after. An error occurred at line: 18 in the jsp ...
Opjeezzeey's user avatar
0 votes
2 answers
26k views

i am a beginer and am currently working on my final school project which require retrieving data from a database table and displaying the datas in an html page. i have searched alot but still no ...
user3546361's user avatar
1 vote
3 answers
3k views

I want to ask a question about the .jsp. What is the different between using the jsp syntax (e.g. <%! .. %>) and the XML syntax (e.g. <jsp:declaration>...</jsp:declaration>). Is ...
Questions's user avatar
  • 21.1k
1 vote
2 answers
3k views

<c:forEach items="<% EasyLookUp.lookUpList(EasyLookUp.PriceSources); %>" var="priceSourceItem"> ${priceSourceItem } </...
Jesse's user avatar
  • 535
3 votes
2 answers
3k views

I am using http client POST method to perform specific action in a website , for that it uses javascript of ajax connection which produces a requestID i.e var reqID = Math.floor(Math.random()*1000001)...
Aspirant's user avatar
  • 2,278
1 vote
1 answer
1k views

I have a menu bar on a web based program that is built using jsp. Usually, my company uses java scriplets to add functionality, but I have been reading about JSTL and was wondering if there was a way ...
Turtle's user avatar
  • 1,389
0 votes
1 answer
822 views

Am new to JSP and Servlets so please bear with me for my simple question I have designed a login page (Login.jsp) which validates the credentials entered by the user in the database and if the ...
Jack Clouseau's user avatar
1 vote
1 answer
998 views

I'm creating an HTML table dynamically in a JSP using Java for loop. But when I'm trying to assign a unique id to each TD by its position in table, I get a compilation error. what I would like to do ...
NatanC's user avatar
  • 71
1 vote
1 answer
993 views

Case 1 <% request.getParameter(""); %> Enter code here Case 2 jsp Scriptlet tag begin <jsp:scriptlet> request.getParameter(""); </jsp:scriptlet&...
Gaurav Arya's user avatar
0 votes
2 answers
576 views

I am trying to send the JAVA CLASS INSTANCE from my javascript code to the JSP file via ajax . How can i send ? I tried sending the instance like this : data = {} data['my_instance'] = ...
user1767962's user avatar
  • 2,109

15 30 50 per page