I tried taking a modified version of the Struts 2 + Spring 2 + JPA + AJAX
tutorial that I've done and integrated it with Sitemesh.
I realized that if i have div tags with the ajax theme, Sitemesh will
decorate that area so I will end up with and embedded decorator in the main
page. I need to
I am running into a situation where once a user has checked a box and has
submitted the form, there is now no way to uncheck the box. What is the proper
way to handle this situation?
Thanks,
Joe
I do not understand well. Do you mean to create new package in sruts.xmland
add an action which serves static content ?
Exactly,
Best,
Aram
Aram Mkhitaryan
52, 25 Lvovyan, Yerevan 375000, Armenia
Mobile: +374 91 518456
E-mail: [EMAIL PROTECTED]
Please unsubscribe me from the mailing list
-Original Message-
From: Paul Benedict [mailto:[EMAIL PROTECTED] On Behalf Of Paul Benedict
Sent: Thursday, July 26, 2007 8:24 AM
To: Struts Users Mailing List
Subject: Re: Manipulating Collection in Struts Tag libs (options)
You should use
Hi,
If you are getting the warning that the tag doesn't exists, please check
whether you have included the tag library definition in jsp.
Thanks,
Ravikanth
On 7/28/07, Session A Mwamufiya [EMAIL PROTECTED] wrote:
Hi,
I use the following code to display a list of buttons that are supposed
Currently I get around this problem like this:
!-- format the value in jsp --
s:text id=formattedValue name=key.in.properties.files:param name=value
value=realValue//s:text
!-- refer to the formatted value --
s:textfield value=%{formattedValue} name=realValue size=3 //td
I knocked myself in the back of the head, because the issue was that the
frameset tags I used to set the frames was referencing pages directly and not
actions. It now works.
Thanks for the help guys,
Session
Your approach seems fine.
See if you can access CategoryEditor.action directly
Hi all,
I wonder how to avoid FileUploadInterceptor to save the tmp file. because in
my action I will process it anyway. IMO it is not efficient to have the
interceptor to save a tmp file first and then have my action class to
process the tmp file after. I think the most efficient way is to get
At the moment we are using URLRewrite to bypass all the trouble with S2
intercepting static content (we are also not using any action extension).
But it would be even better if the filter was patched :)
Ted Husted wrote:
It's possible that the use case of a an empty action extension was not
Hi Laurie,
Thanks for the link. I tried to follow the instructions there, but I can't get
it to work:
- I created the same exact TreeModel class, and added the getters and setters
- I set up my action with a tree element, and I have a function that populates
that element with data and some
There appears to be a bug with the Submit tag. URLs for the src
attribute do not appear to be resolved the same way for this tag as they
are with other tags. Other tags appear to be able to determine the
webroot and build the path to the image correctly. The Submit tag does
not. Has anyone
On 7/30/07 2:06 AM, Grish [EMAIL PROTECTED] wrote:
I tried taking a modified version of the Struts 2 + Spring 2 + JPA + AJAX
tutorial that I've done and integrated it with Sitemesh.
I realized that if i have div tags with the ajax theme, Sitemesh will
decorate that area so I will end up
Hello All,
Has anyone created a tree view in a web app? I'm looking to use a collapsible
tree to represent elements from a MySQL database, which will be modified by
some actions. I am looking for a good tutorial/example that I could follow;
one that is complete from start to finish.
Thanks
Another way (I like the pattern exclusion better) is to set a request
attribute decorator to none
musachy
On 7/30/07, Mark Menard [EMAIL PROTECTED] wrote:
On 7/30/07 2:06 AM, Grish [EMAIL PROTECTED] wrote:
I tried taking a modified version of the Struts 2 + Spring 2 + JPA + AJAX
tutorial
On 7/29/07, souravm [EMAIL PROTECTED] wrote:
However, I'm still not very sure whether the design approach of Swing/VB is a
right fit for a
scenario where the underlying technology is http. They are good for a thick
client
scenario where most of the event handlings happen in client machine
Hello:
I created a struts.properties in my WEB-INF/classes
directory. In it, I placed these values:
format.integer={0,number,integer}
Now, in my jsp page, I have this code:
s:iterator value=navCategories
//...
s:text name=format.integers:property
value=retailProductsCount//s:text
//...
Sorry, I couldn't resist.
On 7/26/07, souravm [EMAIL PROTECTED] wrote:
Regarding going for JSF due to componentization, I'm again not sure what
additional componentizations JSF does compared to struts. Apart from the fact
that JSF does not need a layer like Action Classes, all other
On Mon, July 30, 2007 9:39 am, Ted Husted wrote:
On 7/29/07, souravm [EMAIL PROTECTED] wrote:
However, I'm still not very sure whether the design approach of Swing/VB
is a right fit for a
scenario where the underlying technology is http. They are good for a
thick client
scenario where most
Hi Diego,
There's a pretty good book called JAAS in Action and it's available free
online. It will help you setting up JAAS and then implementing it Struts is
pretty straight forward.
I had a quick look at the site you mention and I think there are much better
(reader easier) implementations.
Thanks a lot, I set the locale property to 'es-UY', and works perfect.
Ian Roughley wrote:
try setting it to a locale that uses a date format of dd/MM/.
rrecoba wrote:
I don´t have the struts.locale, neither th struts.properties. This is
the
problem.
Ian Roughley wrote:
My comments embedded.
Regards,
Sourav
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, July 30, 2007 7:20 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Is Struts still a better choice over JSF as on today ?
On Mon, July
I've just pushed the 0.1 release of the Groovy Works plugin out the door.
The Groovy Works plugin enables dynamic compilation of Struts Actions
written in Groovy, as well as integration with Spring's scripting support.
Using this plugin you can start your Struts application with mvn jetty:run
and
Hi to everybody.
I'm developing a web app using struts and wanna know if there is a way to get
the session attributes using struts tags.
What i want to do is something like this (within a jsp page):
%
User user = (User)session.getAttribute(user);
out.println(bWelcome +
Hi,
I wonder if anyone here has successfully used Struts 2.1 ajax-validation
(http://struts.apache.org/2.x/docs/ajax-validation.html) with a s:form tag
that is 'xhtml'-themed.
I tried it, but I only get a bunch of javascript popup messages like do not
validate:registerForm_login.
I see that
Hi Musachy,
On Wednesday 25 July 2007 03:47:58 Musachy Barroso wrote:
It would be easy to implement:
http://struts.apache.org/2.x/docs/ajax-validation.html
What would be the basic approach to implement this?
One possible solution I see is to fire validation on every onblur event in
the text
say that you wanted to get part of a list say 10 of 1000 items as some
one typed so the clossest 10 after each key stroke. I thought of using
notifyTopics and listenTopics on the same autocompleter but just went
into an endless loop. with out having to send all 1000 items to the
client
Thanks,
Look at the ajax validation example in showcase.
musachy
On 7/30/07, Sandro Giessl [EMAIL PROTECTED] wrote:
Hi,
I wonder if anyone here has successfully used Struts 2.1 ajax-validation
(http://struts.apache.org/2.x/docs/ajax-validation.html) with a s:form tag
that is 'xhtml'-themed.
I
Do you have the 1000 loaded in the autocompleter already? Or your
action returns 1000 and you want to show only 10 (why not returning
only 10?)? Or I didn't understand the question :) ?
regards
musachy
On 7/30/07, Phillip Grenier [EMAIL PROTECTED] wrote:
say that you wanted to get part of a
You are right, there is no notion of validating one field only, that
logic should then be on the client (you know the field you are
validating so just show the errors for that field).
This ajax validation thing is not written in stone :), we can add more
stuff to cover more use cases, so
Try -
s:property value=#session.user.username /
-Wes
-Original Message-
From: Diego Ezquerro [mailto:[EMAIL PROTECTED]
Sent: Monday, July 30, 2007 11:30 AM
To: struts
Subject: Struts tags help
Hi to everybody.
I'm developing a web app using struts and wanna know if there is a way to
Hi,
I have one frame that is handled by an action that displays a treeview, and
another frame that is handled by another set of actions that edit the different
types of elements in the tree. I would like to have the treeview action
refresh once an editor action is performed. How would I go
Hi all,
i'm actually using the 1.2.9 version of struts, and i'm thinking about
upgrading to latest 1.x version.
Is there any issue i must know before upgrading? I've been looking for
something like upgrading 1.2.x to 1.3.x tips in struts website but no
one was found.
thanks
--
I defined a jsp page in global-exception-mappings to catch all
exceptions not handled by the application. The application is still in
development. I tried to display the exception stack using
s:property value=%{exceptionStack} /
It never showed anything. The error page always came up with this
at last i've found at:
http://wiki.apache.org/struts/StrutsUpgradeNotes12to13
El lun, 30-07-2007 a las 19:44 +0200, Jorge Martín Cuervo escribió:
Hi all,
i'm actually using the 1.2.9 version of struts, and i'm thinking about
upgrading to latest 1.x version.
Is there any issue i must
Greetings to all,
i am using struts2. I have a freemarker page search.ftl I wish this file
to be parsed even if it is not returned by an action (i.e. get values
from session). I have noticed that only action returned freemarker files
are rendered.
Can someone suggest what do i have to do so
Is there a way to use the XML validation to check to see if a field is
a number? I used integer to check for min and max but if I enter any
text into the field it passes the validation.
Thanks,
Rich
-
To unsubscribe, e-mail:
Try to use a classless action, it will default to
com.opensymphony.xwork.ActionSupport which always returns success.
action name=search
result type=freemarkersearch.ftl/result
/action
Perssy Llamosas
Original Message
Subject: parse freemarker file that is not action
Thanks for your answer. I really appreciate it.
So i assume for all similar cases i will have to do it like that ...
Best Regards
Leonidas
Perssy Llamosas wrote:
Try to use a classless action, it will default to
com.opensymphony.xwork.ActionSupport which always returns success.
action
Is it possible to pre-compile JSPs with Struts 2, as well as compile/evaluate
OGNL expressions?
I found the following on compiling OGNL expressions, but it's a little more
low-level than what I'm looking for.
http://cwiki.apache.org/WW/ognl-expression-compilation.html
I'm looking for a
I only wanted to return 10 of the 1000
I accoplished it with
code
form id=formId
s:autocompleter name=autoC theme=ajax href%{#actionUrl}
loadOnTextChange=true loadMinimumCount=1 formId=formId
id=autoC/
/form
/code
Or something close to that
-Original Message-
From: Musachy
Hey all,
In php, I used to have complex forms in some of my applications
associated to something, like this:
input type=text name=employees[james][address]/
Which, when posted, mapped to:
$_POST['employees']['james']['address']
essentially, I'd have an employees hashMap with all of the
Hi All,
Please help me build a tree viewer. I know that someone must have developed a
web app that uses a tree viewer that loads data from a database. Please walk
me through it or send me a tutorial link.
Thanks,
Session
-
Hi,
http://demo.raibledesigns.com/struts-menu/velocity-xtree.jsp
2007/7/30, Session A Mwamufiya [EMAIL PROTECTED]:
Hi All,
Please help me build a tree viewer. I know that someone must have
developed a web app that uses a tree viewer that loads data from a
database. Please walk me
Hi,
if you use struts2.x, you should use s:tree I think
or otherwise you could use
http://jscontrolstags.sourceforge.net/controls/treeview/treeview.html
You have demo at
http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html
This tree is based on scriptaculous (to manage AJAX,
Great, I'll be following this example.
Thanks a million,
Session
Hi, if you use struts2.x, you should use s:tree I think or otherwise you
could use
http://jscontrolstags.sourceforge.net/controls/treeview/treeview.html
You have demo at
Nevermind... I found this, and used a little bit of hackery. I would
like to know if there is a better way.
http://www.bartbusschots.ie/blog/?p=262
Thanks,
James
On 7/30/07, James Carr [EMAIL PROTECTED] wrote:
Hey all,
In php, I used to have complex forms in some of my applications
Those interested in the progress of this issue can follow it here:
https://issues.apache.org/struts/browse/WW-2062
On 7/26/07, tom tom [EMAIL PROTECTED] wrote:
I already made a change request.
Thanks,
--- Nils-Helge Garli [EMAIL PROTECTED] wrote:
Yes, it uses pluto for it's JSR168
I would need something like this, but I don't have any directions to follow to
build it. There are too many unexplained things, and I'm left with a big gap
of knowledge.
Please, could someone show me something that goes from A to Z without skipping
everything in between. There must be a
I'm trying to generate a URL dynamically from a map of name, value pairs
using the s:url s:iterator tags.
The code I tried looks like the following:
s:url id=someUrl action=someAction
s:iterator value=paramMap
!-- create a param using the key and value fields in the param map --
Hello:
I have a collection of products.
I can iterate over them using this code in
a jsp file:
s:iterator value=currentProducts
// Do something
/s:iterator
But, what I want to do is create a table
where I loop over each set of 5 products
twice before moving to the next row in
the table.
For
Diego Ezquerro wrote:
I'm developing a web app using struts and wanna know if there is a way to get
the session attributes using struts tags.
What i want to do is something like this (within a jsp page):
%
User user = (User)session.getAttribute(user);
out.println(bWelcome +
Have you added the JSF implementation's JARs to your classpath?
Matt
lupus wrote:
Hi all,
I cannot get Struts 2 JSF plugin working, the plugin documentation
(http://struts.apache.org/2.x/docs/jsf-plugin.html) is not clear for me to
follow and the jsf show-case mixed all the things
When displaying any number (int, double, long) greater than 1,000, the comma
is shown as the grouping character. This is happening with a struts select
drop down for a year (ie: 2,007 2,008 2,009 etc). When posted, the
numbers are parsed correctly, however, the fact that they are
Art Krahenbuhl wrote:
How can we get rid of the commas? I can't find any
information on this issue.
https://issues.apache.org/struts/browse/WW-1937
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Indu rekha Meduri, TLS-Chennai wrote:
Hi,
I am trying Struts2CrudStep1 tutorial sample application.
I am not able to resolve package. properties file.
I have placed it in the same location where the action class resides and
tried placing it in all of its root directories. But could not
Hi All,
I'm sorry to keep harassing everyone with my need for a treeview tutorial. I
have a module I would like to deliver in 2 days in which I need to make use of
a tree viewer to represent data. I have received links from others to demo
pages of treeviews (thank you for that), but none of
Have you looked at the examples in showcase? There is a tree there
that is populated on an action, all you would have to do is load the
data from your database, instead of returning static data as in the
example.
//I haven't seen any step by step tutorial on how to use the tree
musachy
On
Have you looked at the showcase example (it's part of the Struts downloads)?
That's how I figured it out.
Matt
lupus wrote:
Thanks Matt,
Sorry that I mailed you directly the response, I am not familaw with
nabble :).
I think the problem is in the configuration of struts-jsf.xml and
Dale,
Thanks for your fast reply. You pointed me in the right direction and I
found a fix afterall! The issue is described here:
http://jira.opensymphony.com/browse/XW-512
Upgrading XWork to 2.0.3+ fixes the problem.
--Art
DNewfield wrote:
Art Krahenbuhl wrote:
How can we get rid of
Hello,
I get an error while trying to run the example app that is on the this
site http://cwiki.apache.org/S2PLUGINS/json-plugin.html
After following the instructions i got this files:
Welcome.jsp
%@ taglib prefix=s uri=/struts-tags %
html
head
titleWelcome/title
/head
body
s:url
This problem comes up from time to time and I always forget what it
was, search the list and you find a few threads about it. It isn't
related to the json plugin itself (you will get the error on the first
used tag)
musachy
On 7/30/07, Nicolás Mery [EMAIL PROTECTED] wrote:
Hello,
I get an
http://www.nabble.com/Re%3A-NPE-in-TagUtils.getStack-after-upgrading-to-2.0.1-tf2708127.html#a7724423
musachy
On 7/30/07, Musachy Barroso [EMAIL PROTECTED] wrote:
This problem comes up from time to time and I always forget what it
was, search the list and you find a few threads about it. It
I am using the restful mapper through a CompositeActionMapper as in
constant name=struts.mapper.class
value=org.apache.struts2.dispatcher.mapper.CompositeActionMapper/
constant name=struts.mapper.composite value=struts,restful/
However, the css files dont seem to be loading for any of the URLs
Thanks!!
On 7/30/07, Musachy Barroso [EMAIL PROTECTED] wrote:
http://www.nabble.com/Re%3A-NPE-in-TagUtils.getStack-after-upgrading-to-2.0.1-tf2708127.html#a7724423
musachy
On 7/30/07, Musachy Barroso [EMAIL PROTECTED] wrote:
This problem comes up from time to time and I always forget what
Hi,
We got a S2 application on https, but
as recommende we use the Redirect Action Result to
forward to another action but
the issue is it changes the scheme from https to http.
Can someone let me know why this is all about.
Thanks,
I'm really losing my mind over this treeview. I've tried every example online,
but none of them give any walkthrough that can be followed to reproduce the
feature; there are always a number of unusable elements that require other
snippets of code that are not made available.
I checked out the
Hi Matt,
Thanks a looot.
Yes I have tried the show-case ony for 4 hours but failed (my project time
is tight and too rush), and then I changed my mind to try to create the
shortcut jsf page to test, failed too. Now, I think you are right, I have
to calm down to look into the show-case and let u
Thanks for the suggestion! I tried both methods so I can learn. I can see
myself using both approaches in the future.
Although I noticed one thing, I had a page with 2 forms and whenever I have
one of the forms submit my ajax call, a TypeError: elements has no
properties message is returned.
Hi,
I've been trying for 2 days straight (no sleep) to get a tutorial for creating
a tree viewer, but to no avail (all examples and links given were incomplete,
but thanks for sending them though). I would like to contact Ted Husted, who's
name appears at the top of the tutorials
Hi,
I wrote a simple screen with 2 html:selects [fromList, toList] and 2 buttons
Add Remove
using html:optionscollection tag and now need to rework the code using
html:options collection=
html:select property='selectedFromIds' multiple=true
html:*optionsCollection* property='fromList'/
The long hours have started to pay off; I went down and durty with the code and
was able to move things around in such a way that it displays the tree. It
took me close to 35hours, wow.
Thanks for your eager assistance.
Best,
Session
Hi, if you use struts2.x, you should use s:tree I think
JSP:
html:form action=/action2 method='POST'
table
tr
td
%--html:select property='selectedFromIds' multiple=true--
html:optionsCollection property='fromList'/--
/html:select--
!--html:select property=submissionType multiple=true
I don't think you quite understand how this works, first there is the
code (I got Ted's authorization to reveal it :) :
http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_9/core/src/main/java/org/apache/struts2/components/Tree.java?view=log
Then there are tutorials:
Have you configured the s2 for the static content,
you should consider that ajax theme's js/css/img files should be loaded
properly.
Have you looked at the generated sources or just the page is displayed as
blank?
Best,
Aram
Aram Mkhitaryan
52, 25 Lvovyan,
74 matches
Mail list logo