Re: How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-21 Thread Lukasz Lenart
pt., 18 cze 2021 o 14:11 albert kao napisał(a): > > Following "Exception mapping" at: > https://struts.apache.org/getting-started/exception-handling.html > > Something like: > public class HttpIOException extends Exception { > private static final long serialVersionUID = -4261703341L; > > public H

Re: How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-18 Thread albert kao
ic 12c server. > > When any one of the HTTP status codes 403, 404, 500, 503 occurs, my web > > application will display a corresponding web page. > > e.g. When the HTTP status code 503 occurs, my web application will > display > > the web page 503.html. > > How to se

Re: How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-17 Thread Lukasz Lenart
503 occurs, my web > application will display a corresponding web page. > e.g. When the HTTP status code 503 occurs, my web application will display > the web page 503.html. > How to set up or simulate the conditions to test my web application web > pages for HTTP status codes 403,

How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

2021-06-17 Thread albert kao
. When the HTTP status code 503 occurs, my web application will display the web page 503.html. How to set up or simulate the conditions to test my web application web pages for HTTP status codes 403, 404, 500, 503? i.e. simulate the HTTP status codes 503, etc so as to test my web application UI to

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Dale Newfield
On May 30, 2013, at 5:42 AM, Miguel Almeida wrote: > That's an alternative, yes. I do tend to prefer having the model objects > in my actions though, to keep the number of objects to a minimum - it > makes more sense to have a List objects than an Integer[] > ids, but maybe that's personal prefere

Re: How to set the name parameter on a multiple s:select

2013-05-30 Thread Miguel Almeida
Thanks for the feedback Dale. A couple of thoughts below. On Wed, 2013-05-29 at 08:18 -0400, Dale Newfield wrote: > I would have a setter on my action class that takes an array of ids. Then > the action does the appropriate lookups, and sets the hydrated objects on the > appropriate models. Th

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Dale Newfield
I would have a setter on my action class that takes an array of ids. Then the action does the appropriate lookups, and sets the hydrated objects on the appropriate models. You do recognize that the data you provided is ambiguous, though, right? Nothing you stated is sufficient to know *which*

Re: How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
I've also posted this on http://stackoverflow.com/questions/16812357/how-to-set-the-name-parameter-on-a-multiple-sselect so the knowledge can be shared once the answer is known. I also plan to add this to struts' documentation! Miguel On Wed, 2013-05-29 at 11:27 +0100, Miguel Alm

How to set the name parameter on a multiple s:select

2013-05-29 Thread Miguel Almeida
Dear all, Imagine you have the following scenario: - a property in your action: private Entity entity; - Entity has a List entity2List - Entity2 has a Entity3 entity3 Now, you need an s:select with multiple="true" to populate entity3. This corresponds to having a request in the form entity.entit

Re: How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
Although the example I have is simple, the final page is going to have a fairly complex form. I would very much like to submit the data via a json object. I assume this has been done by many since it seems that it would be a frequent request. And is also demonstrated on the json plugin spec page.

Re: How to set a List using JSON plugin?

2011-06-04 Thread Maurizio Cucchiara
This should not be a JSON plugin's error, more likely a OGNL conversion error. The problem have to do with the ajax request. JQuery send the following query string: integerList[]=1&integerList[]=3 Try to express the data parameter in html instead of json: data: "ignoreTaskIds=1&ignoreTaskIds=3" O

How to set a List using JSON plugin?

2011-06-04 Thread Burton Rhodes
I am trying to do something incredibly simple and for some reason I cannot get the JSON plugin to work. Below are a few code snippits. Can any tell me why I get an error when trying to set a List when using the JSON plugin? Do I need a converter for this? Or am I missing somthing simple? // Tes

Re: How to set the value of request scope in a interceptor and get it in jsp?

2010-10-07 Thread Li Ying
Hi lunch716: For more detail information about this issue, you can read these documents: http://struts.apache.org/2.2.1/docs/ognl.html http://struts.apache.org/2.2.1/docs/ognl-basics.html And in [ognl-basics.html], it says: "#request['foo'] or #request.foo" means "request attribute ['foo'

Re: How to set the value of request scope in a interceptor and get it in jsp?

