html:radio in struts

2008-03-19 Thread Sonu S
Hi, I have something like this in JSP : MALE FEMALE 1) i want to know how to make "Male" to be default selected when page is loaded 2) I would set the value in form bean and on second page i would display radio buttons to change the value. i would like to know how to make one radio button selec

Re: customization

2008-03-19 Thread Prajapati Manish Narandas
Hi Niral, Go through following url it will be useful for creating ur own templates for errors. http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme Read it thoroughly it would turn out useful for u. *Manish* On 3/20/08, Niral Trivedi <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am succ

customization

2008-03-19 Thread Niral Trivedi
Hi All, I am successfully able to use S2 validators using validation.xml file and also able to display field error messages on the page. But I want to customize the error messages. For example, by default tag will put errors using html tags. but instead I want to wrap the errors in tag and put

Re: authentication question

2008-03-19 Thread Jeromy Evans
mojoRising wrote: Thanks. That's interesting. I am using Weblogic9.2, and I seem to have no problem using the request object in the jsp( for getParameter at least). I am wondering what type of request object manipulation, as you are referring to, may cause issues? I don't recall specifi

Re: ModelDriven action with action property

2008-03-19 Thread Jeromy Evans
Emil.I wrote: Hello i have a textfield with the name="firstName" and a textfield with the name="address.city" etc.. the action is model driven where firstName is the property of model. Since address is a property of action (not property of model) how come address.city does not get set it doesn't

Re: [OT] Dupe msgs?

2008-03-19 Thread Dave Newton
:p --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > Is anybody else getting a lot of dupes today? > > > > Dave > > > > > > > Nope > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional comma

Re: [OT] Dupe msgs?

2008-03-19 Thread Jeromy Evans
Dave Newton wrote: Is anybody else getting a lot of dupes today? Dave Nope - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Dupe msgs?

2008-03-19 Thread Jeromy Evans
Dave Newton wrote: Is anybody else getting a lot of dupes today? Dave Nope - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[OT] Dupe msgs?

2008-03-19 Thread Dave Newton
Is anybody else getting a lot of dupes today? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [S2] application context

2008-03-19 Thread deeeed
Thanks for your quick answer. 2008/3/19, Frank Fischer <[EMAIL PROTECTED]>: > > Hi > > I asked the same questions just some days ago. > Please read > > http://mail-archives.apache.org/mod_mbox/struts-user/200803.mbox/%3c20080313 > [EMAIL PROTECTED] You will find all information there > (have a loo

ModelDriven action with action property

2008-03-19 Thread Emil.I
Hello i have a textfield with the name="firstName" and a textfield with the name="address.city" etc.. the action is model driven where firstName is the property of model. Since address is a property of action (not property of model) how come address.city does not get set it doesn't eve go to the

RE: [S2] application context

2008-03-19 Thread Frank Fischer
Hi I asked the same questions just some days ago. Please read http://mail-archives.apache.org/mod_mbox/struts-user/200803.mbox/%3c20080313 [EMAIL PROTECTED] You will find all information there (have a look at the first and the last message in the thread). Frank > -Original Message- > Fr

[S2] application context

2008-03-19 Thread deeeed
Hi, I would like to initialize and share an object when my application deploy but I'm not sure on the best way to do it. The idea is to access something like ServletContext() and then initialize my object in it in a synchronized way. I know the ActionContext is ThreadLocal so If i put my object in

Re:

2008-03-19 Thread meeboo
Thanks for the reply. I did try nesting a tag within a but no dice. This is what I tried: I didn't even think this would, but it actually did render the following result http://localhost:8080/myapp/2007-05-12 day/ I was expecting http://localhost:8080/myapp/day/2007-05-12.action Also I n

Type conversion/OGNL question

2008-03-19 Thread lllewell
Greetings, Using Struts2, 2.0.11 and Java 5, and having problems with custom type conversion when I type invalid data in a field. I want to convert times in military format (0700, 2205) to equivalent java.util.Date, with the date fields set to 1-1-1970. I am using the defaultStack, which includ

Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Does your action implements ValidationAware interface? Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: File Upload Size

2008-03-19 Thread Lukasz Lenart
Hi, You can subclass FileUploadInterceptor and override acceptFile(File file, String contentType, String inputName, ValidationAware validation, Locale locale) method Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: File Upload Size

