Re: [S2] Welcome Page as Action?

2010-04-14 Thread Burton Rhodes
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

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Chris Pratt
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

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
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

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Krunal Dhamelia
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

Re: Encoding URL for Struts2

2010-04-14 Thread sand...@i2it
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

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Brian Thompson
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

Re: [S2] Welcome Page as Action?

2010-04-14 Thread Chris Pratt
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

[S2] Welcome Page as Action?

2010-04-14 Thread Burton Rhodes
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).

select ui control option iterator

2010-04-14 Thread stanlick
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

Using json in Struts 2.1.8.1

2010-04-14 Thread sharath karnati
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

Re: Encoding URL for Struts2

2010-04-14 Thread Burton Rhodes
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

Encoding URL for Struts2

2010-04-14 Thread sand...@i2it
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

RE: struts & PDF

2010-04-14 Thread adam pinder
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