2010-10-07 Thread lunch716
Hi, Thanks Li and Maurizio! Here is the solution. I really appreciate you guys because I spent a whole day for this problem. Thanks a lot! --- Maurizio Cucchiara wrote: > This would work: > > > Maurizio Cucchiara > -- Learn more about breast cancer

Re: How to set the value of request scope in a interceptor and get it in jsp?

2010-10-07 Thread Maurizio Cucchiara
This would work: Maurizio Cucchiara - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to set the value of request scope in a interceptor and get it in jsp?

2010-10-07 Thread Li Ying
try 2010/10/7 > Hi, > > When I set a value in my interceptor,I could not get it in a jsp. > How to do that? > > > ### my interceptor > public class HogeIntercepter extends AbstractInterceptor { > > @Override > public String intercept(ActionInvocation invocation) throws Exception { >

How to set the value of request scope in a interceptor and get it in jsp?

2010-10-07 Thread lunch716
Hi, When I set a value in my interceptor,I could not get it in a jsp. How to do that? ### my interceptor public class HogeIntercepter extends AbstractInterceptor { @Override public String intercept(ActionInvocation invocation) throws Exception { HttpServletRequest request = ServletA

Re: How to set a variable in session in the JSP

2010-06-22 Thread Kushan Jayathilake
> > request.getSession().getAttribute("var"); > > Thanks & Regards, > Mano > > -Original Message- > From: Kushan Jayathilake [mailto:kusha...@gmail.com] > Sent: Friday, June 18, 2010 10:32 AM > To: user@struts.apache.org > Subject: How to set a v

RE: How to set a variable in session in the JSP

2010-06-21 Thread Mano Dasanayaka
terface within your action class or by implementing the SessionAware interface. request.getSession().getAttribute("var"); Thanks & Regards, Mano -Original Message- From: Kushan Jayathilake [mailto:kusha...@gmail.com] Sent: Friday, June 18, 2010 10:32 AM To: user@struts

Re: How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi, Yeah Wes, you are correct, i was so stuck with this and couldnt see that i can straightly put that to the session from the Action class... Thank you so much for reminding me this -- Regards Kushan Jayathilake On Fri, Jun 18, 2010 at 11:03 AM, Wes Wannemacher wrote: > What you want i

Re: How to set a variable in session in the JSP

2010-06-17 Thread Wes Wannemacher
What you want is this - However, what i'm wondering right now is this - you have to expose "accountList" most likely by having a getter/setter combination on the action that is rendering the JSP that contains this tag. Assuming you are placing the variable in the session so that you can retriev

Re: How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi, Thanks for replying... In my JSP i put the as you said, i want to get the value from the Action class and set that value in the session in the JSP, so i wrote, " scope="session"/> note that "accountList" is a java.util.List in the Action class, i want to get that list to the JSP and assig

Re: How to set a variable in session in the JSP

2010-06-17 Thread Wes Wannemacher
http://struts.apache.org/2.x/docs/set.html Notice particularly the "scope" attribute. -Wes On Fri, Jun 18, 2010 at 1:01 AM, Kushan Jayathilake wrote: > Hi Guys, > > Can anyone suggest me a way to set a variable in the session in the JSP and > access that variable in the action class.. (variable

How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi Guys, Can anyone suggest me a way to set a variable in the session in the JSP and access that variable in the action class.. (variable must be set from the JSP file to the session) iam using struts 2.. is there anyway to do this..? -- Regards Kushan Jayathilake

Re: how to set default focus field in ?

2010-05-13 Thread Zoran Avtarovski
As a simple solution, why not just modify the form tag template and if the focusElement parameter is set, include a simple javascript block at the close of the form to set the focus. Just keep in mind that if there are two forms on a page and both have the focusElement parameter set only the last w

Re: how to set default focus field in ?

2010-05-12 Thread Denis Cabasson
I recommend attaching the focus to the relevant form element purely using Javascript, ie, including in you JSP : window.onload = function() { document.getElementById('yourInpudId').focus(); } That way you have a pure javascript implementation, and you can push that code to the relevant J

Re: how to set default focus field in ?

2010-05-12 Thread Emi Lu
By using tiles, is in global_layout.jsp page, for decedent pages, I will not be able to set body onload. Admittedly I don't know tiles, but Sitemesh will copy the body onLoad and unload functions to the decorating page and I would be suprised if Tiles didn't support this as well. For the g

