Tagore Noo

Greenhorn
+ Follow
since Nov 29, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tagore Noo

Hello everyone. I have a question regarding the dom. It will be great if someone provides some help.

I have a jsp (Page 1) included in another jsp (Page 2) .

Can we access Page 2's DOM from Page 1's javascript? Like an alert box from page 1 if we click on page 2's body..

Appreciate any help..
12 years ago
JSP
<html:form action="/login">
change this to <html:form action="login.do"> and try.
12 years ago
Hi everyone..
I have a problem with my jsp's.

500 Internal Server Error
java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)


I have 3 java projects project1, project2, project3. I am using oracle oc4j 10.1.2 container.
project2 and project3 use project1 as a jar file.
When I edit a jsp page in either project2 or project3 and do an ant build that copies project1 jar file to project2 and project3 and then when I refresh the page, i am getting the above error. I have to restart the server everytime I modify any jsp page.
Can anybody throw some light regarding this and suggest me how the page refresh will work without restarting the server?

project1 build.xml..


<target name="makejar" description="Create a jar for the project">
<jar jarfile="${jarbuild}/common.jar" basedir="${src}"/>
</target>

<target name="copyJar" depends="makejar">
<copy todir="${DestDir}">
<fileset dir="${jarbuild}"/>
</copy>
</target>

project2 build.xml

<property name="jspsrcdir" location="${basedir}/WebContent" />
<property name="jspdestdir" location="XXXXX" />

<target>
<copy todir="${jspdestdir}">
<fileset dir="${jspsrcdir}">
</copy>
</target
12 years ago
<html:link action="helloWorld">Reports</html:link>

Try <html:link action="helloWorld.do">Reports</html:link>
12 years ago