Spring mapping

I am working on a project where I have to make a jsp page form where new users can request for their account creation. I have saved my jsp page in Pages outside Web-inf foler and i m doing coding in spring configuration file. I need to know whether im doing correct or not:

can i use url mapping with view resolver

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">

<property name="viewClass">

<value>org.springframework.web.servlet.view.JstlView</value>

</property>

<property name="prefix"><value>/WEB-INF/jsp/</value></property>

<property name="suffix"><value>.jsp</value></property>

<property name="order"><value>1</value></property>

</bean>

<bean id="RequestAccountController" class="RequestAccountController"/>

<bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">

<property name="mappings">

<props>

<prop key="/requestAccount.jsp">requestAccountController</prop>

</props>

</property>

</bean>

<bean id="nameViewResolver" class="org.springframework.web.servlet.view.BeanNameViewResolver">

<property name="order"><value>0</value></property>

</bean>

</beans>

[1654 byte] By [akaura] at [2007-11-27 11:49:36]
# 1

Well, does it work?

georgemca at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 2

i hope it will work.. before that i wanted to make sure that this is correct..

akaura at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 3

> i hope it will work.. before that i wanted to make

> sure that this is correct..

LOL

Just try it, man. You're not going to tell me you trust the opinions of some guy on the internet more than you trust the actual results of running your code? If I say it's fine, but Spring barfs at it, who are you going to believe? How are you going to persuade Spring that what you've done must be correct, because georgemc on the Java forums said so? What harm would come of you just running it? You're not going to bring every scrap of code to the forums for pre-compilation and pre-deployment processing, I hope!

georgemca at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 4

ok ok.. i am completing the code and then i ll run..

thanx for ur help

akaura at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 5

you're, um, welcome. I guess

georgemca at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 6

no its not workin.. beside that its also disturbing existing code..

akaura at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 7

> no its not workin..

In what way?

> beside that its also disturbing

> existing code..

How?

georgemca at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...
# 8

i have a login page and when i run this code i tried to login to my project so i gave me error. login page is also outside the Web-inf foler.

akaura at 2007-7-29 18:26:16 > top of Java-index,Java Essentials,New To Java...