2007/10/17, Christ Jochen [EMAIL PROTECTED]:
In my layout_with_servicecolumn.jsp I want to insert my tile footer, but
how to forward my attribute footeritems to this tile?
You cannot do it! You have to create a definition, using footer.jsp
as the template, put the attribute (with putList) in
The most elegant method is to give a SPECIAL name to delete button.
It must looks like:
s:submit name=method:delete value=Delete /
and
s:submit value=Execute /
I found it in
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html
this post by Ian Roughley
Thank you for your answer. It was very helpful.
Ian Roughley wrote:
you can always use s:submit name=method:delete value=Delete / and
s:submit value=Execute / - then you don't need the logic to
determine which button was clicked in the execute() method, and you can
use the validation
Hi
I just devlop a form that upload a file (this form contains a text box a
command button(OK button)).
my requirement is that when i click on ok button then i call an action named
action1 .
On this action1 which class is excuted is specified in struts.xml.
In struts.xml i define action class
Hi,
First you must create a formAction class that contain elements form like
this:
suppose you a form with a text box and button, so the formActin class is
// import
public class YourFrom extends ActionForm
{
private String textBoxName;
// getter and setter textBoxName
}
second you
Hello, I'm new to Struts 2.
In a project we're using version 2.0.9, and have some questions about AJAX
calls.
How could I call a javascript function after making an AJAX call?
I know that in future 2.1 version there is a afterNotifyTopics parameter
that I could use
to do that, but how could I do
You can include your javasript call in a piece of code in the jsp
which is the result of the action.
Make sure to include executeScripts=true in your link/button.
Alvaro.
On 10/18/07, Eduardo Yáñez Parareda [EMAIL PROTECTED] wrote:
Hello, I'm new to Struts 2.
In a project we're using version
Hi,
I was wondering if this is possible, I want to access a SiteMesh object in a
struts tag like the set tag:
I want to access the Page object from SiteMesh and get a property from that
object and assign it a value
decorator:usePage id=myPage /
s:set name=currentPage value= /
where value
Hi all,
I have an action class which sets some attributes
request.setAttribute(pValueIn, vFlagms);
then it forwards to a jsp page.
Now I'd like to use logic:equal (or another struts tag) which controls the
value of this field
logic:equal name=pValueIn value=VC4S
OK
/logic:equal
but
2007/10/18, Marchioni Francesco [EMAIL PROTECTED]:
Hi all,
I have an action class which sets some attributes
request.setAttribute(pValueIn, vFlagms);
then it forwards to a jsp page.
Now I'd like to use logic:equal (or another struts tag) which controls the
value of this field
I have a tag like this
s:textarea name=txtMsg cssStyle=width: 200px
key=PROGRAM_SETTINGS
/
and also i have a radio buttin calld chkText
I wnt to chang thr key of the s:text if user select 'yes' of that radio
buttopn
so i have to use a java script so how can i
thanks it was that. I needed to put
%@ taglib uri=/WEB-INF/taglib.tld prefix=ndctags%
at the beginning.
But very very odd because Eclipse can see those tags even without the tag
lib
specification...( I mean there's auto-completation of that tag).
anyway thanks !
It does not make sense, the
hi all,
I managed to see the examples in the portlet webapp demo (there is no
index page) but I didn't see any portlet anywhere ... so I am curious as
if to there is at all an AJAX portlet control delivered with Struts 2?
Lack of portlets in S2 and AJAxification of displaytag would be the
Hi!
If you're thinking of the struts2-portlet application, you need to
install it into a portlet container to test it. However, ajax is not
yet built into the portlet framework.
Nils-H
On 10/18/07, Giovanni Azua [EMAIL PROTECTED] wrote:
hi all,
I managed to see the examples in the portlet
Hi!
What regular expression can be used to rewrite this URLs:
from /faq/LANG1/index.html?locale=LANG2 to
/faq/LANG2/index.html?locale=LANG2
from /faq/LANG1/foo/index.html?locale=LANG2 to
/faq/LANG2/foo/index.html?locale=LANG2
Thanks!
--
View this message in context:
i Have this problem and i lost 2 days trying do fix, what can i do in this
case?
I use java 1.4.2 / Struts 2 J4 / Hibernate and Spring.
i have the HelloWorld.java in the src and src/action to test.
*struts.xml *
include file=struts-default.xml/
constant name=struts.objectFactory value=
It´s not working to me. why don´t you leave yours jars available ?
Herrera
Jeromy Evans - Blue Sky Minds wrote:
As suggested, I've added these instructions to the community wiki.
http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9
Wes
Pedro Herrera wrote:
It´s not working to me. why don´t you leave yours jars available ?
Herrera
Hi Pedro,
I can't really create a jar for you because its not appropriate to
extract part of struts out and then redistribute it. I could create a
script I suppose, but the problem is mostly
I am new to Struts and have an existing web project that uses servlets right
now.
I am trying to add S2 to my existing project.
When I add my s2 config info in web.xml and redeploy my application I get a
blank page instead of my original default.jsp.
http://localhost:16624/support/ should
Good morning,
Using Struts 1.1 running on WebSphere 6.1.
Any ideas on the error below?
I'm getting this same error for struts-html.tld, struts-nested.tld and
struts-bean.tld.
Thanks in advance for any help.
[10/18/07 10:11:14:917 EDT] 0010 jsp E
com.ibm.ws.jsp.taglib.TldParser
Problems that I see:
1. Spring bean is defined as helloWorld but referred to as
HelloWorld in Struts config (case is incorrect).
2. You're saying that your action class is under src/action so I would
think the fully qualified name of the class might be
action.HelloWorldAction but that's now how
Hi,
I just started using the S2 - Jasper plugin ; new to Jasper as well ; but
not able to get a simple report to show.
Below is my struts xml entry :
package name=cap-default
extends=struts-default,jasperreports-default
action name=newapp class=com.mypage.TestAction
i put the log4j and my problem now is this:
13:31:21,484 DEBUG XmlConfigurationProvider:873 - Loaded action
configuration from: struts-plugin.xml
13:31:21,484 INFO XmlConfigurationProvider:140 - Parsing configuration file
[struts-plugin.xml]
StandardContext[/fiergs]Exception starting filter
Hi!
I have been trying for a week now to populate one s:tree with the data from a
database table but with no luck . I would really apreciate some guidance in how
to write the ShowDynamicTreeAction class that sends the date to the tree.
I'm using Hibernate DAO to receive the data from my
Is the documentation at
http://struts.apache.org/2.0.9/docs/tree.html out of
date? I haven't looked at it in quite awhile now.
d.
--- Cosmin Stanciu [EMAIL PROTECTED] wrote:
Hi!
I have been trying for a week now to populate one
s:tree with the data from a database table but
with no luck .
Hello! Thanks for the supper fast answer!
No it's not! But This section of the documentation is a work-in-progress; more
to follow. and on the Action tab the funtionality is not shown. :(
I know how to set the getters and setters but don't know how to match the data
from hibernate with the one
When i use this configuration on my web.xml:
constant name=struts.objectFactory value=
org.apache.struts2.spring.StrutsSpringObjectFactory /
i have the struts2-spring-plugin-2.0.9.jar in my classpath.
i have this error:
14:46:50,246 INFO XmlConfigurationProvider:140 - Parsing configuration file
Here is what I found
you need the custom-rhino.jar size=715,901 to start with located on your
(system)classpath
now run the ant targets individually
cd buildscripts
ant -Dprofile=struts2 -Dstrip_and_compress=true
cleanant -Dprofile=struts2 -Dstrip_and_compress=true release Note that you
will
--- Cosmin Stanciu [EMAIL PROTECTED] wrote:
Action tab the funtionality is not shown. :(
Are you filling tree data via Ajax (which the example
on the wiki isn't)?
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Yes! My Jsp file looks exactly like the one provided into the Example
Applications (struts-2.0.9-apps.zip).
script
function treeNodeSelected(nodeId) {
dojo.io.bind({
url: s:url value='/tags/ui/ajax/dynamicTreeSelectAction.action'
/?nodeId=+nodeId,
load:
Hi,
I am starter in Struts. I am using 1.3.8.
My requirement: Prepopulate a form feild if value is present.
Can anybody help me in intializing a input feild using struts custom tags?
Thanks
H.
This might be an old topic, but should we completely rule out using
struts tag and move to jstl tag? If not, does struts have a tag that
will do anything if the filed is equal (1 or 2 or 3 or 4)? Thanks.
-
To unsubscribe, e-mail:
It appears that this does not work. Is that correct? I have
/employee/employee.action working, but I get a 404 when I try
/employee/employee.action!list.
Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Shelton Consulting, LLC
ICQ# 26487421
AIM NorrisEShelton
YIM
Not helpful for S1.
You're better off pre-populating the ActionForm in the
action (not sure what 1.3 provides for that kind of
functionality) rather than via S1 or JSTL tags.
d.
--- Norris Shelton [EMAIL PROTECTED] wrote:
Look at the Preparable or Model interface.
- Original Message
I found the answer by accident. The action needs to be specified as
/employee/employee!list.action. It is not intuitive, but it does work.
- Original Message
From: Norris Shelton [EMAIL PROTECTED]
To: Strutss user@struts.apache.org
Sent: Thursday, October 18, 2007 2:02:45 PM
what about /employee!list.action
-W
On 10/18/07, Norris Shelton [EMAIL PROTECTED] wrote:
It appears that this does not work. Is that correct? I have
/employee/employee.action working, but I get a 404 when I try
/employee/employee.action!list.
Norris Shelton
Software Engineer
Sun
Thank you.
- Original Message
From: Wes Wannemacher [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, October 18, 2007 2:23:43 PM
Subject: Re: Annotations and action mappings with !
what about /employee!list.action
-W
On 10/18/07, Norris Shelton
You're welcome. I think too that the documentation is lacking of some
detailed examples, but you could contribute with a comment, now that you
know a little more. Go ahead, you are part of the community too ;-)
http://cwiki.apache.org/confluence/display/WW/select
On 10/15/07, Kevin Wade [EMAIL
Look at the Preparable or Model interface.
- Original Message
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Thursday, October 18, 2007 1:47:22 PM
Subject: (beginner) How to intialize a form's input item
Hi,
I am starter in Struts. I am using 1.3.8.
My
I also have noticed some classloading issues with the j4 distro. In my
case, WebSphere 6.0 is not able to load a retrotranslated version of the
sitemesh plugin. I think in your case, the preferred method of
integrating Spring is to put the following line in struts.properties
(this file is
My requirement: Prepopulate a form feild if value is present.
Can anybody help me in intializing a input feild using struts
custom tags?
The tags look for a corresponding property in the form bean, and take an
initial value from that. For example, if this tag is in you JSP file:
html:text
It doesn't seem to work. I am not getting the value which I am setting in
TestAction.java in the ActionForm.jsp. Here is what i did, (its a test
app), Please have a look at it and correct me:
struts_config.xml
struts-config
form-beans
form-bean
name=processForm
I just went through the same thing. In struts 2.1 there is a new href attribute
on the tree tag. It points to an action that returns some json using the json
plugin that gives all the info about the node. You should be able to use it in
Struts 2.0.9 as well by using the dew dojo plugin and by
You're creating a new ActionForm instead of using the
one provided to you.
--- [EMAIL PROTECTED] wrote:
It doesn't seem to work. I am not getting the value
which I am setting in
TestAction.java in the ActionForm.jsp. Here is what
i did, (its a test
app), Please have a look at it and
Silly one.. Thanks:)
Dave Newton [EMAIL PROTECTED]
10/18/2007 03:01 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Subject
RE: (beginner) How to intialize a form's input item
You're creating a new
As a web page like .aspx rewritten to the same name with .html suffix, if
the html page does exist I want to response the html rather than the aspx,
how could I do with this?
I think it is sth about level
example:
a.aspx to a.html
if a.html itselft does not exist, I hope the server response the
Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it
very much, feature that i need most is the ajax validation which is only
at 2.1.x CMIIW
-Andre-
Jeromy Evans wrote:
Pedro Herrera wrote:
It´s not working to me. why don´t you leave yours jars available ?
Herrera
Hi
I have some images displayed on my website... the images on the first page do
not get loaded when the page displays for the first time.. you can see it
here... http://www.hapandharpur.com. there are images in the right top corner.
One is a logo and one is a symbol.. Both of those images do not
I have some images displayed on my website... the images on the first page do
not get loaded when the page displays for the first time.. you can see it
here... http://www.hapandharpur.com. there are images in the right top corner.
One is a logo and one is a symbol.. Both of those images do not
49 matches
Mail list logo