Re: how to set default focus field in ?

2010-05-12 Thread Roger
> > By using tiles, is in global_layout.jsp page, for decedent pages, > I will not be able to set body onload. > Admittedly I don't know tiles, but Sitemesh will copy the body onLoad and unload functions to the decorating page and I would be suprised if Tiles didn't support this as well. Re

Re: how to set default focus field in ?

2010-05-12 Thread Emi Lu
Struts1, I use does not work. I just use e.g; Username "/> I would prefer that s:form supports focus. By using tiles, is in global_layout.jsp page, for decedent pages, I will not be able to set body onload. Why does not support focus? This is strange :-(

Re: how to set default focus field in ?

2010-05-11 Thread RogerV
form" please? >> >> does not work. > > I just use e.g; Username "/> -- View this message in context: http://old.nabble.com/how-to-set-default-focus-field-in-%3Cs%3Aform%3E---tp28516814p28532441.html Sent from the Struts - User ma

Re: how to set default focus field in ?

2010-05-11 Thread Emi Lu
Good morning List, I use to do this "manually" with javascript, didn't know it was part of s:form tag. So today I decided to give it a try but it is not working for me... how does this works? Does it need some plugin or additional config to make it work? I tried focusElement as shown in "id of

Re: how to set default focus field in ?

2010-05-11 Thread Alex Rodriguez Lopez
Hi, I use to do this "manually" with javascript, didn't know it was part of s:form tag. So today I decided to give it a try but it is not working for me... how does this works? Does it need some plugin or additional config to make it work? Is it compatible with jquery, which I include in ever

Re: how to set default focus field in ?

2010-05-10 Thread Luis Martín Canaval Sánchez
I would like to know that aswell, so far I have been using javascript with jquery that is the lib that I use // somewhere inside the initial function $("input:text:visible:first").focus(); // or $("#othercontol").focus(); // if the first control is not a textbox. On Mon, May 10, 2010 at 15:52, E

Re: how to set default focus field in ?

2010-05-10 Thread Paweł Wielgus
Hi Lu, does this help http://struts.apache.org/2.1.8.1/docs/form.html ? Search for focusElement in this text. Best greetings, Paweł Wielgus. 2010/5/10 Emi Lu : > Good afternoon, > > Struts1, I use > For *struts2.1.8.1*, may I know the grammar of setting focus value for > "s:form" please? > >

how to set default focus field in ?

2010-05-10 Thread Emi Lu
Good afternoon, Struts1, I use For *struts2.1.8.1*, may I know the grammar of setting focus value for "s:form" please? does not work. Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Dale Newfield
Tommy Pham wrote: arrays {1,2,3,4,5} 1 2 3 4 5 What about That s:if should also make sure you're not on the last iteration, otherwise you'll end up with an empty row. -Dale - To unsu

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Tommy Pham
- Original Message > From: Musachy Barroso > To: Struts Users Mailing List > Sent: Thursday, September 24, 2009 10:19:55 AM > Subject: Re: iterator tag: how to set iterate step? > > no way i know of in 2.1.6. There will be one in the next release > > mus

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Musachy Barroso
step attribute > for the iterator tag. > any idea how to do this > > thanks, > > -- > View this message in context: > http://www.nabble.com/iterator-tag%3A-how-to-set-iterate-step--tp25577792p25577792.html > Sent from the Struts - User mailing list archive at Nabble.co

iterator tag: how to set iterate step?

2009-09-24 Thread samsun
3 4 5 each loop's step should set to 2, but looks like there is no step attribute for the iterator tag. any idea how to do this thanks, -- View this message in context: http://www.nabble.com/iterator-tag%3A-how-to-set-iterate-step--tp25577792p25577792.html Sent from the Struts - Us

Re: How to set Array properties?

2009-07-27 Thread mailtolouis2020-struts
Thank You! From: Musachy Barroso To: Struts Users Mailing List Sent: Monday, July 27, 2009 5:58:02 PM Subject: Re: How to set Array properties? On Mon, Jul 27, 2009 at 7:55 AM, Louis Voo wrote: > Hi, > > For e.g, I've this itera

Re: How to set Array properties?

2009-07-27 Thread Musachy Barroso
On Mon, Jul 27, 2009 at 7:55 AM, Louis Voo wrote: > Hi, > > For e.g, I've this iteration in my jsp page > > > > >     > > > and this in action > > public User[] getUsers(){ > return this.users; > } > > public User[] setUsers(){ > return this.users; > } > > > When the user submit

How to set Array properties?

2009-07-27 Thread Louis Voo
Hi, For e.g, I've this iteration in my jsp page and this in action public User[] getUsers(){ return this.users; } public User[] setUsers(){ return this.users; } When the user submit the form, I want struts set the firstName & lastName back to users array, how to achieve this? Re

Re: How to set a file name using a header in the response?

2009-06-27 Thread Jim Collings
john feng wrote: > Putthese code in servlet or action class. don't put in the jsp file. ... >> is possible? This idea seems promising. So I have an action that results in the jsp in question and I'm using the Convention plug-in. Presumably, I would have to apply one of the *Aware interfaces to th

Re: How to set a file name using a header in the response?

2009-06-27 Thread john feng
Putthese code in servlet or action class. don't put in the jsp file. On Sat, Jun 27, 2009 at 9:25 AM, Jim Collings wrote: > Dave Newton wrote: >> Jim Collings wrote: >>> <%response.setHeader("Content-Disposition", "attachment; >>> filename=\"filename_${fromDate}-${toDate}.doc\""); %> >>> >>> The a

Re: How to set a file name using a header in the response?

2009-06-27 Thread Dave Newton
Jim Collings wrote: Dave Newton wrote: Jim Collings wrote: <%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, th

Re: How to set a file name using a header in the response?

2009-06-27 Thread Jim Collings
Dave Newton wrote: > Jim Collings wrote: >> <%response.setHeader("Content-Disposition", "attachment; >> filename=\"filename_${fromDate}-${toDate}.doc\""); %> >> >> The above is what I currently have but I think there is a new way to >> do it that doesn't involve using a scriptlet. Also, the "fromD

Re: How to set a file name using a header in the response?

2009-06-26 Thread Dave Newton
Jim Collings wrote: <%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't wor

How to set a file name using a header in the response?

2009-06-26 Thread Jim Collings
<%response.setHeader("Content-Disposition", "attachment; filename=\"filename_${fromDate}-${toDate}.doc\""); %> The above is what I currently have but I think there is a new way to do it that doesn't involve using a scriptlet. Also, the "fromDate" and "toDate" items don't work. I've tried quoting

Re: How to set an ActionValidatorManager to unittest?

2009-03-12 Thread Greg Lindholm
ons including validation, interceptors, and results. http://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ Hopefully it's helpful. -- View this message in context: http://www.nabble.com/How-to-set-an-ActionValidatorManager-to-unittest--tp22472794p22482351.html

How to set an ActionValidatorManager to unittest?

2009-03-12 Thread Gordian Yuan
Hi, All I found this article, How do I unit test my action's validation logic , However, in struts2.1.6 have been removed ActionValidatorManagerFactory class My question is how can be obtain an Action

How to set 'pager.offset' in struts2 action?

2009-03-09 Thread red phoenix
n 'pager.offset' with value '[Ljava.lang.String;@16b69d7' I want to know how to set 'pager.offset' in struts2 action? Thanks!

Re: How to set base context path?

2009-02-05 Thread Dave Newton
David C. Hicks wrote: ChadDavis wrote: "Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got the reference to the movie. I had to explain it to everyone else

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
Most excellent! I just served that up to the team on our chat channel. They're lovin' it. ChadDavis wrote: You want this one: http://www.imdb.com/title/tt0042546/ On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote: Ah, now you made curious... musachy On Thu, Feb 5, 2009 at 5:13 PM

Re: How to set base context path?

2009-02-05 Thread ChadDavis
You want this one: http://www.imdb.com/title/tt0042546/ On Thu, Feb 5, 2009 at 3:14 PM, Musachy Barroso wrote: > Ah, now you made curious... > > musachy > > On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote: >> >> ChadDavis wrote: >>> >>> "Harvey" is nice though. Great movie. There's a sce

