Re: Form handling by direct URL in Struts 1.3.8

2012-06-14 Thread Takanori Hayashi
PS In that case, forward to another JSP on that file userInfo information should not be used. (2012/06/15 9:10), Takanori Hayashi wrote: Hello Anjib, Assumed that you made the distinction on validate method, then if forwarded JSP page is using userInfo session like ${userInfo.use

Re: Form handling by direct URL in Struts 1.3.8

2012-06-14 Thread Takanori Hayashi
Hello Anjib, Assumed that you made the distinction on validate method, then if forwarded JSP page is using userInfo session like ${userInfo.userName} the same error is shown. [Caused by: javax.servlet.jsp.JspException: Cannot find bean: "userInfo" in any scope ] Because you are us

Re: Form handling by direct URL in Struts 1.3.8

2012-06-14 Thread Dave Newton
On Thu, Jun 14, 2012 at 9:18 AM, Anjib Mulepati wrote: > I don't think problem is mapping correct page from Action class. If you > look into my initial code posting /changepassword need form validation so > it calls the validate() method and since there is no data it fails. I have > input="change

Re: Form handling by direct URL in Struts 1.3.8

2012-06-14 Thread Anjib Mulepati
I don't think problem is mapping correct page from Action class. If you look into my initial code posting /changepassword need form validation so it calls the validate() method and since there is no data it fails. I have input="changePasswordPage" which takes to the tile where it look for the s

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Takanori Hayashi
Hello Anjib, [Error message] Caused by: javax.servlet.jsp.JspException: Cannot find bean: "userInfo" in any scope [Cause] If someone type direct URL http://localhost:8080/MyApp/changepassword.do, no userInfo in the session. Then userIsLoggedIn method returns false, return mapping.findForwa

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
I am looking for such prevention measure. Right now for most action I have Base action where it check whether user has logged in or not. On 6/13/2012 1:21 PM, Dave Newton wrote: On Wednesday, June 13, 2012, Anjib Mulepati wrote: Where and how I do that? In Struts 1.2 you'd use a custom reque

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Dave Newton
On Wednesday, June 13, 2012, Anjib Mulepati wrote: > Where and how I do that? In Struts 1.2 you'd use a custom request processor (or just a filter). Not sure about 1.3. How are you preventing access to protected pages now? Dave

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
codes in the Action ChangePasswordAction? On Wed, Jun 13, 2012 at 10:58 PM, Dave Newton wrote: Then it's likely you're doing something wrong if you're forwarding to a page before creating the info that page needs. Dave On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati Eve

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Dave Newton
;>/** >>>>> * >>>>> * @param oldPwd >>>>> */ >>>>>public void setOldPwd(String oldPwd) { >>>>>this.oldPwd = oldPwd; >>>>>} >>>>> >>>&

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
ction ChangePasswordAction? On Wed, Jun 13, 2012 at 10:58 PM, Dave Newton wrote: Then it's likely you're doing something wrong if you're forwarding to a page before creating the info that page needs. Dave On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati Even though I put valida

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Jason Zheng
>>>/** >>> * This is the action called from the Struts framework. >>> * @param mapping The ActionMapping used to select this instance. >>> * @param request The HTTP Request we are processing. >>> * @return set of errors. >>> *

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
page before creating the info that page needs. Dave On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati wrote: Even though I put validation in ActionForm validate() method failure will take to changePasswordPage. I do have validation to check form field. On 6/13/2012 9:17 AM, Dave Newton

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Dave Newton
} > >/** > * > * @param mapping > * @param request > */ >@Override >public void reset(ActionMapping mapping, HttpServletRequest request) { >userName = ""; >oldPwd = ""; >password = ""; &g

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
Mulepati wrote: Even though I put validation in ActionForm validate() method failure will take to changePasswordPage. I do have validation to check form field. On 6/13/2012 9:17 AM, Dave Newton wrote: Maybe some sort of validation would be helpful. Dave On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulep

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Jason Zheng
Newton wrote: > > > >> Maybe some sort of validation would be helpful. > >> > >> Dave > >> > >> On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati > >> wrote: > >> > >> Hi All, > >>> > >>> I have

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Dave Newton
sswordPage. I do have validation to check form field. > > > On 6/13/2012 9:17 AM, Dave Newton wrote: > >> Maybe some sort of validation would be helpful. >> >> Dave >> >> On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati >> wrote: >> >> Hi

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
: Hi All, I have question regarding handling form submission by direct URL in Struts 1.3.8 I have a page to change password which user can access after they login. URL for that page is http://localhost:8080/MyApp/**changepassword.do<http://localhost:8080/MyApp/changepassword.do> I have

Re: Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Dave Newton
Maybe some sort of validation would be helpful. Dave On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati wrote: > Hi All, > > I have question regarding handling form submission by direct URL in Struts > 1.3.8 > > I have a page to change password which user can access after the

Form handling by direct URL in Struts 1.3.8

2012-06-13 Thread Anjib Mulepati
Hi All, I have question regarding handling form submission by direct URL in Struts 1.3.8 I have a page to change password which user can access after they login. URL for that page is http://localhost:8080/MyApp/changepassword.do I have action mapping as follow: scope="request&q

Re: removing the extension in url in struts 2

2008-12-12 Thread RajeshSR
set the constant in ur struts.xml file removing the extension in url in struts 2 Jq Jr wrote: > > Hi All, > > Can anyone tell me how to remove the extension of url in struts 2 ? > > Like > /login instead of > /login.action > -- View this message in cont

Re: removing the extension in url in struts 2

2008-10-09 Thread Alex Coles
.properties files. > > Actually I am not using the struts.properties instead I am putting those > > values in tag. > > Is it required to have struts.properties to remove the extension? > > > > > > Thanks > > > > > > Jq Jr wrote: &

Re: removing the extension in url in struts 2

2008-10-03 Thread Owen Berry
g? > And can you post your struts.xml and struts.properties files. > Actually I am not using the struts.properties instead I am putting those > values in tag. > Is it required to have struts.properties to remove the extension? > > > Thanks > > > Jq Jr wrote: >> >&

Re: removing the extension in url in struts 2

2008-10-03 Thread Jq Jr
? Thanks Jq Jr wrote: > > Hi All, > > Can anyone tell me how to remove the extension of url in struts 2 ? > > Like > /login instead of > /login.action > -- View this message in context: http://www.nabble.com/removing-the-extension-in-url-in-struts-2-tp19760365p

Re: removing the extension in url in struts 2

2008-10-01 Thread Owen Berry
be configured in the struts.properties > struts.action.extension=action > > but i dont knoe if you can leave it empty. > > maybe you should consider to you the rest-plugin. > > > > Jq Jr schrieb: >> >> Hi All, >> >> Can anyone tell me how to remove the exten

Re: removing the extension in url in struts 2

2008-10-01 Thread duschhaube
Hi, the extension can be configured in the struts.properties struts.action.extension=action but i dont knoe if you can leave it empty. maybe you should consider to you the rest-plugin. Jq Jr schrieb: Hi All, Can anyone tell me how to remove the extension of url in struts 2 ? Like /login

removing the extension in url in struts 2

2008-10-01 Thread Jq Jr
Hi All, Can anyone tell me how to remove the extension of url in struts 2 ? Like /login instead of /login.action -- View this message in context: http://www.nabble.com/removing-the-extension-in-url-in-struts-2-tp19760365p19760365.html Sent from the Struts - User mailing list archive at

Re: hiding .action in url in struts 2

2008-01-22 Thread neha bhatt
uillaume Carré >> >> --------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/hiding-.ac

Re: hiding .action in url in struts 2

2007-09-07 Thread Mirbek Nosinov
thanks. it works i tried just struts.action.extension= and it works 2007/9/7, Guillaume Carré <[EMAIL PROTECTED]>: > > 2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>: > > How to hide .action extension in url for my actions > > > > for example > > if i have url for my action like > > http://localho

Re: hiding .action in url in struts 2

2007-09-07 Thread Guillaume Carré
2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>: > How to hide .action extension in url for my actions > > for example > if i have url for my action like > http://localhost:8080/cms2/StartPage.action > > but i need like > http://localhost:8080/cms2/StartPage you can modify the extension in struts.pro

hiding .action in url in struts 2

2007-09-07 Thread Mirbek Nosinov
How to hide .action extension in url for my actions for example if i have url for my action like http://localhost:8080/cms2/StartPage.action but i need like http://localhost:8080/cms2/StartPage How can i do it? Thanks in advanced

Re: Forward to remote URL in struts

2007-06-15 Thread Laurie Harper
SURESH GUDIVADA wrote: Hi, I have tried using request.getRequestDispatcher.forward() and returning the actionforward to null I used the below code String customURL = getcustomURL(); RequestDispatcher req = request.getRequestDispatcher(customURL); req.forward(request, response); But it is not

Forward to remote URL in struts

2007-06-14 Thread SURESH GUDIVADA
Hi, I have tried using request.getRequestDispatcher.forward() and returning the actionforward to null I used the below code String customURL = getcustomURL(); RequestDispatcher req = request.getRequestDispatcher(customURL); req.forward(request, response); But it is not working. it always pre-

Re: external URL in struts app

2006-01-05 Thread Dave Newton
Christopher Becker wrote: By proxy action, do you refer to the external url that I have already mentioned? If so, that is what I am trying to circumvent. The external servlet returns a response which I do not wish to display to the user of our application and the format of the response (over whi

Re: external URL in struts app

2006-01-05 Thread Christopher Becker
By proxy action, do you refer to the external url that I have already mentioned? If so, that is what I am trying to circumvent. The external servlet returns a response which I do not wish to display to the user of our application and the format of the response (over which I have no control) does no

Re: external URL in struts app

2006-01-04 Thread Michael Jouravlev
The easiest way imho is to submit to your proxy action, which submits to external server, receives response and returns this response to browser. Michael. On 1/4/06, Christopher Becker <[EMAIL PROTECTED]> wrote: > Greetings all; > > I have a Struts app (v1.27) and wish to add a user form whose AC

external URL in struts app

2006-01-04 Thread Christopher Becker
Greetings all; I have a Struts app (v1.27) and wish to add a user form whose ACTION is a URL that is external to the application ( a remote servlet). I want to provide a "message sent" confirmation page to the user, but dont know how to do this with an external form submission. Is there a way t

Re: URL in struts

2005-12-05 Thread Frank W. Zammetti
Not *entirely* true about bookmarking either, although admittedly it is more work... I had one frame-based site that required bookmarkability (is that a word?) on every page. To accomplish that, I had a "Bookmark This Page" link that fired a Javascript function to add the appropriate URL. I

Re: URL in struts

2005-12-05 Thread Laurie Harper
Michael Jouravlev wrote: On 12/5/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Or the fourth option is to use framesets. Of course if you do this, with any of these approaches, you'll be causing your users pain in that there will be no way they can bookmark pages and the browser's Refresh option

Re: URL in struts

2005-12-05 Thread Deepa Khetan
In Fact, I have made the application in the way in which, back and refresh buttons cannot be used. If the user at any point on time clicks back or refresh, he is logged out and his session expires!! Also, since i am maintaining session and security for the site, bookmarking of pages is not allowed.

Re: URL in struts

2005-12-05 Thread Michael Jouravlev
Got mistake to fix. Instead this: > Michael Jouravlev wrote: > You can go with a more elaborate path to avoid problems with Back > button and implicit resubmits on page refresh. In this case you accept > an initial request, no matter GET or POST. Then you redirect to a > particular action processin

Re: URL in struts

2005-12-05 Thread Laurie Harper
Michael Jouravlev wrote: On 12/5/05, Deepa Khetan <[EMAIL PROTECTED]> wrote: Hi, Just a bit of a question. Can i do some thing in Struts, which will enable me to show the same URL all the time, for my aplication?? i mean i do not want to show in the URL which action mapping i am calling, as in,

Re: URL in struts

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Deepa Khetan <[EMAIL PROTECTED]> wrote: > Hi, > > Just a bit of a question. Can i do some thing in Struts, which will enable > me to show the same URL all the time, for my aplication?? i mean i do not > want to show in the URL which action mapping i am calling, as in, > https:// tha

URL in struts

2005-12-05 Thread Deepa Khetan
Hi, Just a bit of a question. Can i do some thing in Struts, which will enable me to show the same URL all the time, for my aplication?? i mean i do not want to show in the URL which action mapping i am calling, as in, https:// thats it, for all my actions?? Regards, Deepa