- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
6 Posted Topics
The JSP import page directive expects classes to be declared in the form "package.class", e.g. <%@ page import = "mypackage.MyClass"%> So, do a bit of refactoring and put your classes under a package. It's good programming practice anyway... Also make sure your .class files (with their respective folder hierarchy) are …
Your resulting code is not valid HTML. You have multiple form tags and the submit button sends only the data of the first form. Open and close the <form> tag only once and outside of the <c:forEach>. Also, it's good practice to give the form an id so that you …
Have you really read the above mentioned examples and tutorials and still are at a loss? Well...regarding the connection to a MySQL database it all boils down to this: Your database server, when started, listens to a port (by default 3306) on your PC (localhost). The connection string for MySQL …
JSTL does not know of the Java variables you set, therefore in the following code the variable 'posts' cannot be used as is: [CODE]<% ArrayList<PostBean> posts = new ArrayList<PostBean>(Posts.getPosts()); %> <% //System.out.println(posts); %> <c:forEach var="post" items="${posts}"> <h2>${post.title}</h2> <p>${post.text}</p> </c:forEach> [/CODE] In this case c:forEach tries to find a variable called …
There doesn't seem to be any problem with your classes or the web.xml. Looking at the stacktrace, notice these lines: [CODE]java.lang.NullPointerException org.apache.jsp.userList_jsp._jspService(userList_jsp.java:63)[/CODE] This means the problem is in 'userList.jsp'. (Tip: Look for the compiled 'userList.jsp', the file path should be something like work/Catalina/localhost/CallLogger/org/apache/jsp/userList_jsp.java under Tomcat directory, and check what happens …
[QUOTE=afreen khan;1326354]when i am executing cmd commands through java ,even though we are having tns name its throwing the following error [COLOR="Red"]ERROR: ORA-12154: TNS:could not resolve service name Plz help!!![/QUOTE] Could you please post some code? What commands are you trying to call?
The End.
nohup