team any help???
:(
ravi_eze wrote:
>
> hi,
> The code is as follows. Do not get terrified by the length of the post. I
> tried formatting the post for better readability. Hope this helps you...
> to help me ;)
>
> @new.xml, this is included in struts.xml
>
> extends="s
which version are u using??
i think u are getting error like dojo not defined. If yes then read the
following
u need to make dojo available do the following steps:
1. explode struts core.jar
2. create a folder in the war : struts
3. search for ajax,dojo,niftycorners,simple,xhtml in the explode
Hi,
You're asking a big question. What follows is the approach I would
take. There's many other approaches you could also try and my solution
may be too javascript-centric for you.
First, the interface is stateless, so I'd probably have my action always
accept two timestamp parameters and
Hi all,
I'm new to Struts 2 (and Struts in general), and I'm having a hard time
figuring out how to handle the simple case of multiple buttons within a form.
The method I'm trying to use is described in the Struts 2 cookbook here:
http://struts.apache.org/2.x/docs/html-form-buttons-howto.html
Was putting your actions in a non-root namespace not a suitable
work-around? Or did it not work for you?
jignesh.patel wrote:
Hi,
I think you missed something struts.action.extension=action,, leads to not
actions without ".action" but to the actions with
(action-name suffix(.)).
e.g
http://l
Hi
I created Struts2 starter application as shown below,
mvn archetype:create
-DgroupId=com.fdar.apress.s2
-DartifactId=app
-DarchetypeGroupId=org.apache.struts
-DarchetypeArtifactId=struts2-archetype-starter
-DarchetypeVersion=2.0.9-SNAPSHOT
-DremoteRepositories=http://peopl
In the simplest model you can take anything from your namespace and append a
.action to it. We use it more to create SEF parameter laden URLs.
I don't have a specific rule for what you're looking for but the
documentation is pretty concise and you can also look at the Apache
mod-rewrite rules (ht
It helped. Thank you.
2008/1/28, Hernandez, David <[EMAIL PROTECTED]>:
>
>
> Andriy,
>
> Try putting the array in an encapsulating object, i.e. an ArrayList.
>
> Regards,
>
> David Hernandez
>
> -Original Message-
> From: Andriy Kharchuk [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 28
Darren James wrote:
Hi Joachim,
This gives me something to start with. Time to dig into the struts2
source code to help me grok the sample you've provided.
thanks,
That example creates a Struts2 component that can be used as a JSP
tag. Also see usages of the org.apache.struts2.views.TagL
As a temporary measure, this one works...
\\ihfile3\shared\MIS_SALES_VOL3\Group\Mis\struts\ca\struts2-core-2.1.1-W
SGC-20080101-1328.jar
-keith
-Original Message-
From: Sanjeev Vijapurapu [mailto:[EMAIL PROTECTED]
Sent: Monday, January 28, 2008 12:52 PM
To: user@struts.apache.org
Subjec
Hi Rikard
Where is the redirect class ?
Thanks
M-
- Original Message -
From: "Rikard" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 28, 2008 3:12 PM
Subject: Flash/wizard- scope
>
> Hi all! i was wondering if there would be any plans on building an
> interceptor that manages flash scop
Hi!
I would like to comment you a problem I have now when developing a web
application using Struts 2.
I have a collection of items, which I want to show in a table. Those
items have some attributes that change with the time and I would like
to show the updated state in the view layer. I
Andriy,
Try putting the array in an encapsulating object, i.e. an ArrayList.
Regards,
David Hernandez
-Original Message-
From: Andriy Kharchuk [mailto:[EMAIL PROTECTED]
Sent: Monday, January 28, 2008 4:15 PM
To: Struts Users Mailing List
Subject: Struts 2: Can not set Action's propert
Hi guys,
My Action has property which is an array of Strings. I'm rendering html
table using this property. What is correct way to update this property from
jsp?
I tried the following but it doesn't work:
1. JSP
2. Action
private String[] selectedItems;
public String[] getSelecte
Is there any content management support in struts2; like special tags or
interceptors which reads the CMS markers from the result and fetches it
before processing the result?
Thanks
-Sanjeev
I have upgraded from Struts 2.0.7 to 2.1.1-SNAPSHOT and my current
working app doesn't work any more. Thru el mapping for my struts filters
are "/*".
1. The welcome page is not being picked up from welcome file list
as struts was acting on it and trying to find an action named "." in
namesp
Hi all! i was wondering if there would be any plans on building an
interceptor that manages flash scope or wizard scope? i was surfing around
and saw this post
http://blogs.opensymphony.com/plightbo/2006/03/webwork_flash_scope_support.html
I have made an interceptor that with the help of annotati
I'd implemented this by overriding the strutsValidator.onErrors function ;
basically getting the list of errors and calling custom function to show the
errorbox to the right of the field. Also, i needed to show only 1 error at a
time - not all the errored fields ; and this was done using the DWR
va
Darren James wrote:
What I was more interested in is some guidelines similar to what
Joachim posted in writing a "struts2" tag. And by that I mean one of
those generic, technology independent beasts that can be used in
Freemarker and Velocity as well as JSP.
I don't know how one writes freemar
Hi Joachim,
This gives me something to start with. Time to dig into the struts2
source code to help me grok the sample you've provided.
thanks,
- Darren.
Joachim Ansorg wrote:
Hi Darren,
writing a simple Struts2 tag is not that difficult. But getting
started is.
The documentation of the
Hi Dale,
Yes, i'm familiar with writing JSP tags, although it's been quite
some time since i've done so. It took me about 1/2 an hour to
dust off the cobwebs and write a JSP tag extending BodyTagSupport
that did what I wanted it to do.
What I was more interested in is some guidelines similar to
Joachim Ansorg wrote:
writing a simple Struts2 tag is not that difficult.
A Tag is simply a java interface:
http://java.sun.com/javaee/5/docs/api/javax/servlet/jsp/tagext/Tag.html
The life cycle of a tag is discussed in that javadoc.
There are a number of classes that make implementing your o
Hi,
I need a in my page for selecting an option, showing a
tree-like structure, so I need to indent some way the option elements
into the HTML , however, the tag doesn't allow me
to use the HTML space ( ) for indentation, since it does escape
it by default producing output like:
My de
Hi Ravi-
I think the problem here is how the struts2 tags were implemented. As far
as I can see from the code base the type converter definition you're
referring to is used by the XWork API and not OGNL. The XWork api is used
by the Struts Tags which have the option to call the converter or not
--- TuomoS <[EMAIL PROTECTED]> wrote:
> Date conversion prints out twice the error message when using s:fielderror.
>
>
>
>
>
>
> Any ideas why this is happening ?
Often it's because a conversion error will also create a validation error and
the "conversionError" interceptor[1] will put
Is there anyway to work around this bug for now?
Thanks,
Mei
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 27, 2008 8:25 AM
To: Struts Users Mailing List
Subject: Re: how to make ajax validation works with s:tabbedPanel in
struts 2.0.11
appears t
Dave,
I guess if use Dojo independantly of the S2 tags the Musachy point about
ending up writing the same things all over my JSP's applies.
I think if I want to do this in a grown up way the right thing to do would
be to bite down hard and write some freemarker.
I do REALLY want to do the right
No. not unless you have some specific code/configuration/errors to
show. Have you tried? What doesn't work? Do you get any error
messages?
Nils-H
On Jan 28, 2008 5:15 PM, Frans Thamura <[EMAIL PROTECTED]> wrote:
> On Jan 28, 2008 11:11 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote:
>
On Jan 28, 2008 11:11 PM, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote:
> A little bit more information would be nice.
>
> S2 Portlets should work in any JSR168 compliant portlet container.
i try to make hibernate injected using spring, and the struts2 as the MVC
any idea?
F
--
--- paulbrickell <[EMAIL PROTECTED]> wrote:
> Yes, but the freemarker templates for head and div (and I guess the others
> too) are highly dependent on version 0.4.x of Dojo. So to make this work I
> would have to rewrite said templates.
>
> uhm, I may just do that.
If you do, keep people posted.
A little bit more information would be nice.
S2 Portlets should work in any JSR168 compliant portlet container.
Nils-H
On Jan 28, 2008 4:48 PM, Frans Thamura <[EMAIL PROTECTED]> wrote:
> hi there
>
> anyone have success fully implements Struts2 with Spring and Hibernate
>
> can i have the ex
Date conversion prints out twice the error message when using s:fielderror.
Any ideas why this is happening ?
--
View this message in context:
http://www.nabble.com/Conversion-error-gets-printed-twice-tp15138548p15138548.html
Sent from the Struts - User mailing list archive at Nabble.
yup, they are based on 0.4. If you are going to use dojo 1.0 you will
end up putting the dojo stuff in your jsps, you might just do it in
the templates and they will be reusable (for you :))
musachy
On Jan 28, 2008 11:03 AM, paulbrickell
<[EMAIL PROTECTED]> wrote:
>
> Yes, but the freemarker temp
Yes, but the freemarker templates for head and div (and I guess the others
too) are highly dependent on version 0.4.x of Dojo. So to make this work I
would have to rewrite said templates.
uhm, I may just do that.
Cheers,
Paul B.
Musachy Barroso wrote:
>
> in 2.1 you can use your own dojo dist
hi all
any info for JSR 301 like for Struts2
thx
--
Frans Thamura
Meruvian
redefining civilization
http://www.meruvian.com
in 2.1 you can use your own dojo distribution by setting the
"baseRelativePath" attr in the head tag.
see http://cwiki.apache.org/WW/dojo-head.html for details.
musachy
On Jan 28, 2008 10:28 AM, paulbrickell
<[EMAIL PROTECTED]> wrote:
>
> LOL. For an Englishman sometimes my English sucks. No I p
hi there
anyone have success fully implements Struts2 with Spring and Hibernate
can i have the example
i try it here, and make my liferay crash
is S2 work with Liferay?
--
Frans Thamura
Meruvian
redefining civilization
http://www.meruvian.com
Hi,
I am getting errors from Parameters Interceptor while it tries to set
a value for a property.
My JSP is:
The action is mapped to the method "String add()" of the following class:
@Validation
@Conversion
public class AccountAction extends BaseAction
{
private Account
LOL. For an Englishman sometimes my English sucks. No I probably dont want
errors. What I meant was that this demonstrated to me the dependency on
version 0.4.x of Dojo and thats a showstopper. I really want to use 1.0.x so
I am going to have to choose between Struts 2.1 and its lovely stuff for
D
Yep, that works exactly like it says on wiki. out of curiosity just how does
that automagic work? How on earth does the path
"/whatever/struts/css_xhtml/validation.js" get resolved to a jar? Also I
guess that the baseRelativePath attribute is a bit of red-herring.
The restructuring between versio
I know that lots of people use DWR with Struts, both S1 and S2, myself
included, so I thought this might be of interest to folks here...
Because ignoring my wife and kids for a few months is something I enjoy
doing (whew, good thing she's not subscribed to this list!), I finally got
around to writ
--- paulbrickell <[EMAIL PROTECTED]> wrote:
> 0.43 removes any javascript errors.
> I think that's a bit of show-stopper for me.
Wait, you have an actual requirement for JavaScript errors!?
;)
> I still do not get a call to any action for the div.
You should probably post at least the JSP sou
Quick update,
0.43 removes any javascript errors. I think that's a bit of show-stopper for
me.
I still do not get a call to any action for the div. I do want to know why
that is so I am going to try to track down the problem before I abandon all
hope.
Cheers,
Paul B.
paulbrickell wrote:
>
> D
those resources are in 'struts2-core.jar' file.
- Original Message -
From: "paulbrickell" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 28, 2008 4:21 PM
Subject: Re: [S2] dojo plugin - I don't find the resources
Dave,
I hope you don't think you've taken on a lifetime commitment
--- paulbrickell <[EMAIL PROTECTED]> wrote:
> it appears that sx:head creates links for various resources...
>
> src="/application/struts/ajax/dojoRequire.js">
> type="text/css"/>
> type="text/javascript">
> type="text/javascript">
> src="/application/struts/css_xhtml/validation.js"
> type="t
Hi Darren,
writing a simple Struts2 tag is not that difficult. But getting started is.
The documentation of the tag api is not very good, imho. The best start
is in my opinion to get the Struts2 sources and read the source code of
the existing struts2 tags.
I'm posting a simple example with th
Dave,
I hope you don't think you've taken on a lifetime commitment here;-)
I may be misunderstanding whats happening here, but here goes..
I have a really simple page that include the sx:head tag and an sx:div. Now
I do not not see any call to the target action for the div tag. So I started
loo
--- paulbrickell <[EMAIL PROTECTED]> wrote:
> what the head template outputs are some links (see my earlier post for the
> details) to application/struts/* js and css files.
>
> So what I am trying to do is assemble the components that the head template
> requires and put them in the right place.
Hi Paul
any attempt to d/l the staging-plugin-1.0.0.zip displays invalid archive
this is perhaps a tar or gzip?
Thanks
Martin
- Original Message -
From: "paulbrickell" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 28, 2008 8:26 AM
Subject: Re: [S2] dojo plugin - I don't find the resource
Cant argue with that.
I guess a little background on what I am up to would help.
I am trying to build an application using the dojo plugin. So what I did was
include a dependency on struts core 2.1.0 snapshot and the dojo-plugin 2.1.0
snapshot in my pom file added the
http://people.apache.org/re
--- paulbrickell <[EMAIL PROTECTED]> wrote:
> OK Dave, for those of us who are interested in getting 2.1 working the
> original poster's question seems entirely relevant.
Sure, but I'm not entirely clear how I'd know what version they wanted to use
if they don't tell me, and since 2.1 isn't relea
--- ravi_eze <[EMAIL PROTECTED]> wrote:
> public class newLongConverter extends StrutsTypeConverter {
> public Object convertFromString(Map context, String[] values, Class
> toClass) {
> if (null == values || values.length == 0 || values[0]==null ||
> values[0].trim().length()==
Thanks for the quick reply. I see the stuff now.
However I don't think its gonna be that easy.
When I use the sx:head element the template also gives me these...
which seem to scattered amongst various files in the distribution. I guess I
better start pulling them in. I hope I get compatib
Hi,
The dojo plugin is embedded in the source struts package.
Look at struts2-core-2.0.11.jar\org.apache.struts2\static\dojo
Regards
On Jan 28, 2008 1:34 PM, paulbrickell <[EMAIL PROTECTED]>
wrote:
>
> OK Dave, for those of us who are interested in getting 2.1 working the
> original poster's q
OK Dave, for those of us who are interested in getting 2.1 working the
original poster's question seems entirely relevant. Just what does the line
'- include the Dojo Plugin distributed with Struts 2 in your /WEB-INF/lib'
mean. I cannot find any distribution or source for said plugin either.
chee
Andreas Bachmann wrote:
- In the past, I had to use also a validator-rules.xml with all the rules
like "minlength", "maxlength" and "intRange", if I would like to use the
Validator. Why is it not in the example projects?
The file is now bundled within struts.jar. You no longer need to include
Hi,
I'm new in the mailing list, so hi to all users.
Little presentation : french java struts2 developer.
I have a question. I want to use richtext box with dojo (textarea
theme="ajax") but i cant. In fact, the embedded version of dojo have a error
and i need to update the dojo version. How can i
Sure, I missed OGNL and Freemaker.
Thnks a lot.
Wes Wannemacher wrote:
>
> which jars do you have in WEB-INF/lib ?
>
> Could you be missing the other requirements (xwork2, freemarker, OGNL,
> etc.)?
>
--
View this message in context:
http://www.nabble.com/struts.objectTypeDeterminer-tp1512
58 matches
Mail list logo