hi all,
i have a problem to correctly mapping a servlet from a jsp page previously 
dispatched from a portlet.
I have A 4.0.4GA and Portal 2.4 beta1.
my url aplication is: http://localhost:8080/portal/portal/default/IndexPage
I have a portlet, from portlet I call requestdispatch method to a jsp file 
(located in /myportal/user/fileupload.jsp/). In this jsp i have a form, which 
action must point to a servlet (commons-fileupload-1.1.1 servlet).

I've tried many combination but always can't reach the servlet.

My xml files:

web.xml:

  | ...
  |     <servlet>
  |             <servlet-name>UpLoaderFile</servlet-name>
  |             
<servlet-class>mywork.utility.uploadfile.UploadFile</servlet-class>
  |     </servlet>
  |     
  |     <servlet-mapping>
  |             <servlet-name>UpLoaderFile</servlet-name>
  |             <url-pattern>/uploaderfile</url-pattern>
  |     </servlet-mapping>
  | ...
  | 

jboss-web.xml

  | <jboss-app>
  |    <app-name>myportal</app-name>
  | </jboss-app>

jboss-app.xml

  | <xml version="1.0">
  | <jboss-web>
  |     <context-root>/myportal</context-root>        
  | </jboss-web>
  | </xml>

myportal-object.xml
<deployments>
  | 
  |     <portal>
  |             <portal-name>myportal</portal-name>
  |             <supported-modes>
  |                     <mode>view</mode>
  |             </supported-modes>
  |             <supported-window-states>
  |                     <window-state>normal</window-state>
  |                     <window-state>minimized</window-state>
  |                     <window-state>maximized</window-state>
  |             </supported-window-states>
  |     </portal>
  |  
  |    <deployment>
  |       <if-exists>overwrite</if-exists>
  |       <parent-ref>default</parent-ref>
  |       <page>
  |          <page-name>IndexPage</page-name>
  |          <properties/>
  |          <window>
  |             <window-name>Central Controller Window</window-name>
  |             <instance-ref>CentralControllerInstance</instance-ref>
  |             <region>center</region>
  |             <height>0</height>
  |          </window>
  |          <window>
  |             <window-name>User Login Window</window-name>
  |             <instance-ref>UserPortletInstance</instance-ref>
  |             <region>left</region>
  |             <height>0</height>
  |          </window>
  |          <window>
  |             <window-name>Theme Window</window-name>
  |             <instance-ref>ThemeSelectorPortletInstance</instance-ref>
  |             <region>left</region>
  |             <height>0</height>
  |          </window>
  |       </page>
  |    </deployment>
  | </deployments>



In the actionm field of the form (in the jsp file) I've tried:
"/myportal/uploaderfile"
"/uploaderfile"
myportal/uploaderfile
uploaderfile

getting Error HTTP Status 404 for first 2, and nothing for last two

I'm stuck and don't know what else do.

Any suggestion will be appreciated

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953130#3953130

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953130

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to