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:
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
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,
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,
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:
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
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
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
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.
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
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
/
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
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
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;
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
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
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
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
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
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
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
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
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
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.
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()
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
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
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
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?
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
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
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,
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,
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
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 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
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:
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 .
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.
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/
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/
41 matches
Mail list logo