Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

Cannot create rewrite URL: java.net.MalformedURLException:

Cannot create rewrite URL: java.net.MalformedURLException:

 
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans
View previous topic :: View next topic  
Author Message
juniormember



Joined: 28 Jun 2008
Posts: 154

PostPosted: Fri Nov 20, 2009 10:26 am    Post subject: Cannot create rewrite URL: java.net.MalformedURLException: Reply with quote

hi

I am getting with global forward in struts

Quote:
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named cancel



in struts-config.xml

Code:

<global-forwards>
    <forward name="cancel" path="/main.jsp" redirect="true"/>
</global-forwards>


in JSP i am using link as

Quote:
<html:link forward="cancel">forward</html:link>


help!!!
Back to top
View user's profile Send private message
seniormember
Site Admin


Joined: 20 Jul 2008
Posts: 77

PostPosted: Sat Nov 21, 2009 4:14 am    Post subject: Reply with quote

Is this global is in same module of struts?


Quote:
<global-forwards>
<forward name="cancel" path="/main.jsp" redirect="true"/>
</global-forwards>


If you are using this from same module then it is ok

otherwise it will give error,
Quote:

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named cancel


link should be in same struts congfi xml

<html:link forward="cancel">forward</html:link>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Java,Struts framework, Velocity, JSF, Hibernate, Servlet, JSP, javaBeans All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack