how can we apply style to label ?

2009-03-02 Thread sajidbigler
Hi List, I was trying to apply style to my label as shown below.i want it to be in center of my form and bold how can i do it? s:label label=Register cssStyle=font-size:20;/s:label -- View this message in context:

when we add any UI Tag how can we eliminate next line

2009-03-02 Thread sajidbigler
I want to add three button as shown below in a same row but i am not able to make it.i tried using table ,tr,td but still when ever i place s:component(textfield,label,submit etc) next line will be taken how can i make it to come in same row? s:submit value=Save / s:submit

Struts 2 sample: Hello World (Maven Ant)

2009-03-02 Thread manofspider
Hi all, I am trying Struts 2 with Maven 2: Simple Setup: http://struts.apache.org/2.1.6/docs/simple-setup.html Hello World: http://struts.apache.org/2.1.6/docs/hello-world.html But the Hello World sample is not completely clear for beginner: - where to place files: HelloWorld.jsp,

Re: Struts 2 sample: Hello World (Maven Ant)

2009-03-02 Thread Nils-Helge Garli Hegvik
The Struts 2 Maven 2 examples follows general Maven 2 web application guidelines. I agree that the guide could be clearer, but a good starting point would be to read some Maven 2 web application tutorials [1]. Nils-H [1] - http://www.google.com/search?q=maven+2+web+application On Mon, Mar 2,

Re: Struts 2 sample: Hello World (Maven Ant)

2009-03-02 Thread Lukasz Lenart
I think it will be even better to start from scratch with Struts2 archetype [1] [1] http://struts.apache.org/2.1.6/docs/struts-maven-archetypes.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail:

Re: Every action is getting called twice

2009-03-02 Thread VenuGopalArkala
if ur using html:submit .. onClick='formSubmit()' and in js ur giving function formSubmit(){ document.populationSetForm.addNewR.value = ''; form.submit(); // this is the problem } Instead of form.submit() give return true; // ur problem will

Re: Struts 2 question about validation and forwarding

2009-03-02 Thread laredotornado
Hi, I only want to forward if validation fails -- i.e. don't need to run the execute method. But I don't know how to set that up in my struts-config.xml file (or some other file if that's what's needed). How do I do that? Or is the only way to do this is as David Newton suggested -- moving

problem when make change on the select

2009-03-02 Thread elyes sallem
hello, i have a select element where i display prjLib as label here is the code part of this component : nested:nest property=selectedProject nested:hidden property=prjLib/ nested:select property=prjId

Re: Acegi with Struts 2.

2009-03-02 Thread Norris Shelton
Please post what you have if it is different than the example. More examples are better than less. From: Mohan Radhakrishnan radhakrishnan.mo...@gmail.com To: user@struts.apache.org Sent: Sunday, March 1, 2009 10:42:46 PM Subject: Re: Acegi with Struts 2.

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-03-02 Thread hermann . x . lau
Yes, adding bean:write name=locationList/ to my code does render the locationList. I don't get the exception until the 'submit' button is clicked. Nils-Helge Garli Hegvik nil...@gmail.com 02/27/2009 01:27 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts

result type=redirectAction with parameter which is int[]

2009-03-02 Thread holod
Good day. I have a question Please, see fragment from struts.xml: action name=SavePersonInSession class=ibs.pperson.web.action.WorkWithSession method=store result name=success type=redirectAction Search /

How to visualized the last page a user was visiting in a web application where credentials are validated with struts 1.2 ???

2009-03-02 Thread Ariel
Hi everybody: I have a web application with struts 1.2 where I make the user authenticate, so the user can't enter to the application if the credentials have not been validated, when the user is surfing by the web application and after a period of inactivity the session expires he is returned to

[OT] Re: Every action is getting called twice

2009-03-02 Thread Dave Newton
VenuGopalArkala wrote: if ur using html:submit .. onClick='formSubmit()' and in js ur giving function formSubmit(){ document.populationSetForm.addNewR.value = ''; form.submit(); // this is the problem } Instead of form.submit() give return

Re: Struts 2 question about validation and forwarding

2009-03-02 Thread Dave Newton
laredotornado wrote: I only want to forward if validation fails -- i.e. don't need to run the execute method. But I don't know how to set that up in my struts-config.xml file (or some other file if that's what's needed). How do I do that? IIRC execute isn't executed on a validation failure;

Re: javax.servlet.jsp.JspException: Cannot find bean under name

2009-03-02 Thread Nils-Helge Garli Hegvik
Um So the location option list (and rest of the page) is rendered just fine? Then I guess it's the jsp that is the result of the submit that causes the error? Nils-H On Mon, Mar 2, 2009 at 4:22 PM, hermann.x@jpmchase.com wrote: Yes, adding bean:write name=locationList/ to my code does

Struts 2 - After validation failure populating the drop downs

2009-03-02 Thread Sundararaman, Anand
Hi, I guess there is an elegant solution for this but I could not find out in the user list. I am using Struts 2 and creating some form validations. If a validation fails on a JSP screen, the input result takes back the control to the same screen, but the drop downs are not populated. I

Re: Struts 2 - After validation failure populating the drop downs

2009-03-02 Thread Jim Kiley
Populating the dropdowns in an input() method that returns Action.INPUT should do the trick. jk On Mon, Mar 2, 2009 at 1:19 PM, Sundararaman, Anand anand.sundarara...@ps.net wrote: Hi, I guess there is an elegant solution for this but I could not find out in the user list. I am using

RE: Struts 2 - After validation failure populating the drop downs

2009-03-02 Thread Sundararaman, Anand
Hi, Would you able to specify in little more detail? Sorry for that as I am new to Struts 2. Thanks, Anand -Original Message- From: Jim Kiley [mailto:jhki...@summa-tech.com] Sent: Monday, March 02, 2009 12:23 PM To: Struts Users Mailing List Subject: Re: Struts 2 - After validation

Re: How to specify namespace for s:submit.

2009-03-02 Thread Leena Borle
Hi, Yes, s:submit can submit two different actions. It's the problem with namespace. I don't see a way to specify namespace for s:submit tag. I guess, I will have to add JavaScript. I don't want to use two separate forms. Thanks For the help, Leena On Sun, Mar 1, 2009 at 5:52 AM, Dave Newton

Re: Struts 2 - After validation failure populating the drop downs

2009-03-02 Thread Jim Kiley
In your action class, write a method like so: public String input() { // populate my dropdowns return Action.INPUT; } Obviously you will have to write the code to populate your dropdowns there, as that depends on what you are up to. But the input() method of your action class will be called if

RE: Struts 2 sample: Hello World (Maven Ant)

2009-03-02 Thread Mike Finney
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/struts/struts2-blank/2.1.6/ (struts2=blank) may be just the thing to use for writing a struts2 hello world. Is this David Newton's contribution? Thanks. -Original Message- From: Lukasz Lenart

struts2-archetype-starter

2009-03-02 Thread ChadDavis
Is there one of these for 2.1 yet? When I follow the links I end up at a 2.0.11 version. I'm just wondering if the docs are behind or this just isn't available yet. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: Struts 2 - After validation failure populating the drop downs

2009-03-02 Thread Lukasz Lenart
Implement Preparable interface [1] and take a look on Prepare interceptor [2], it should be what you want [1] http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/Preparable.html [2] http://struts.apache.org/2.1.6/docs/prepare-interceptor.html Regards -- Lukasz

Best Practices for Forms

2009-03-02 Thread Timothy Orme
Hello All, I'm relatively new to Struts 2 and have a few questions as far as how to lay out a form correctly. I have the following scenario: 1. User is presented a form. (addData.jsp) 2. User submits form, we go off to an action to add form information to the database. (SubmitData.action) 3.

RE: Best Practices for Forms

2009-03-02 Thread Martin Gainty
Tim- any reason why you would'nt put the attributes in Session by implementing SessionAware http://struts.apache.org/2.0.14/docs/how-do-we-get-access-to-the-session.html put them in with setSession() and access with Map parameters=this.getSession()

Re: Best Practices for Forms

2009-03-02 Thread Timothy Orme
I'm not really sure what you're suggesting here. Are you saying that I should put the dataId attribute in the session instead of passing it to the page? I'm not really sure what that helps, and in fact it only seems to complicate the issue. Maybe I'm misunderstanding? Thanks, -Tim Martin

Re: Best Practices for Forms

2009-03-02 Thread hernan gonzalez
To avoid the problem of duplicated submissions (not only when refreshing the result page, but also when double clicking the submit button, or going back to the submited form and submitting again) you should take a look at the TokenSessionStoreInterceptor. But that is complementary with the other

Re: Best Practices for Forms

2009-03-02 Thread Timothy Orme
Ok, this helps a lot. Simply from a usability standpoint though, the latter example seems more in line with what I'd want. It seems silly to have to bring the user to a page where, in my case, they would invariably click a link. I was aware of the TokenSession interceptor, and as you stated, it

doc problem at struts.properites page

2009-03-02 Thread ChadDavis
On the page that explains the struts.properties, the documentation says: the list of properties can be found in struts-default.properties (inside struts2.jar). Shouldn't that just be default.properties or is there another properties file called struts-default.properties?

Re: doc problem at struts.properites page

2009-03-02 Thread Musachy Barroso
That should be default.properties On Mon, Mar 2, 2009 at 4:14 PM, ChadDavis chadmichaelda...@gmail.com wrote: On the page that explains the struts.properties, the documentation says: the list of properties can be found in struts-default.properties (inside struts2.jar). Shouldn't that just

Re: doc problem at struts.properites page

2009-03-02 Thread ChadDavis
I'd be more than happy to fix this kind of thing. How would I do that? On Mon, Mar 2, 2009 at 2:17 PM, Musachy Barroso musa...@gmail.com wrote: That should be default.properties On Mon, Mar 2, 2009 at 4:14 PM, ChadDavis chadmichaelda...@gmail.com wrote: On the page that explains the

Re: doc problem at struts.properites page

2009-03-02 Thread Musachy Barroso
You need to file a CLA: http://www.apache.org/licenses/icla.txt and then drop and email to @dev, and someone will grant you wiki rights. On Mon, Mar 2, 2009 at 4:19 PM, ChadDavis chadmichaelda...@gmail.com wrote: I'd be more than happy to fix this kind of thing.  How would I do that? On Mon,

Re: struts2-archetype-starter

2009-03-02 Thread Wes Wannemacher
On Monday 02 March 2009 14:00:04 ChadDavis wrote: Is there one of these for 2.1 yet? When I follow the links I end up at a 2.0.11 version. I'm just wondering if the docs are behind or this just isn't available yet. As far as I know, Chad, the archetypes aren't up to date. I still use them,

Get Server Port

2009-03-02 Thread kate_cl
Hi,anyone know how to get server port if request is null? -- View this message in context: http://www.nabble.com/Get-Server-Port-tp22302338p22302338.html Sent from the Struts - User mailing list archive at Nabble.com. - To

Re: when we add any UI Tag how can we eliminate next line

2009-03-02 Thread sajidbigler
Hi List, I think we need to fix this issue by adding one more tag as for example s:nextLine . By default struts-tags place components in next line instead we need to have elements to be placed in same line and developer needs to get an option to decide whether it should be placed in next line

How can i render this text filed to have color for (*) with space as its required field

2009-03-02 Thread sajidbigler
How can i render this text filed to have color for (*) with space as its required field how can i make this field to show * in some color with space and then label for example red*/red space or tab User name how i need to modify below field to get as above s:textfield label=User Name

Re: Get Server Port

2009-03-02 Thread Nils-Helge Garli Hegvik
When is the request null? And what do you need the server port for? Nils-H On Tue, Mar 3, 2009 at 5:24 AM, kate_cl virgurliv...@yahoo.com wrote: Hi,anyone know how to get server port if request is null? -- View this message in context:

Re: when we add any UI Tag how can we eliminate next line

2009-03-02 Thread Nils-Helge Garli Hegvik
Either style it as you want it with css, or use the simple theme to have full control of how elements are rendered. Nils-.H On Tue, Mar 3, 2009 at 7:19 AM, sajidbigler sajidbig...@gmail.com wrote: Hi List, I think we need to fix this issue by adding one more tag as for example s:nextLine .

Install struts in eclipse

2009-03-02 Thread Suresh254597
Hi , anyone help me how to install struts in eclipse , I am new to eclipse. -- View this message in context: http://www.nabble.com/Install-struts-in-eclipse-tp22303749p22303749.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: Install struts in eclipse

2009-03-02 Thread Lukasz Lenart
2009/3/3 Suresh254597 suresh.kanna...@gmail.com: anyone help me how to install struts in eclipse ,  I am new to eclipse. Just copy or add references to that jar files [1] [1] http://struts.apache.org/2.1.6/docs/simple-setup.html Regards -- Lukasz http://www.lenart.org.pl/

Re: doc problem at struts.properites page

2009-03-02 Thread Lukasz Lenart
2009/3/2 Musachy Barroso musa...@gmail.com: You need to file a CLA: http://www.apache.org/licenses/icla.txt and then drop and email to @dev, and someone will grant you wiki rights. I did that months ago but now answer, should I repeat that? Regards -- Lukasz http://www.lenart.org.pl/