Re: How to set base context path?

2009-02-05 Thread Musachy Barroso
Ah, now you made curious... musachy On Thu, Feb 5, 2009 at 5:13 PM, David C. Hicks wrote: > > ChadDavis wrote: >> >> "Harvey" is nice though. Great movie. There's a scene with this >> slightly chubby lady singing that cracks me up completely. >> > > Amazing, but you're the first person I've en

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
ChadDavis wrote: "Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. Amazing, but you're the first person I've encountered who got the reference to the movie. I had to explain it to everyone else - the magical, invisi

Re: How to set base context path?

2009-02-05 Thread ChadDavis
"Harvey" is nice though. Great movie. There's a scene with this slightly chubby lady singing that cracks me up completely. On Thu, Feb 5, 2009 at 3:00 PM, David C. Hicks wrote: > I think we've got the problem solved now. One of the developers found that > in one case the path was actually hard

Re: How to set base context path?

2009-02-05 Thread David C. Hicks
I think we've got the problem solved now. One of the developers found that in one case the path was actually hard-coded in a JSP. Ugh! We also had not provided a namespace for our struts package, and so apparently it was defaulting to the package name. Just little details that get left unti

Re: How to set base context path?

2009-02-05 Thread ChadDavis
> 2) Is it possible to not have to have the base path defined in Struts at > all? It seems to me that this would be the ideal solution. If you deploy the app as the root app in the servlet container, then your struts namespaces are essentially doing this. I think the net effect is what you are

Re: How to set base context path?

2009-02-05 Thread Musachy Barroso
> 1) How would I go about changing that base context path "/harvey" into > "/somethingelse"? It depends on the container that you are using > 2) Is it possible to not have to have the base path defined in Struts at > all? It seems to me that this would be the ideal solution. Nope musachy --

How to set base context path?

2009-02-05 Thread David C. Hicks
I have a project that originally started out being called "harvey" because we didn't have a name for it. The URL's for our pages all end up looking like: http:///harvey/... Now that we have a real name, that doesn't fly very well. I have two questions with regard to this. 1) How would I

How to set the DateTimePicker background color?

2008-12-17 Thread Burton Rhodes
I am positive this is an easy answer, but I can't seem to set the textfield portion of the tag. I have tried background & background-color css attributes, but those don't do the trick. Does anyone know how this is done? My actual tag looks like this: Many thanks! ---

