-
Dec 19th, 2008, 10:29 AM
#1
View Resolver issue help needed
Hi,
My application uses Icefaces + Spring + Hibernate
I am using spring MVC for my login page.Once a user is authenticated he moves to the homepage which is a iface.First i configured my view resolver in ***-servlet.xml as
<bean id="viewResolver" class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
<property name="viewClass"> <value>org.springframework.web.servlet.view.JstlVi ew</value>
</property>
<property name="prefix">
<value>/jsp/</value>
</property>
<property name="suffix">
<value>.iface</value>
</property>
</bean>
due to which all subsequent iface requests used to fail because for them there was no URLMAPPING.i.e. i only need my homepage request to be trapped by spring.
I tried fixing it with ResourceBundleViewResolver :
<bean id="viewResolver"
class="org.springframework.web.servlet.view.Resour ceBundleViewResolver">
<property name="basename" value="com.lightspeed.util.views" />
</bean>
views.properties
myhome.class=org.springframework.web.servlet.view. JstlView
myhome.url=/jsp/myhome.jsp
but it gives me :
org.apache.jasper.JasperException: /jsp/myhome.jsp(7,6) <jsp:output> must not be used in standard syntax
I know it is just a simple thing i might be missing.Is there a way out.Please help any suggestions will be appreciated.
Thanx n Regards
Pankaj
-
Dec 19th, 2008, 11:05 AM
#2
Got it fixed
The extension has to be iface it worked.
But that was on weired error.
Thanx
Pankaj
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules