solutions I've seen for struts will not work with
>> the conventions plugin or they require sitemesh. I'd prefer a more
>> struts2
>> solution.
>>
>> Thanks,
>> Adam
>>
>>
>> Paweł Wielgus wrote:
>>>
>>> Hi Adam,
&g
I'm not that familiar with the JSON result type, but it looks like data would
contain the property methods of your SortTierVO bean. An easy way to see
whats going on is to browse to SortTiersAction and see what spits out of the
browser. It should look something like this:
{
method1: 'value',
; Also check the other thread about this subject, that was on the list
> feew days (maybe weeks) ago.
>
> Best greetings,
> Pawel Wielgus.
>
> 2009/3/31, Adam Ruggles :
>>
>> I'm looking for a way using the convention plugin to support custom
>> themes/sk
I'm looking for a way using the convention plugin to support custom
themes/skins for a web page. Right now I can't really see a good way to
implement this using struts2.
--
View this message in context:
http://www.nabble.com/Skinning%2C-themeing-with-stuts-2.1.x-and-the-convention-plugin-tp2279
If you're using spring, why don't you use spring to inject your property?
Kumar Mettu wrote:
>
> Musachy,
>
> This works great as long as default Struts Object Factory is used but
> get the exception the following exception If I try to use
> StrutsSpringObjectFactory
> com.opensymphony.xwor
Good news, thanks.
Chris Pratt wrote:
>
> I've been using OGNL 2.7.2 with Struts 2.1.2 for a while and haven't
> noticed
> any problems.
> (*Chris*)
>
> On Sun, Dec 7, 2008 at 9:34 PM, Adam Ruggles <[EMAIL PROTECTED]> wrote:
>
>>
>> A
Are there any known issues with using OGNL 2.7.3 with Struts 2.1.2?
--
View this message in context:
http://www.nabble.com/Any-issues-with-using-OGNL-ver-2.7.3-tp20889755p20889755.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
txt' and in case of
> validation error messages read the file from that locaton ???*
>
> Please reply..
>
> Thanks again,
>
> Shazad
>
> On Mon, Dec 1, 2008 at 1:02 AM, Adam Ruggles <[EMAIL PROTECTED]> wrote:
>
>>
>> I could be wrong but I b
You can use this little snippet to get a connection:
public Connection getConnection(String url, String driverClassName,
String
username, String password) throws SQLException {
try {
Class.forName(driverClassName);
} catch (ClassNot
I could be wrong but I believe you'd have to implement your own file upload
interceptor and make sure the file is not removed after the execution of the
action if a validation error occurs. Then you'd need to re-associate that
saved file when the next request occurs. Also what happens if they ne
it fails it will run
>> prepareEdit.
>>
>> On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote:
>>>
>>> I have a problem I'm trying to solve when the validation fails on a crud
>>> action. This action has add/create, edit/update, and list meth
Personally I think it would be a bad idea to buffer the data from the db,
since most users when performing a search will only look at the first page
of results. It would be better to simply return a limited set of results
from the DB. Otherwise you might be fetching data the user will never see.
prepareWhenErrors" or something.
>
> Dave
>
> --- On Sat, 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote:
>> I have a problem I'm trying to solve when the validation
>> fails on a crud
>> action. This action has add/create, edit/update, and
I've never used IDEA, but I do like Eclipse with the aptana plugin. I
believe it even has a DOJO specific piece to their plugin.
nikunj-2 wrote:
>
>
>
> Dear All,
>
> Which IDE is best to implement DOJO, eclipse, IDEA or other?
>
> Is any open source IDE available, which gives developer
I have a problem I'm trying to solve when the validation fails on a crud
action. This action has add/create, edit/update, and list methods that all
get called correctly. Now when the validation fails I have a list of items
that I need loaded. Right now I have a prepareEdit and prepareAdd method
n one of my applications. i don't have any
> issue. i am using version 2.0.12 and struts-default package without any
> modification to the interceptor stack.
>
> Adam Ruggles wrote:
>> I logged bug for this https://issue
I logged bug for this https://issues.apache.org/struts/browse/WW-2873
--
View this message in context:
http://www.nabble.com/Something-special-about-action-named-%22logout%22-tp20513297p20523011.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
It looks like the action mappings didn't post correctly here is that piece
again.
/WEB-INF/pages/index.jsp
/WEB-INF/pages/index.jsp
I'm having an issue with naming one of my actions logout and I'm trying to
figure out why.
I have a action named logout and another one called out. They both have the
exact same class and results. However when I try to browse to logout.action
I get a stack trace and when I browse to out.action
Use a struts interceptor instead of a servlet filter. That way you can check
the return type of the action that gets executed and respond appropriately.
Burton Rhodes wrote:
>
> I am having trouble getting Struts 2.x to implement validation and
> hibernate using the HibernateSessionRequestFil
iga Sibaja
> __
> [EMAIL PROTECTED]
>
> divide et impera...
>
>
> On Wed, Nov 12, 2008 at 11:31 PM, Adam Ruggles <[EMAIL PROTECTED]>
> wrote:
>
>>
>> I'm trying to figure out why struts/xwork is having issues doing the
>&
do you have the tag on your page?
Tomi21 wrote:
>
> Hi everyone,
>
> I've migrated my web application to the last release 2.0.12 and all things
> that require 'dojo' are not working correctly(datetimepicker, tooltip,
> etc.).
> The error message is "dojo is not defined".
>
> Does anyone know
I'm trying to figure out why struts/xwork is having issues doing the
conversion on an Integer property. Here is the configuration.
public class MyAction extends ActionSupport implements Preparable,
ModelDriven {
private MyObject obj;
public void prepare() throws Exception {
obj = new MyO
It looks like this is a Google Guice issue. When I swapped the guice plugin
for the spring plugin everything worked as expected.
--
View this message in context:
http://www.nabble.com/Struts-2.1.2-client-side-validation-doesn%27t-get-generated-tp20221161p20240986.html
Sent from the Struts - Use
Anyone? The server side validation works fine, when I post the form it comes
back with the correct validation but the client side is not being generated
because the performValidation is being set to false.
The obvious work around is to edit the form-close-validate.ftl and remove
(parameters.perf
I'm trying to get struts to spit out the client side validation code and it
doesn't seem to be working. The backend validation is working fine but when
I use the xhtml theme with the , the script code under the form is
not being generated.
Looking at the code it looks like it's failing this chec
ExtJS and jQuery.
On Jan 16, 2008 5:56 PM, tzhang <[EMAIL PROTECTED]> wrote:
>
> I am doing some research ajax+struts2. you know struts2.0 has the built-in
> supprot for ajax based on Dojo, but I found the components is not very
> rich,
> only have some basic function. I know there are a lot of a
Looking at this pretty quickly it looks like you left out the class for your
action="test"
On Jan 2, 2008 2:03 PM, Mufaddal Khumri <[EMAIL PROTECTED]> wrote:
> I need to break my struts.xml into modules. So I came across this
> page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large-
> st
.
Thanks for the reply
Shoaib
--- Adam Ruggles <[EMAIL PROTECTED]> wrote:
Well I don't know about the javascript piece but the
id on your input is
invalid. Your input should look something like
this:
Shoaib Gauhar wrote:
Thanks for the reply. Actually the code which i
Well I don't know about the javascript piece but the id on your input is
invalid. Your input should look something like this:
Shoaib Gauhar wrote:
Thanks for the reply. Actually the code which i have
posted is valid for any other component than
inputtransferselect and maybe other transfer sel
It looks like your action isn't defined to be in the cib-default
package. Try configuring the action in the xml file instead of using
the annotations.
Eric D Nielsen wrote:
I've written a pair of interceptors to implement my application's authentication
and authorization requirements. I'm no
You copy the file to a new location in the action. It removes the file
after the action method is executed.
Session A Mwamufiya wrote:
How do I stop the FileUploadInterceptor from firing and deleting the files? Is
there a setting to put in struts.xml or web.xml?
I copied verbatim what there
No they won't. Only the login interceptor will be called.
hezjing wrote:
Hi
With the following struts.xml,
index.jsp
Will the interceptors configured in struts-default package be
executed, followed by the login interceptor?
Can we describe this
I have a form that uses the validation framework so when the user
submits a page I have a /myform.jsp
statement that re-renders the input form and displays the fields that
failed validation. The problem I'm running into is that I have a option
transfer select field and once the form is re-rend
There is nothing wrong with the plugin, I'm using it on multiple apps.
It looks like you have an error in your dataSource definition. I would
post this on the springframework forum.
Jiang, Jane (NIH/NCI) [C] wrote:
Hi,
Has anyone got Struts Spring plug-in to work? I am getting this error s
wrote:
I have not. Can you give me a link?
Thanks,
Kevin
Adam Ruggles wrote:
Have you looked at using the restful url stuff?
Kevin Lawrence wrote:
I know you were joking but, for me, there are two concerns:
1. I want the urls to be memorable
www.junitfactory.com/demo
is easier to remember
Have you looked at using the restful url stuff?
Kevin Lawrence wrote:
I know you were joking but, for me, there are two concerns:
1. I want the urls to be memorable
www.junitfactory.com/demo
is easier to remember than
www.junitfactory.com/demo.action (or .htm or .html or .jsp)
2. I will
Have you tried this?
Value of the arry is
tom tom wrote:
I did further investigation,
I think this is a bug, I think this is a very scary
bug.
You dont need three iterators, I could reproduce this
very easily,
In your action class have the following,
String[] testArray = new Stri
https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243
WW-1993
Musachy Barroso wrote:
What if the ticket number? That would be a major issue
regards
musachy
On 6/25/07, Adam Ruggles <[EMAIL PROTECTED]>
Something broke between 2.0.6 and 2.0.8 when posting collections. You
will need to create a conversions properties file for your action. I've
logged a bug but I haven't had any feed back on it yet.
Felipe Rodrigues wrote:
HI,
I'm having a similar problem.
My action only get's the really sele
Are you specifying the entire class name in the action mapping
definition instead of using the spring bean id?
[EMAIL PROTECTED] wrote:
It appears as though I am not getting a new Action instance created
for each
request! I have placed a logging statement in the constructor of my
Action
clas
Try adding a conversions.properties file to your action.
kris16 wrote:
Hi,
we have problems with setting HIDDEN values in an array list on a web page.
The problem code in the jsp page looks like this:
The problem seems to be that the object that are to be set is a list,
Ok it worked again once I added a conversion.properties file to the
action.
Why do I need a conversion properties file now? Did some default setting
change in relation to this?
Adam Ruggles wrote:
My Form looks like this:
...
...
My Action looks like this
/**
* A list
My Form looks like this:
...
...
My Action looks like this
/**
* A list of Invoices.
*/
private List invoices;
/**
* Sets invoices.
* @param invoices The invoices to set.
*/
public void setInvoices(final List invoices) {
this.invoices = invoices;
I have to ask... why don't you just set it in the action?
public String execute() throws Exception {
this.lastName = this.firstName;
...
}
Mansour wrote:
Yes, I do have the correct setters for the Account object.
Lance wrote:
Do you have the approptriate getters and setters?
eg
action.
I don't believe you can.
jalal udeen wrote:
hi all
can any one explain me how to disable both back button
and refresh button
thanks
jalaludeen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
sing the property tag i got no output at all.
I'll try to use the webwork stuff.
Is this really how it works?
On 5/7/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
have you tried using the property tag instead?
Diego Yasuhiko Kurisaki wrote:
> Hi i've written the following
have you tried using the property tag instead? value="ca.name" />
Diego Yasuhiko Kurisaki wrote:
Hi i've written the following in a JSP.
${ca.name}
${ca.description}
remove
edit
I have a method in my action called getClients.
Whe
Looks like this is where it is trying to go
http://cwiki.apache.org/S2PLUGINS/spring-plugin.html#SpringPlugin-InitializingActionsfromSpring
wolverine my wrote:
Hi!
The page is not found when we clicked on "Initializing Actions from
Spring" from
http://struts.apache.org/2.x/docs/why-would-we-w
If you are using the spring plugin then all you should have to do is add
a setter to your action class and spring will handle it.
ie
public void setUserDAO(IUserDAO userDAO) {
this.userDAO = userDAO;
}
wolverine my wrote:
Hi!
I have action classes configured in struts.xml and the DataSour
be tackled for 2.0.8:
https://issues.apache.org/struts/browse/WW-1886
musachy
On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
Is there a way to change the default searchLimit on the autocompleter
tag? I guess the default is 30 but I nee
Is there a way to change the default searchLimit on the autocompleter
tag? I guess the default is 30 but I need that increased.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
de the
div and make it visible again it still displays correctly.
Musachy Barroso wrote:
Follow the white rabbit :)
//there could be a bug in the autocompleter anyway
musachy
On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
The one in the showcase works. Interesting...
Musachy Ba
The one in the showcase works. Interesting...
Musachy Barroso wrote:
2.0.6? Does the page in showcase for the autocompleter display the arrows
for you?
musachy
On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
Nope. Still nothing displayed.
Musachy Barroso wrote:
> it is indee
Nope. Still nothing displayed.
Musachy Barroso wrote:
it is indeed. Do you see the arrow if you don't specify anything in
"visibleDownArrow"?
musachy
On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
I'm starting to play with the autocompleter tag but I
I'm starting to play with the autocompleter tag but I'm running into one
issue. No matter what I set showDownArrow to it will never display a
down arrow. The html that is sent to the browser looks like this:
The code that is generated on the client side (view generated source on
firefox) l
nutes to write one so no biggy.
Thanks for the feedback.
Laurie Harper wrote:
Adam Ruggles wrote:
I have an object that contains a Java 5 enum class. I'm having
problems getting this to post back to my action. Is there any
documentation on how to do this? Do I need to create a c
-fetching the data from the database, user 1 will
not know of the change. Even if he/she refreshes the page.
Mansour wrote:
Adam Ruggles wrote:
The problem with the store in session solution is what if two people
are working on the same account at the same time?
Hummm,
Good point. But wait
The problem with the store in session solution is what if two people are
working on the same account at the same time?
Mansour wrote:
Dave Newton wrote:
--- Mansour <[EMAIL PROTECTED]> wrote:
I see what you mean now. and after I call update,
then I have to populate it again to redisplay the
I haven't tracked it down yet, but I think it is in the type
converters. Are you using dates or decimal values on your forms?
Zach Calvert wrote:
Has anyone figured out why Validation randomly fails???
On 4/14/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
I'm having a simil
ription. Everything else is unchanged. So in
my DAO update method I would check for non-null fields and add the ones
that are not null to the sql statement. Then execute the statement.
Mansour wrote:
Adam Ruggles wrote:
Then why don't you simply pass the id of the account you want to
updat
fic.
Mansour wrote:
I am accessing the DB using JDBC.
Adam Ruggles wrote:
How are you accessing the database? JDBC, Hibernate, Another ORM
solution?
Mansour wrote:
Ok Dave:
you are really helping me a lot. I think I'll have to explain to you
exactly what I am doing, and you give me an ad
How are you accessing the database? JDBC, Hibernate, Another ORM solution?
Mansour wrote:
Ok Dave:
you are really helping me a lot. I think I'll have to explain to you
exactly what I am doing, and you give me an advice about how to do it.
Okay?
I 've been trying to learn struts 2 for a week
I'm having a similar problem. I'm extending the ActionSupport object
and I have no validation specified and I'm experiencing the same issue.
I did enable validation and the results didn't change. The application
was previously built on webwork2 where I didn't experience these issues
at all.
I have an object that contains a Java 5 enum class. I'm having problems
getting this to post back to my action. Is there any documentation on
how to do this? Do I need to create a custom type
converter/annotation/properties file?
-
Did you publish your project before starting tomcat through eclipse?
[EMAIL PROTECTED] wrote:
Hi all
This problem has been driving me crazy and I know that it should be a
simple problem. I have already posted this in this mailing list, but a
simply configuration issue is stopping my developme
Do you have the uri defined in your web.xml file?
[EMAIL PROTECTED] wrote:
Hi all
I am trying to run this sample application.
http://struts.apache.org/2.x/docs/simplelogin-with-session.html
I am getting errors in this page welcome.jsp
<%@ page language="java" contentType="text/html; charset
I put mine in the root of my jar file and it works fine. I don't even
have a classes folder.
Manu Mahajan wrote:
Hello
I want to know if it is possible to change the location of the
struts.xml file. I don't want to keep it in the WEB-INF\classes
directory. Ideally I would like to create a j
method on the action
when in an iteration loop.
For the time being, I'm taking Dave Newton's advice on using the index
of the item in the valuestack array in order to access the correct
object when in the iteration.
I appreciate your help!
Eric Rank
On Mar 26, 2007, at 7:27 PM, Ad
stack that might give a more direect reference to the
action?
Eric.
On Mar 26, 2007, at 5:10 PM, Adam Ruggles wrote:
have you tried
Eric Rank wrote:
Hi Everyone,
I'm having an interesting experience with the use of the iterator
tag (Struts 2.0.6).
I have an action with getter method si
have you tried
Eric Rank wrote:
Hi Everyone,
I'm having an interesting experience with the use of the iterator tag
(Struts 2.0.6).
I have an action with getter method signature which is the same as the
getter of an iterator item.
As such when I'm within an iterator loop, and I call the g
/Nope. What about ? Or
Javascript injection through CSS in IE? What about any new Javascript
injection mechanism that some browser adds down the line... ;-) /
Which browser did you get this injection to work on? Other than fixing
the misspelling of alert, I couldn't get the javascript to exec
You should check out this site:
http://iamcal.com/publish/articles/php/processing_html/
It's in PHP and Perl, but it only took me a couple of hours to translate
it to Java.
Sami Dalouche wrote:
Hi,
If you want to escape HTML, you can use Jakarta Commons-Lang
StringEscapeUtils class :
http:/
on %{zipUrl} is fetching the zip info from a database and populating
the fields that the DIV is supposed to include in the form. I have
programmed a bunch of JSP's using this technique with XmlHttpObject!
Do you
suppose S2 does not allow it?
Thanks
Scott
On 3/14/07, Adam Ruggles <[
Hi Stanlick,
I think I know whats going on here. Whatever %{zipUrl} in the DIV's
href property is pointing to is generating the bad HTML.
This part:
City: State:
Is what is being pulled in from your %{zipUrl}.
[EMAIL PROTECTED] wrote:
Hey Dave, how about *you* disregard this thread
if you are using a tag with the default theme a form tag is
rendered. Inside of that form tag is a table tag. If all you want is a
simple tag then use the simple theme.
Ian Roughley wrote:
No - what I said was that I would be surprised if the s2 tag
DOES NOT generate a HTML tag. This wa
One quick thing I see wrong is you have singleton="false" that is a
spring 1 attribute.
Shih Lee wrote:
Hi All,
I think I know what is the trouble but am still not sure why is this a
problem for Struts 2.0. I hope someone from the Struts community can help to
shed some light.
The problem is w
I found the solution to this and I wanted to post it on the list.
adding proxy-target-class="true" fixes it.
proxy-target-class="true" />
Adam Ruggles wrote:
Creating a service object seems to have worked. Now I'm going to have
to re-think using action s
The first example you give on vitarara.org is the correct method.
Mark Menard wrote:
On 2/28/07 11:06 AM, "John Trollinger" <[EMAIL PROTECTED]> wrote:
I am trying to use struts 2 and can not figure out how to do the following
that I could in struts 1.3
is there still a way to do this
The difference between using AJAX and just refreshing a page is a well
designed AJAX application sends over just the information that is
needed. For a JSP/HTML page refresh you're sending more data over the
line. The key here is a well designed AJAX application.
Maya menon wrote:
Thank you
dojo.widget.byId(id)
it will return the widget for the div.
musachy
On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
The error I'm getting is "Error: elementDiv has no properties." in
Firefox. Basically Window[elementId] is returning undefined. This
worked fine when
ts/widget/BindDiv.js?view=markup
)
ajax docs: http://cwiki.apache.org/WW/ajax-tags.html
Showcase has several examples also.
regards
musachy
On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
Well the part it is dying on is the "elementDiv.href = href;" so it
isn't even getti
tead. Or "refreshListentTopics" if you wan to
use
topics. "bind" should have been there for backward compatibility (mea
culpa)
regards
musachy
On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:
I'm currently in the process of migrating my webwork 2 applicatio
I'm currently in the process of migrating my webwork 2 application over
to struts 2. I only have one more remaining issue the function
specified on this page doesn't seem to work
(http://struts.apache.org/2.x/docs/ajax-div-template.html).
function refresh(elementId, href) {
var elementDiv =
Can you confirm that you have struts2-core-2.0.6.jar in you lib folder
and it contains the struts-default.xml file in the root folder in the
jar file.
alex xander wrote:
hi, im using struts 2.x
and i have some problem here.
i break up my struts.xml into smaller piece
when i used struts 2.0.1
really is a problem with Struts, then the problem will persist (pun
intended); but when you move them to the service layer, it will
indicate whether you have mis-configured Spring or if Struts is at fault.
Paul
Adam Ruggles wrote:
I am following the guide here
http://cwiki.apache.org/S2WIKI/s
configured Spring or if Struts is at fault.
Paul
Adam Ruggles wrote:
I am following the guide here
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
For some reason when trying to map a method other than execute I
recieve the following error:
- Servlet.service() for servlet def
with
what you're doing.
--- Adam Ruggles <[EMAIL PROTECTED]> wrote:
Ok I think I found the problem. If I remove the
"extends ActionSupport"
it works without any problems. I know "extends
ActionSupport" works
with Webwork 2, is this a bug or a change in
imple
Ok I think I found the problem. If I remove the "extends ActionSupport"
it works without any problems. I know "extends ActionSupport" works
with Webwork 2, is this a bug or a change in implementation?
Adam Ruggles wrote:
I am following the guide here
http://cwiki.apache
I am following the guide here
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
For some reason when trying to map a method other than execute I recieve
the following error:
- Servlet.service() for servlet default threw exception
java.lang.NoSuchMethodException: $Proxy18.find()
B
90 matches
Mail list logo