Total newbie for jsp..plz help
frendz...me a total newbie to jsp.havin some problem in it.i have already installed jdk,jwsdp2.0 wif its tomcat container.Already set the path for both ..such as JAVA_HOME=E:\Program Files\Java\jdk1.5.0_06
TOMCAT_HOME=E:\tomcat50-jwsdp
and could execute the sample jsp's perfectly.But having problem wif my jsp tutorials. such as when i wrote this counter codes in notepad..
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<tittle>Jsp Declaration</tittle>
</head>
<body>
<h1>Declarations</h1>
<%! int j=0;%>
<h2>Counter</h2>
<p>This page has been hit <span> <% ++j %> </span> times since it was first loaded.</p>
</body>
</html>
and i paste it in webapps in tomcat folder.
What should i do to view the jsp file?isaved as counter.jsp.if i right click and view it in IE/firefox it only shows the source code.is there any mistake in the codes?or i did i do anything wrong?how shall i compile these files?help me aout wif my basics please.thanks bro's..
"I pasted it in webapps in tomcat folder".
Webapplications need to go in their own subdirectory inside the webapps directory. Say you want a webapp 'test', then you would store your JSP as
TOMCAT_DIR\webapps\test\counter.jsp
Now you can open this JSP in your browser. Assuming Tomcat is running on the localhost and the default port 8080, the url would be:
http://localhost:8080/test/counter.jsp
If that doesn't work something is horribly misconfigured.
Similar Messages
-
help me plz.. i,ve got a apple i phone 4 and i'm the 2 owner of it and i dont have it's apple id and passward for it and 1st owner doesnt know it too so what can i do for this plz help me....
Neither can we. Only the original owner can help you, surely he/she can reset their password.
-
My iphone 3gs does not restore and is stuck on white screen and a message in itunes which says "waiting for itunes" plz help.
i have tried to restore it to different firmwares, tried resetting ,dfu mode , different systems etc etc nothing workedMy iphone 3gs does not restore and is stuck on white screen and a message in itunes which says "waiting for itunes" plz help.
i have tried to restore it to different firmwares, tried resetting ,dfu mode , different systems etc etc nothing worked -
Newbie Here..plz help
Hi Friends, I'm a newbie to Flash Media Server.. i have a
book titled "Programmin Flash Communication Server"..its kinda
outdated though.. does nyone know any site thats good for
newbies?im plannin on makin an two-way audio conferencin site..
which ll be later embedded into a php file..plz help me out..
thanx in advance10% of total build cost? So if you spend £1000 on a system you should spend £100 on the power supply? I spent just over half of that on my Tagan. I hear what you're saying mind... I good power supply is vital, the amount of people I've seen spending £10 on one just because it's 600W is unbelievable. Not their fault mind, the industry should explain WHY the rails and brand name are more important, they don't though. I wrote into PC Gamer a few months ago asking them to explain this to the greater public, and they gladly obeyed.
-
I want to have 3 tabs say Tab1, tab2, tab3 in my page and based on which tab is clicked , I have to display the contents of a table.
Ex: if Tab1 is clicked, i have to display contents of Table1 and tab2,table2 and so ...
Plz help with how to link the click on the tab to calling of the JSP file which retrives and displays the data???....
Its urgent ;plz helpdnamiot ,
I'm also looking for similar funcitonality.
the URL mentioned in your reply is not free ware. you know, it is tough to convince management to buy a software for the project even it is $1.
So if you know any taglibrary which is free ware , which generates maximum of 4 tabs and dynamic in nature, please let me know.
Thanks in advance
tekbond -
Help me plz .... ive been doing this for hours plz help
i get the error message like it says this song blah blah blah cant be played on this mp3 player its for the video i converted it and everything plz help me some1! this is driving me nuts
well if you havent converted the the movie in a file that the ipod understands it...there is no way that it could be on the ipod, unless you convert it, you can use a program called iSquint, i use it and it works, you could go to www.isquint.com and download it there, and there is also handbrake on that website that you could download and rip a dvd so you could put it on your ipod, so i hope this helps,
Merry Christmas!
Gib -
Sisenthil for u plz help me in ???????
dear
i read ur discussion about printing table now i also want to use smartjprint
i download the three jar files common,smartjprint,smartjswing and added into my class path.
i develop an java files and save in the same directory where the jar files are.but it send error on
import statements i have already 1.4.0 version.
plz help me i am very thankful to u.Please explain.
Of course there is a copy of the album on your iphone, you put it there: "while adding photo album from itunes to my iphone5" -
Class cast exception in jsp plz help
i have written a jsp where i displayed a text box with value given by user inside it
when the user enters some other value in text box and clicks on update button then i forwarded reqeust to servlet which will some data base work
servlet will forward again to the same jsp with the new value in text box.
but i am getting CLASS CAST EXCEPTION when servlet is forwarding reqeust to same JSP
help me what to do ........
thanking you in advance ..cheersdisplay cart.jsp file:
<%@ page import="java.util.*,org.*" %>
<html>
<body>
<%
Vector cartupdate = (Vector)session.getAttribute("cartlist");
for (int i = 0; i < cartupdate.size(); i++) {
CartListBean clb = (CartListBean)cartupdate.elementAt(i);
%>
<form name="itemslist<%=i%>" action="updateCart" method="post">
<input type="hidden" name="itemcode" value="<%=clb.getItemCode()%>">
<input type="hidden" name="itemname" value="<%= clb.getItemName()%>">
<input type="hidden" name="price" value="<%= clb.getPrice()%>">
<%= clb.getItemName() %>
<input type="text" name="qty" value="<%=clb.getQuantity()%>">
<input type="submit" name="<%=clb.getItemCode()%>" value="update">
</form>
<br>
<%
%>
<form name="tobuy" action="buysrv" method="post">
<input type="submit" name="buy" value="BUY">
</form>
</body>
</html>
updatecart servlet code:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import org.*;
import java.sql.*;
import java.util.*;
public class UpdateCart extends HttpServlet
public void service(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
HttpSession session=request.getSession(false);
Vector cartupdate = (Vector)session.getAttribute("cartlist");
for (int i = 0; i < cartupdate.size(); i++) {
org.CartListBean cart = (org.CartListBean)cartupdate.elementAt(i);
if((cart.getItemCode()).equals(request.getParameter("itemcode")))
org.CartListBean clb=new org.CartListBean();
clb.setItemCode(request.getParameter("itemcode"));
clb.setQuantity(request.getParameter("qty"));
clb.setItemName(request.getParameter("itemname"));
clb.setPrice(request.getParameter("price"));
cartupdate.setElementAt(clb,i);
session.setAttribute("cartlist",cart);
ServletContext application=getServletContext();
System.out.println("got finished");
RequestDispatcher rd=application.getRequestDispatcher("/displaycart.jsp");
rd.forward(request,response);
Message was edited by:
143java -
Urgent help required for update Plz help!!
Hi i am updating my E51 and its displaying updating software please wait estimated time left 15 minutes for the past 1 hour.
Please tell me what should i do....
Its really urgent pls help....Hi,
There might be a problem with either the NSU or the phone itself. Any updates on what happened?
Next time make sure you meet the certain system requirements before proceeding with the update.
Message Edited by nj15 on 01-Oct-2008 01:44 PM -
Unable to install itunes 8.1.1 need it for iphone plz help
i can download the 8.1.1 intaller but when i install a msg pops up which reads
"the windows installer service could not be accessed this can occur if you are running windows in safe mode or if the windows installer is not currently installed contact your support personel for assistance"
i have tried to download a new installer but it says mine is the newest so i checked out safe mode and i found out how to turn it on but not how to turn safe mode off but it does seem to be off! is there any other things that could be stopping this from installing??? any advivce would be much appreciated thankyou!Hey there,
Check out this Microsoft Support page with potential solutions to this error by clicking [here|http://support.microsoft.com/kb/319624]. Hope it helps.
B-rock -
I'm running tomcat and apache and basic servlets work fine, however when I try the usebean tag; I get an error message "CLASS not found". The class object is in the same directory as the servlet?
Any suggestions?
Kurt Radamaker
Orlando FLI don't think it is. How do I tell? I'm pretty green with jsp and java, so I'm sorry I can't be of more help.
Kurt Radamaker
Orlando FL -
For statement for gotoAndStop plz help!
Hi,
NumberDots();
var myvar
function NumberDots():void
for (var i:int=1; i<=5; i++)
myvar = "btn"
trace(i)
myvar+i.gotoAndStop(i)
trace("looped " + i);
trace("myvar = " + myvar);
I have this code and am trying to get the 5 btns on my screen to go to a diffrent keyFrame each
first one to frame1 second to 2 and etc
if u can help ill rly apriciate it
thx pavelvar buttons:Array = new Array(btn1, btn2, btn3, btn4, btn5);
NumberDots();
function NumberDots():void {
for (var i:int=0; i < buttons.length; i++) {
var frame:Number = i+1;
buttons[i].gotoAndplay(frame);
Put the buttons in an array and refer to array instead. In the array simply put the instance names of the buttons. in the order you want them to move (1,2,3). -
Flash player wont install for me. plz help
I am using IE9. i tried uninstalling,installing.. i have gotten to the install page and it looks like it will work but the box that says installing adobe download manager. Just disappears idk wat to do. nothing will work for me. if you can help TY.
Youtube and all other sites just tell me that i need to upgrade to the newest version.I am having the same problem. First it was flashing in t
he wrong place. I have uninstalled, Installed, updated, restored, and everything thing else that
I've read to do. And still it will not work at all. It acts as though
it's not there, when it says it's in the programs. I am flabergasted.
As I see others are -
Hi
Im in india and im using my iphone with tata docomo. I try everything to activate my phone no as facetime but activation was unsuccessful. Plz confirm how to activate this. Other service provider is activating it instantly. I talked to my carrier they said they have no restriction for facetime.Facetime activation relies on 'silent' SMS messages to Apple's activation servers in the UK. They are not a supported carrier. You'll have to work it out with them or switch to a supported carrier.
-
I want a doc about LSMW steps for HR,PLZ help me!
hi everyone:
Can anyone pls send me a doc with LSMW steps regarding some HR function/project (as an example) for which I would be more than grateful.
thanks!
Message was edited by:
Zsolt MarkusHi 4K!
I hope you already know the rules of SDN -
> no private mailing, knowledge sharing platforms are Forums, Blogs, Articles, etc...
Please do not use your e-mail.
I have deleted them from your question.
Best regards,
Zsolt
Maybe you are looking for
-
NEW FIELDS FOR PRICE DETERMINATION in MM
Hi all experts, we have added new field in customizing so that in the purchase order in MM we can use new fields for price determination. However we do not finde the exit or program were we can set a value for these fields. for instance, we want to
-
How to simulate the defect in dev environment
I have a qa database and the issue i got is some unwanted data getting inserted into the table.this is given as a defect. The qa environment cannot be used for testing because it can only be queried (select) but no insert , update. And the objects ca
-
Hello all, I'm interested to know which report settings are customisable by report users/in the report viewers. For that purpose I have downloaded a trial version of CR. Are their the same customization possibilities in the CR viewer as in the CR2008
-
Screens pop up one at the time?
I am building HP 5371A whic have different modes which cary different screen display. I have build all the modes as separate VI's and now I will put them together but I am wondering what block would make certain front panel show up when I activate th
-
ITunes 9 store classical music nightmare
I foolishly upgraded my iTunes from 8 to 9 and now I am finding it much harder to find things. One reason is that Composer and Release Date are no longer displayable in the "See all" view (which requires an extra click and wait to get to). Another re