Re: [S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
. > Thanks! > -dave > Best Regards Oscar > > > -Original Message- > From: Oscar Alvarez [mailto:listasdesarro...@gmail.com] > Sent: Wednesday, December 17, 2008 2:50 PM > To: Struts Users Mailing List > Subject: Re: [S1] How to se

RE: [S1] How to set a form property from Action classes.

2008-12-17 Thread Kawczynski, David
e action declared as, and what type of forward is being used? Also, let us see the struts-config elements being used. Thanks! -dave -Original Message- From: Oscar Alvarez [mailto:listasdesarro...@gmail.com] Sent: Wednesday, December 17, 2008 2:50 PM To: Struts Users Mailing List

Re: [S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
2008/12/17 Oscar Alvarez > Hi All. > > I need to put a value in an ActionForm object, because of the edition use > case of an mantainer (CRUD). > Im using hibernate to save an object and hibernate assigns the id when > save, and i need to put that value back in the ActionForm to "remember it" > w

[S1] How to set a form property from Action classes.

2008-12-17 Thread Oscar Alvarez
Hi All. I need to put a value in an ActionForm object, because of the edition use case of an mantainer (CRUD). Im using hibernate to save an object and hibernate assigns the id when save, and i need to put that value back in the ActionForm to "remember it" when save again. I am doing this, but no

Re: How to set global date format?

2008-10-21 Thread Suyog Doshi
-- View this message in context: http://www.nabble.com/How-to-set-global-date-format--tp19478823p20086149.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Torsten Krah
Am Freitag, 17. Oktober 2008 16:18:27 schrieb Martin Gainty: > you can configure fileUpload Interceptor to allow these predefined types Its not a upload problem. I am delivering a simple jsp page with more or less static html and there is no content type set. I don't want a method at the FilterDi

RE: FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Martin Gainty
; Date: Fri, 17 Oct 2008 06:33:24 -0700 > From: [EMAIL PROTECTED] > Subject: Re: FilterDispatcher - ContentType not set, how to set in to > text/html? > To: user@struts.apache.org > > --- On Fri, 10/17/08, Torsten Krah wrote: > > Answering to myself - although i am confus

Re: FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Torsten Krah
Am Freitag, 17. Oktober 2008 15:33:24 schrieb Dave Newton: > AFAIK it is; I've never had to set the content type. I am running my struts2 war in Pluto 1.1.6 (Tomcat 5.5.x) and Liferay 5.1.x (JBoss 4). Portlet Actions are working fine (because the container sets the stuff). But running Actions thr

Re: FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Dave Newton
--- On Fri, 10/17/08, Torsten Krah wrote: > Answering to myself - although i am confused that this is > not the default when delivering jsps: AFAIK it is; I've never had to set the content type. Dave - To unsubscribe, e-mail: [

Re: FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Torsten Krah
Am Freitag, 17. Oktober 2008 14:57:23 schrieb Torsten Krah: > How to tell the action, its content type is text/html? Answering to myself - although i am confused that this is not the default when delivering jsps: ... extends ActionSupport implements ServletResponseAware ... ... response.setConte

FilterDispatcher - ContentType not set, how to set in to text/html?

2008-10-17 Thread Torsten Krah
Hi. You can configure the action to set the result type to e.g. plain text ( http://struts.apache.org/2.x/docs/result-types.html). How to tell the action, its content type is text/html? I am calling my action /WEB-INF/view/consumer/register.jsp /WEB-INF/view/consumer/register.j

Re: How to set global date format?

2008-09-20 Thread Dave Newton
--- On Sat, 9/20/08, Struts2 Fan wrote: > I need a textfield that only accepts dd.MM. format, and in > the action class I want to define a Date object for this textfield. > If the date is not in the format dd.MM., it should give a > validation error. Any ideas? IIRC the default date con

Re: How to set global date format?

2008-09-20 Thread Struts2 Fan
t;> > Hi all, >> > >> > I want to set a global date format. Is it possible? I defined >> > format.date={0,date,dd.MM.} in package.properties file, but it does >> > not work. >> > >> > Any ideas? >> > >>

Re: how to set remoteuser

2008-08-27 Thread Hardik Shah
AIL PROTECTED] > > > - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19177755.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: could you provide basic stuff or link for implementing Guice/Warp with s2 - he he, that's also a major decision if you want to go down that path. I don't recommend jumping after whichever approach seems least effort (btw, your original approach to use a realm

Re: how to set remoteuser

2008-08-27 Thread Hardik Shah
for implementing Guice/Warp with s2 - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19177247.html Sent from the Struts - User

Re: how to set remoteuser

2008-08-27 Thread Jeromy Evans
Hardik Shah wrote: this approach in single webapp thanks i should go with spring security ,but it works fine with s2? \ Yes, others definitely use it with S2 and Spring. It takes substantial amount of effort to learn. You may have to ask for specific help about that after going t

Re: how to set remoteuser

2008-08-27 Thread Hardik Shah
aintain a session for them), this approach in single webapp thanks i should go with spring security ,but it works fine with s2? - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-re

Re: how to set remoteuser

2008-08-26 Thread Jeromy Evans
Hardik Shah wrote: Jeromy Evans - Blue Sky Minds wrote: Correct. It's not as bad as it first seems if you manage the entries in the two tables (for tomcat) yourself. Otherwise the next step is a third party library like Spring Security. try to use jdbcrealm but when submit gives

Re: how to set remoteuser

2008-08-26 Thread Jeromy Evans
Hardik Shah wrote: my first and last goal about that i want to maintain single sign on without storing user information in session i have also integrated hibernate with it ,can i use for achieve somthing like or not? Do you mean single sign-on as in across multiple domains or webapps? If

Re: how to set remoteuser

2008-08-26 Thread Hardik Shah
press blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175390.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: how to set remoteuser

2008-08-26 Thread Jeromy Evans
Hardik Shah wrote: Jeromy Evans - Blue Sky Minds wrote: A better approach is to use the container's authentication as intended so the remoteUser is managed by it.. i think u are saying about jdbc realm for container's authentication! Correct. It's not as bad as it first see

Re: how to set remoteuser

2008-08-26 Thread Hardik Shah
-- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175306.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: how to set remoteuser

2008-08-26 Thread Hardik Shah
developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175267.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Re: how to set remoteuser

2008-08-26 Thread Jeromy Evans
Hardik Shah wrote: hi we can get remoteuser using request.getremoteuser() but how we can set it? - One approach is to wrap the request object. Create a Filter, decorate the HttpServletRequest with one the implements setRemoteUser() and delegates all other methods to the original. Wh

how to set remoteuser

2008-08-26 Thread Hardik Shah
hi we can get remoteuser using request.getremoteuser() but how we can set it? - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19174978.html Sent from the Struts

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-04 Thread Gabriel Belingueres
http://www.eclipse.org/newsgroups/ Honestly, if you know what it takes to develop a web application with java, then you will find all the configuration options you need just with the eclipse help files and some common sense. May the force be with you. 2008/8/4 Narasimha Raju Naidu <[EMAIL PROTECTE

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-03 Thread Narasimha Raju Naidu
ok. sure i will. but can you send link for eclipse form. becoz i faild to found that form link. On Sat, Aug 2, 2008 at 11:05 PM, Gabriel Belingueres <[EMAIL PROTECTED]>wrote: > Struts are just jar files. From Eclipse POV, it is just another User > Library or J2EE Module Dependency. > You may f

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Gabriel Belingueres
Struts are just jar files. From Eclipse POV, it is just another User Library or J2EE Module Dependency. You may find more help in an Eclipse specific mailing list/forum. 2008/8/2 Narasimha Raju Naidu <[EMAIL PROTECTED]>: > thanks for your reply. i installed eclipse but inorder to strat struts > ap

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Narasimha Raju Naidu
thanks for your reply. i installed eclipse but inorder to strat struts application what are the steps required any reference sites, please mention. waiting for your reply. Regrads... On 8/2/08, Gabriel Belingueres <[EMAIL PROTECTED]> wrote: > > Install yourself a nice looking IDE like eclipse,

Re: how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-02 Thread Gabriel Belingueres
Install yourself a nice looking IDE like eclipse, netbeans or from any other vendor. They handle classpaths and Tomcat configurations with a few clicks of your mouse. 2008/8/2 Narasimha Raju Naidu <[EMAIL PROTECTED]>: > hi to all, > > i am using ubuntu OS and recently i installed tomcat and starti

how to set classpath for servlet-api.jar, jsp-api.jar and struts.jar for Ubuntu

2008-08-01 Thread Narasimha Raju Naidu
hi to all, i am using ubuntu OS and recently i installed tomcat and starting developing struts applications. in order to compile my own servlet classes it is required to set classpath. i am failing to set classpath becoz i am new to UBUNTU. can any one resolve my problem. waiting for you people's

Re: Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread Lukasz Lenart
To be clear with previous post, first try to parse data then put it on the stack. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread Lukasz Lenart
Hi, I misunderstood you ;-) I spent some time to find solution but right now it isn't possible because of StaticParametersInterceptor. Look at the code below for (Iterator iterator = parameters.entrySet().iterator(); iterator.hasNext();) { Map.Entry en

Re: Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread Dave Newton
--- On Tue, 6/24/08, John Smith <[EMAIL PROTECTED]> wrote: > Does the syntax ${something} retrieve the object from the session? No. The previous answer, implementing SessionAware, was one of the correct answers. Dave - To unsu

Re: Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread John Smith
I have implemented sessionAware and the process works for a static string but it doesn't work for objects :( So I have the following in my struts.xml: true hello ${something} out.jsp the "test" param works fine which is a simple s

Re: Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread Lukasz Lenart
Hi, > Is it possible to set session objects inside and action and access the > session object in another action without explicitly retrieving the > session object? Implement SessionAware interface with yours actions and put and get value from that map ;-) Regards -- Lukasz http://www.lenart.or

Newbie Q: How to set session object parameters in struts.xml

2008-06-24 Thread John Smith
Hello, Is it possible to set session objects inside and action and access the session object in another action without explicitly retrieving the session object? Thanks, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

  1   2   3   >