This seems like problems with the java parameter in jsp: include as well as https://stackoverflow.com/questions/6677981/eclipse-project-from-ant-build-file-for-a-java-web-project-on-svn -doesnt-import
I want to execute a Java file (run.java) from a JSP file (response.jsp) and return its output to a JSP file.
I use
Mac OSX 10.6.8, Apache Tomcat 6.0.16, Java1.6.0_29, Eclipse IDE Indigo,
I have a Tomcat JSP web application that searches for an XML content repository and returns the results to the user.
I was asked to enable the Java API, which crawls predefined websites using the same request. This should remain separate from the web application.
I need to send a user request in the Java API and return the content to JSP WebAp. Can someone give me some hits on publishing a request to an external Java API?
The JSP file already calls other .jsp files in the same WebAp, for example.
<%@ include file="siteheader.jsp" %> <jsp:include page="<%= session.getAttribute(\"device\") + \"header.jsp\"%>"> <jsp:param name="title" value="Response" /> </jsp:include>
I tried the following and more than a few other options to make it at least connect to an external java file, but can't break it.
<%@ include file="/Users/me/Documents/workspace/Slicer/src/slicer/Run.java" %>
I keep getting tomcat error, File "Macintosh HD / Users / me / Documents / workspace / Slicer / src / slicer / Run.java" not found
Any suggestions or help are greatly appreciated.
IN
Deepend
source share