2008-03-19 Thread Richard Sayre
The reason I am asking this is bacuase when I upload a file over 15MB I get "no result mapped for INPUT" exception in my error log. When I do map a result for input the app hangs. I looked at the file upload in the struts showcase and it returns an error message when the file you upload is too big

File Upload Size

2008-03-19 Thread Richard Sayre
I set the file upload max size in the struts.properties to 15MB. When I upload a file over 15MB my action returns input. Is there any way I can check to see if the file is over the max size set in the properties file and handle what result I want to happen myself? I seems that it returns input b

Re: sorry for this test

2008-03-19 Thread Lukasz Lenart
> email. But apparently the email didn't got to the users, i haven't received > it. That's how it works! You will don't get your emails back, but any else will get ;-) Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart -

Re: Newbie question

2008-03-19 Thread stanlick
I use DailyRazor and have had great experience. On Tue, Mar 18, 2008 at 11:42 AM, maitre <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm trying to find a decent hosting company that supports STRUTS 2. Are > there any recommendations? > > Thanks, > > Ed > -- > View this message in context: > http://www

Re: struts 2 jsf plugin problem

2008-03-19 Thread Randy Burgess
It seems to me that you will need to create an interceptor stack that has both portlet support and jsf support. Even though your package extends struts-portlet-default the action in question does not since you have defined interceptors specifically for the action. Regards, Randy Burgess Sr. Web Ap

Re: struts 2 jsf plugin problem

2008-03-19 Thread Daniel
My last attempt was like this : /WEB-INF/jsp/view/index.jsp This didn't worked either. I have no problems when i am using pure struts 2 portlet support. I have problems when i try to integrate the JSF plugin support. When i am using o

Re: struts 2 jsf plugin problem

2008-03-19 Thread Randy Burgess
The problem is with line 10 starting somewhere around character 64. This doesn't look good to me: > > > > index The result named index redirects back to the same action, a potential circular reference. You also have removed the struts-portlet-de

Re: sorry for this test

2008-03-19 Thread Antonio Petrelli
2008/3/19, Daniel <[EMAIL PROTECTED]>: > Sorry for this test. I have subscribed to this list and i have sent an > email. But apparently the email didn't got to the users, i haven't received > it. In fact we received it. - To un

sorry for this test

2008-03-19 Thread Daniel
Sorry for this test. I have subscribed to this list and i have sent an email. But apparently the email didn't got to the users, i haven't received it.

Re: not interpreted

2008-03-19 Thread Randy Burgess
Since 2.0.11. But you can still use it outside of Struts tags. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: GF <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 19 Mar 2008 15:09:16 +0100 > To: Struts Users Mailing List > Subject: Re:

Re: not interpreted

2008-03-19 Thread Dave Newton
--- GF <[EMAIL PROTECTED]> wrote: > I noticed that since some version of Struts2 it is now forbidden inside tag attributes.. right? Yep. Inside S2 tags use OGNL. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: How to initialize business service objects?

2008-03-19 Thread Frank Fischer
Hi Dave Hi all Finally i got it working the "spring"-way, meaning, when also delegating the instantiation of action classes to spring. The "default" way, meaning letting struts2 creating the action instances still doesn't work and i really don't understand why. Thanks to everyone that help me get

struts 2 jsf plugin problem

2008-03-19 Thread Daniel Posirca
Hello, i am new to this list. I am trying to develop an application based on struts 2 + jsf plugin + portlet. I am using struts 2 support for portlet. As appl server i am using weblogic. Now i have reached a point were i am getting an error, but i have no idea how to pass it. I have managed to make

Re: not interpreted

2008-03-19 Thread GF
I noticed that since some version of Struts2 it is now forbidden inside tag attributes.. right? On Wed, Mar 19, 2008 at 2:54 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- GF <[EMAIL PROTECTED]> wrote: > > Is this the standard JSP syntax? > > JSP 2.0 EL. > > Dave >

Re: File Upload problem

2008-03-19 Thread David Durham, Jr.
On Wed, Mar 19, 2008 at 5:19 AM, udaykumar <[EMAIL PROTECTED]> wrote: > > I am using struts and have an upload.jsp and its associated UploadForm.java > and UploadAction.java. The jsp's form has an enctype=multipart/form-data and > contains an html:file field to upload a file as well as a bunch o

Re: not interpreted

2008-03-19 Thread Dave Newton
--- GF <[EMAIL PROTECTED]> wrote: > Is this the standard JSP syntax? JSP 2.0 EL. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: not interpreted

