X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3
JDK Version : 1.3.1
hi
I write the jsp file home that call the jsp file orderer (that create the new document).but when is called the fields are not empty and had the value ?document?. what is mean?
and when is commit it has error this:
------------------------
Internal Servlet Error:
javax.servlet.ServletException: Current document not defined … request parameters cannot be processed.
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at Ebook_1._jspService(Ebook_1.java:282)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.forward(Unknown Source)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
at view_1._jspService(view_1.java:1099)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
--------------------------------------
and I want the insert current day in orderer.jsp and store it in the field.what am i doing?
I send two page home.jsp and orderer.jap.please guide me(pages in pershian language)
thanks alot
home.jsp (4.24 KB)
hi
I send the orderer.jsp that home.jsp call it
thanks alot
orderer.jsp (18.8 KB)
Hello,
within your page ‘home.jsp’ you are using an action within a form context with document name ‘login’.
<xapp:form document="login">
...
<xapp:action type="create" schema="request">
...
</xapp:action>
</xapp:form>
</pre><BR><BR>Therefore, the document you create will have the name 'login'. Within your page 'orderer.jsp' you access to a document without name since you do not define the document attribute of the form tag.<BR><BR>In this case, the name 'current' is used to look for a document with this name.<BR><BR>My propose, give your document a new name because 'login' is not sufficient, call 'currentOrderer' for instance. Use this name within your home.jsp.<BR><BR><pre class="ip-ubbcode-code-pre">
<xapp:form document="login">
...
<xapp:action type="create" schema="request" document="currentOrderer">
...
</xapp:action>
</xapp:form>
</pre><BR><BR>Within your orderer.jsp you must set the document attribute of the xapp:form tag<BR><BR><pre class="ip-ubbcode-code-pre">
<xapp:form document="currentOrderer">
...
</xapp:form>
Bye,
Christian.