Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Beginner question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Enrique  
View profile  
 More options Oct 23, 10:12 pm
From: Enrique <enrique.garcia.c...@gmail.com>
Date: Fri, 23 Oct 2009 19:12:16 -0700 (PDT)
Local: Fri, Oct 23 2009 10:12 pm
Subject: Beginner question
Hello I just found urlrewrite and tested it with Struts 2.

This is my rule

<rule>
        <from>/test/status/</from>
        <to type="redirect">%{context-path}/HelloWorld.action</to>
</rule>

So when I go to http://localhost/test/status/ I'm redirected to
Struts HelloWorld.action which is ok
but then the url changes to this http://localhost/HelloWorld.action
but I want the url to remain like this http://localhost/test/status/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avlesh Singh  
View profile  
 More options Oct 24, 8:30 am
From: Avlesh Singh <avl...@gmail.com>
Date: Sat, 24 Oct 2009 18:00:16 +0530
Local: Sat, Oct 24 2009 8:30 am
Subject: Re: Beginner question
Remove the type="redirect" attribute from your <to> part of the rule.
The default value is "forward", and I guess that is what you want.

Cheers
Avlesh

On 10/24/09, Enrique <enrique.garcia.c...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Enrique  
View profile  
 More options Oct 26, 9:52 pm
From: Enrique <enrique.garcia.c...@gmail.com>
Date: Mon, 26 Oct 2009 18:52:27 -0700 (PDT)
Local: Mon, Oct 26 2009 9:52 pm
Subject: Re: Beginner question

Thank you.
That did the trick!!

On Oct 24, 6:30 am, Avlesh Singh <avl...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google