2008-03-19 Thread Randy Burgess
It is standard Expression Language (EL), which is much preferred over scriptlets. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: GF <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Wed, 19 Mar 2008 14:44:08 +0100 > To: Struts Users Mailing

Re: not interpreted

2008-03-19 Thread GF
Is this the standard JSP syntax? On Mon, Mar 17, 2008 at 3:08 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- GF <[EMAIL PROTECTED]> wrote: > > > ...unless you use the XML syntax available from JSP 2.0 and later ;-) > > And in this case, how can you resolve the > > Dave > > > --

Re: Implementing a back button without Javascript

2008-03-19 Thread Jeff Miller
If you don't want to add another form element to the page you could take a look at LookupDispatchAction's getKeyMethodMap() method. Extend LookupDispatchAction in your action class. Override the getKeyMethodMap in which you can map your button's keys to methods you create. You could create a map

Re: Implementing a back button without Javascript

2008-03-19 Thread Antonio Petrelli
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>: > > Antonio Petrelli wrote: > > 2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>: > > > >> we're using struts 1.2.4 in our project and I'm trying to implement a > >> back button for a 3 step registration procedure. The problem is I'd > >> like

Re: Implementing a back button without Javascript

2008-03-19 Thread Dimitris Mouchritsas
Antonio Petrelli wrote: 2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>: we're using struts 1.2.4 in our project and I'm trying to implement a back button for a 3 step registration procedure. The problem is I'd like to do it without using javascript. I've discovered html:cancel which work

Re: Implementing a back button without Javascript

2008-03-19 Thread Antonio Petrelli
2008/3/19, Dimitris Mouchritsas <[EMAIL PROTECTED]>: > > we're using struts 1.2.4 in our project and I'm trying to implement a > back button for a 3 step registration procedure. The problem is I'd > like to do it without using javascript. I've discovered html:cancel > which works nicely for ...canc

Implementing a back button without Javascript

2008-03-19 Thread Dimitris Mouchritsas
Hi all, we're using struts 1.2.4 in our project and I'm trying to implement a back button for a 3 step registration procedure. The problem is I'd like to do it without using javascript. I've discovered html:cancel which works nicely for ...canceling. But I couldn't find anything similar for the

Re: Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-19 Thread Dave Newton
--- bugs_ <[EMAIL PROTECTED]> wrote: > Can me anybody give a simple example: How to use an POJO object in Struts 2 > (instead of ActionForm)? http://struts.apache.org/2.x/docs/hello-world.html See the form creation/using the form bits. Dave -

Struts 1 vs Struts 2 actionform execution and Struts2 POJO example

2008-03-19 Thread bugs_
In struts 1. I have basic.jsp page with form: ... When I open basic.jsp it is autamatically created basicForm (which is configured at the basic action) And thanks this values in the form are automatically filled. Know anybody how to simulate this in Struts 2? or Can me anybody give a simple exa

Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab

2008-03-19 Thread manisha5
I found the problem. Its working for me now. The tag did not have theme="ajax". After adding ajax theme, the result page was loaded in correct tab. Thanks for the help everyone. -- View this message in context: http://www.nabble.com/Strtus-2.0.11-AJAX-TabbedPanel-with-Remote-tabs%3A-How-t

File Upload problem

2008-03-19 Thread udaykumar
I am using struts and have an upload.jsp and its associated UploadForm.java and UploadAction.java. The jsp's form has an enctype=multipart/form-data and contains an html:file field to upload a file as well as a bunch of text fields for metadata associated with the file. If an error occurs during v

Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Antonio Petrelli
2008/3/19, Chen Chunwei <[EMAIL PROTECTED]>: > Hi all, > > Can anyone tell me that the real value of constant > ActionErrors.GLOBAL_ERROR? Or where to find it? > Actually, I want to use the tag to only display the error > defined with ActionErrors.GLOBAL_ERROR. You don't need it! Read the tag

Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Chen Chunwei
Thanks all. I found the problem. Actually, the tag can display any ActionError found. But I confused my ApplicationResources.properties file, that is, the error I want to display was not defined in that file. So it will never be displayed until being defined. Further more, I don't need to kno

Re: About ActionErrors.GLOBAL_ERROR

2008-03-19 Thread Lukasz Lenart
Hi, Maybe something like this: Regards -- Lukasz http://www.linkedin.com/in/lukaszlenart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command