veeresh soni

Greenhorn
+ Follow
since Dec 10, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by veeresh soni


I think problem is in your web xml i have mention place where the problem . check out if this change will work or not.

# # <?xml version="1.0" encoding="ISO-8859-1"?>
# # <!--<!DOCTYPE web-app
# # PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
# # "http://java.sun.com/dtd/web-app_2_3.dtd"> -->
# #
# # <web-app>
# #
# # <display-name>
# # The name of the application
# # </display-name>
# # <description>
# # Servlet
# # </description>
# #
# # <context-param>
# # <param-name>name_of_context_initialization_parameter</param-name>
# # <param-value>value_of_context_initializtion_parameter</param-value>
# # <description> Servlet </description>
# # </context-param>
# #
# # <servlet>
# # <servlet-name>MovieServlet</servlet-name>
# # <description>Servlet</description>
# # <servlet-class>MovieServlet</servlet-class>
# # <init-param>
# # <param-name>foo</param-name>
# # <param-value>bar</param-value>
# # </init-param>
# # </servlet>
# #
# # <servlet> // Change is here you have not started the servlet tag and you need to provide mappng also for the same
# # <servlet-name>MovieServletB</servlet-name>
# # <servlet-class>MovieServletB</servlet-class>
# # </servlet>
# #
# #
# # <servlet-mapping>
# # <servlet-name>MovieServlet</servlet-name>
# # <url-pattern>/servlet/*</url-pattern>
# # </servlet-mapping>
# #
# #
# # <session-config>
# # <session-timeout>30</session-timeout>
# # </session-config>
# #
# # </web-app>
11 years ago
Are you doing computation in <logic:present> or outside of it if it is out side then place it in that block and check if it is working or not or define object outside the logic:present tag <% Object obj = null; %>
11 years ago
try by removing .java extension
11 years ago
I think you should use another way to get dispacher


getServletContext().getRequestDispatcher("/servlet/myspace");


try this
11 years ago
Yes i think you can but you will have to set session in your model using jsp or servlet class suppose that your class is test in which you need session and the servlet is Check then you can do that in this way.


public class Check extends HttpServlet{

protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
// TODO Auto-generated method stub
HttpSession session= req.getSession();
Test test = new Test();
test.setSession(session);
}

class Test
{
HttpSession sessionObject = null;
public void setSession(HttpSession session)
{
this.sessionObject = session;
}
}
}


now your session object is same as the servlet session
11 years ago
I think you should use xStream but it is not highly recomanded but if your xml file tags is fix then it is ok to use xStream class.

xStream.fromXML(stringXML) this will return object and you can store information using pojo and use that according to your need.
11 years ago
JSP
y don't you use request.setAttribute() method
11 years ago
JSP
I think you do not have all jar files required please check
11 years ago
Check out the jar file for driver is having same driver .
Read Triggers In Database They will Help You Out
I think You should use XStream which will parse your file or String and return the object so you can make pojo object to collect it.