I'm not sure the default action solves the problem.
I am put this in my struts.xml file:
It appears that it only loads Login_show if a user types in an
*.action file. For example:
URL: http://www.mydomain.com/package/DOESNOTEXIST.action
Result: http://www.mydomain.com/package/Login_show.actio
The problem is that many servlet containers won't even execute the filter
chain unless there's a match. And http://www.domain.com/path doesn't
inherently match index.html. So it looks to see if there is a file matching
the ready to be dispatched. If so it starts the chain and
the filters get ex
Struts runs in a filter that applies to requests that come through, so
the welcome file in web.xml doesn't matter.
-Brian
On Wed, Apr 14, 2010 at 9:21 PM, Krunal Dhamelia wrote:
> I want to do the same thing but I didn't get you clear Brian.
> If we follow your solution then Could you please exp
I want to do the same thing but I didn't get you clear Brian.
If we follow your solution then Could you please explain little in brief
that how web.xml know about struts default action?
What should we put in web.xml for welcome file?
Krunal Dhamelia
On Wed, Apr 14, 2010 at 6:00 PM, Brian Thompso
No But i want that for all my application url's. Don't we have a filter that
will do this automatic encoding and decoding for us. So our actions will
always get decrpted url's and user will get encrypted.. Im looking that
kind of solution
--
View this message in context:
http://old.nabb
On Wed, Apr 14, 2010 at 4:22 PM, Burton Rhodes wrote:
> I'm sure this answer is trivial, but I can't figure how to do a
> server-side forward to a Struts action from my welcome page
> (index.jsp). Currently I have index.jsp "redirecting" the user, but I
> would like to eliminate the roundtrip tha
I'm not sure if this will work everywhere, but it works in Resin. If
you set your to index.action and put an empty (ie 0
length) file named index.action in the root directory of your war
file. When the server gets the request, it first checks to see if the
request matches a known resource, if n
I'm sure this answer is trivial, but I can't figure how to do a
server-side forward to a Struts action from my welcome page
(index.jsp). Currently I have index.jsp "redirecting" the user, but I
would like to eliminate the roundtrip that a "redirect" imposes (I've
had complaints from mobile users).
Before I go mucking around with the select.ftl, is there a simpler way to get
a unique id generated for each option written? The select tag does not
appear to support tagging its options with an identifier.
Peace,
Scott
--
View this message in context:
http://old.nabble.com/select-ui-control-o
Hi All,
I'm having following Action
- Action(Begin) -
public class AutocompleteField extends ActionSupport {
private String city;
private Map json;
public String execute() throws Exception() {
return SUCCESS;
}
public String
Are you just trying to "hide" the url parameteres that contain these
attached urls? If so, just put them in the session. That way the
user will never see them in the query string. If you are trying to
mask the entire URL, I'm not sure that is doable or good practice.
On Wed, Apr 14, 2010 at 8:2
Hello all,
I am new to Strut.I have a simple Struts2 Based application. say
simple Login Application Where user have a login screen on which he enters
his credentials and logs into a particular page in my appliacation. So for
this page i have attached some urls in query string. What i want i
can't you specify a filename in the result config in the struts.xml file,
albeit it the same for each result.
> Date: Wed, 14 Apr 2010 09:57:54 +0800
> From: haoniu...@gmail.com
> To: user@struts.apache.org
> Subject: Re: struts & PDF
>
> You can't. On
13 matches
Mail list logo