Author Login
Post Reply
user Digest 29 Jan 2008 13:00:42 -0000 Issue 7830
Topics (messages 181882 through 181909):
Re: Struts 2.1.1-SNAPSHOT upgrade
181882 by: Sanjeev Vijapurapu
181888 by: Keith Davis
Struts2 and CMS
181883 by: Sanjeev Vijapurapu
Struts 2: Can not set Action's property which is an array of Strings
181884 by: Andriy Kharchuk
181885 by: Hernandez, David
181890 by: Andriy Kharchuk
AJAX approach
181886 by: pvazquez.denodo.com
181895 by: Jeromy Evans
Re: Flash/wizard- scope
181887 by: Martin Gainty
Re: tag writers resources?
181889 by: Jeromy Evans
181898 by: Joachim Ansorg
Re: Pretty urls without .action
181891 by: Zoran Avtarovski
181893 by: Jeromy Evans
[S2] Starter application in IE & Firefox
181892 by: hezjing
best way to handle multiple buttons in a form?
181894 by: Jason Dolinger
Re: [STRUTS2] Error in Dojo / Howto update Dojo
181896 by: ravi_eze
181900 by: Julien RICHARD
Re: Type converters: please help!!! :(
181897 by: ravi_eze
Re: [struts] tag writers resources?
181899 by: Joachim Ansorg
Where did the target attribute go in the a-tag?
181901 by: niels
181905 by: David Tercero
181906 by: niels
181907 by: David Tercero
181908 by: David Tercero
181909 by: niels
dojo 1.0 DateTextBox and ISO-8601
181902 by: Roberto Nunnari
Error messages is repeated Using Struts 2 Annotation validation
181903 by: Johnson nickel
Problem setting id property of texfield tag
181904 by: David Tercero
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_181882.ezm (zipped)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
namespace "/".Why doesn't it forward the request so that it can be
fulfilled by welcome file list. Is this a bug or was it changed to do
that?
2. My tiles app is broken. It suddenly cannot run the jsp anymore.
It throws some RoleSecurity tag issue. I have checked that I don't have
any duplicate jstl or standard jars. I have cleared my work folder and
tried running it, still it doesn't work. It's the same case even with
2.0.11. Was anything changed in the tiles plugin? It doesn't seem to be
struts issue because its jsp failure but it only happens when I upgrade
struts.
Thanks

Attachment:
user_181888.ezm (zipped)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:SVijapurapu@(protected)]
Sent: Monday, January 28, 2008 12:52 PM
To: user@(protected)
Subject: FW: Struts 2.1.1-SNAPSHOT upgrade
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
namespace "/".Why doesn't it forward the request so that it can be
fulfilled by welcome file list. Is this a bug or was it changed to do
that?
2. My tiles app is broken. It suddenly cannot run the jsp anymore.
It throws some RoleSecurity tag issue. I have checked that I don't have
any duplicate jstl or standard jars. I have cleared my work folder and
tried running it, still it doesn't work. It's the same case even with
2.0.11. Was anything changed in the tiles plugin? It doesn't seem to be
struts issue because its jsp failure but it only happens when I upgrade
struts.
Thanks

Attachment:
user_181883.ezm (zipped)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

Attachment:
user_181884.ezm (zipped)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
<s:iterator value="entityList" status="rowstatus">
<s:textfield name="selectedItems[%{#rowstatus.index}]"/>
2. Action
private String[] selectedItems;
public String[] getSelectedItems(){
return selectedItems;
}
public void setSelectedItems(String[] selectedItems){
this.selectedItems = selectedItems;
}
Exception is
[ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or set
value back on to object |
com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
InstantiatingNullHandler.java:110)| nullPropertyValue
java.lang.InstantiationException: [Ljava.lang.String;
at
java.lang.Class.newInstance0(Unknown Source)
I will appreciate any help.
Thanks,
Andriy

Attachment:
user_181885.ezm (zipped)Andriy,
Try putting the array in an encapsulating object, i.e. an ArrayList.
Regards,
David Hernandez
-----Original Message-----
From: Andriy Kharchuk [mailto:andriy.kharchuk@(protected)]
Sent: Monday, January 28, 2008 4:15 PM
To: Struts Users Mailing List
Subject: Struts 2: Can not set Action's property which is an array of
Strings
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
<s:iterator value="entityList" status="rowstatus">
<s:textfield name="selectedItems[%{#rowstatus.index}]"/>
2. Action
private String[] selectedItems;
public String[] getSelectedItems(){
return selectedItems;
}
public void setSelectedItems(String[] selectedItems){
this.selectedItems = selectedItems;
}
Exception is
[ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or
set value back on to object |
com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
InstantiatingNullHandler.java:110)| nullPropertyValue
java.lang.InstantiationException: [Ljava.lang.String;
at
java.lang.Class.newInstance0(Unknown Source)
I will appreciate any help.
Thanks,
Andriy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
--------
IRS Circular 230 Disclosure:
Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.

Attachment:
user_181890.ezm (zipped)It helped. Thank you.
2008/1/28, Hernandez, David <david.hernandez@(protected)>:
>
>
> Andriy,
>
> Try putting the array in an encapsulating object, i.e. an ArrayList.
>
> Regards,
>
> David Hernandez
>
> -----Original Message-----
> From: Andriy Kharchuk [mailto:andriy.kharchuk@(protected)]
> Sent: Monday, January 28, 2008 4:15 PM
> To: Struts Users Mailing List
> Subject: Struts 2: Can not set Action's property which is an array of
> Strings
>
> 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
> <s:iterator value="entityList" status="rowstatus">
> <s:textfield name="selectedItems[%{#rowstatus.index}]"/>
>
> 2. Action
> private String[] selectedItems;
>
> public String[] getSelectedItems(){
> return selectedItems;
> }
>
> public void setSelectedItems(String[] selectedItems){
> this.selectedItems = selectedItems;
> }
>
> Exception is
> [ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or
> set value back on to object |
> com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
> InstantiatingNullHandler.java:110)| nullPropertyValue
>
java.lang.InstantiationException: [Ljava.lang.String;
> at
java.lang.Class.newInstance0(Unknown Source)
>
> I will appreciate any help.
>
> Thanks,
> Andriy
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - -
>
> This message is intended only for the personal and confidential use of the
> designated recipient(s) named above. If you are not the intended recipient
> of this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited. This
> communication is for information purposes only and should not be regarded as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as an official
> statement of Lehman Brothers. Email transmission cannot be guaranteed to be
> secure or error-free. Therefore, we do not represent that this information
> is complete or accurate and it should not be relied upon as such. All
> information is subject to change without notice.
>
> --------
> IRS Circular 230 Disclosure:
> Please be advised that any discussion of U.S. tax matters contained within
> this communication (including any attachments) is not intended or written to
> be used and cannot be used for the purpose of (i) avoiding U.S. tax
> related penalties or (ii) promoting, marketing or recommending to another
> party any transaction or matter addressed herein.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_181886.ezm (zipped)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 don´t know very well
how to achieve this. I suppose I must be polling the web server and
getting the whole collection each time, but this collection may be
huge, so I don´t think it would be a nice approach. What I would like
most would be changing only those attributes that changed from the
last polling.
Supposing that I have an action at the model layer that returns me a
collection with only those item that have changed (the first time it
must return me the whole items), (or maybe, I could have 2 actions:
one for ask if sth has changed and another one to retrieve the whole
collection -if sth has changed-), how can I modify the HTML to update
the shown content? Could I convert the item's collection in the
controller action to JSON and retrieve it in the jspx? It is, call
this controller action directly from javascript? Is there an easier
way to do this using Struts2 or do I have to use "AJAX raw"?
To sum up:
controller action -> model action -> returns collection<Item> ->
controller action returns jspx where I draw the table. Now how do I
update this table? The easy way would be using an s:div tag with
href="action" and a timer to update it, but it would involve update
the whole table.
Any help would be grateful.
Thanks.
----------------------------------------------------------------
http://www.denodo.com
Aviso Legal
Este mensaje es solamente para la persona a la que va dirigido.
Sus contenidos y cualquier archivo adjunto son confidenciales.
Si usted lo ha recibido por error, le rogamos que lo borre y
lo notifique a postmaster@(protected).
Gracias.
Legal Notice
This message is intended for the addressee only and its contents
and any attached files are strictly confidential.
If you have received it in error, please remove this mail and
contact postmaster@(protected).
Thank you.

Attachment:
user_181895.ezm (zipped)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 always output the changes that
occurred between the start timestamp and end timestamp. If the start
timestamp is null you want all data. If the end timestamp is null you
want most recent.
This would simplify the action down to the single responsibility of
providing the difference in the data between the start and end timestamp.
If your data changes against something other than time, such as revision
number, then use that as the arguments.
The table data will need to be decorated with information about the
timestamp/revision.
I would output the data as JSON or XML, not HTML.
The client (javascript) maintains the state for your user. It knows
whether its loaded data yet, the timestamp/revision of the current data
and controls when to get an update (periodically or triggered). I would
use a javascript library that includes an ajax datagrid. That's a fancy
name for a table that can update its data asynchronously. My favourite
is YUI (http://developer.yahoo.com/yui/datatable/) but there are plenty
available.
Whatever the implementation, the datagrid will include a data model that
contains the table data (eg. a RecordSet in YUI) and includes methods
for updating the table model dynamically. If you ever used Swing, they
generally work like Swing's TableModel.
Your responsibility will be to map the changed data into the datagrid's
model. As the current state and data is in memory (eg. in the RecordSet)
and the changed data is available from your action's result (eg. in XML
or a JSON structure) you can iterate through the changes and apply each
them to the model. As the model is changed, the library will update the UI.
Hope that gives you some direction.
regards,
Jeromy Evans
pvazquez@(protected):
> 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 don´t know very well
> how to achieve this. I suppose I must be polling the web server and
> getting the whole collection each time, but this collection may be
> huge, so I don´t think it would be a nice approach. What I would like
> most would be changing only those attributes that changed from the
> last polling.
>
> Supposing that I have an action at the model layer that returns me a
> collection with only those item that have changed (the first time it
> must return me the whole items), (or maybe, I could have 2 actions:
> one for ask if sth has changed and another one to retrieve the whole
> collection -if sth has changed-), how can I modify the HTML to update
> the shown content? Could I convert the item's collection in the
> controller action to JSON and retrieve it in the jspx? It is, call
> this controller action directly from javascript? Is there an easier
> way to do this using Struts2 or do I have to use "AJAX raw"?
>
> To sum up:
> controller action -> model action -> returns collection<Item> ->
> controller action returns jspx where I draw the table. Now how do I
> update this table? The easy way would be using an s:div tag with
> href="action" and a timer to update it, but it would involve update
> the whole table.
>
> Any help would be grateful.
>
> Thanks.
>
>
> ----------------------------------------------------------------
> http://www.denodo.com
>
> Aviso Legal
> Este mensaje es solamente para la persona a la que va dirigido.
> Sus contenidos y cualquier archivo adjunto son confidenciales.
> Si usted lo ha recibido por error, le rogamos que lo borre y
> lo notifique a postmaster@(protected).
> Gracias.
>
> Legal Notice
> This message is intended for the addressee only and its contents
> and any attached files are strictly confidential.
> If you have received it in error, please remove this mail and
> contact postmaster@(protected).
> Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>

Attachment:
user_181887.ezm (zipped)Hi Rikard
Where is the redirect class ?
Thanks
M-
----- Original Message -----
From: "Rikard" <rikardqvarforth@(protected)>
To: <user@(protected)>
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 scope or wizard scope? i was surfing around
> and saw this post
>
http://blogs.opensymphony.com/plightbo/2006/03/webwork_flash_scope_support.h
tml
>
> I have made an interceptor that with the help of annotations put objects
in
> the session under a client specified key and after this i was wondering if
i
> should extend my interceptor with even more annotations like
> ex. @ScopeIT(key="blabla" scope="flash|wizard|etc").
> private Person person;
>
> ex2. @ScopeXX(key="blabla" scope="wizard")
> public class MyAction ...
>
> Having the interceptor remove the scoped object depending on any
annotations
> are set or not.
>
> Any suggestion?, ideas? or are there any plans for this already?
>
> --
> View this message in context:
http://www.nabble.com/Flash-wizard--scope-tp15144306p15144306.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_181889.ezm (zipped)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.TagLibrary interface for how to make the model available to Velocity and Freemarker
pages as well.

Attachment:
user_181898.ezm (zipped)Hi Darren,
the example that I posted is just for JSP. But if you look at the
struts2 examples it shouldn't be that hard to make a tag usable in
freemarker or velocity as well.
As you can see the information available on writing native Struts2 tags
is quite hard to find.
The most important reason for me writing a S2 tag has been the
evaluation of the ognl expressions. But as Dale wrote the TagUtils class
can probably be used for that in the standard JSP tags.
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.

Attachment:
user_181891.ezm (zipped)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 (http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html) on
which the library is based.
Z.
>
> Thanks for the help! Would u please give some brief idea, about setting the
> rule in urlrewrite.xml?
> How can I remove .action suffix from each?
>
> Thanks,
> Neha Bhatt
>
>
> Sparecreative wrote:
>>
>> We have adopted using the URL Rewrite Filter
>> (http://tuckey.org/urlrewrite/)
>> which like Apache lets you use SEF addresses which are then mapped to
>> .action urls.
>>
>> Z.
>>
>>
>>
>>>
>>> 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://localhost:8080/email (tends to 404 page not found) but
>>>
>>> http://localhost:8080/email. (with suffix (.) works as ,, ).
>>>
>>>
>>> Jeromy Evans - Blue Sky Minds wrote:
>>>>
>>>> neha bhatt wrote:
>>>>> I am facing same problem.
>>>>> I had tried :
>>>>> eg.
>>>>> struts.action.extension=action,,
>>>>>
>>>>> In such case I am getting Http Status 404.
>>>>>
>>>>>
>>>> As mentioned in the related post titled "Blank action extension in root
>>>> namespace causing 302 in Tomcat" (no link at time of posting), try a
>>>> non-root namespace.
>>>>> where as if I use,
>>>>> eg.
>>>>> struts.action.extension=
>>>>>
>>>>> All files with extenstion like: javascript , css and images not
>>>>> loading.
>>>>>
>>>>>
>>>> This is a slightly different configuration than a double comma:
>>>>
>>>> struts.action.extension=
>>>>
>>>> By setting it to blank, for every request that reaches the Struts2
>>>> filter (eg /*), Struts2 will attempt to match it to an action. If you
>>>> take that broad approach you'll have to setup apache to serve the static
>>>> content as the V2.4 web.xml doesn't allow you to use <exlcludes> in the
>>>> filter mapping.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>> For additional commands, e-mail: user-help@(protected)
>>>>
>>>>
>>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>

Attachment:
user_181893.ezm (zipped)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://localhost:8080/email (tends to 404 page not found) but
>
> http://localhost:8080/email. (with suffix (.) works as ,, ).
>
>
> Jeromy Evans - Blue Sky Minds wrote:
>
>> neha bhatt wrote:
>>
>>> I am facing same problem.
>>> I had tried :
>>> eg.
>>> struts.action.extension=action,,
>>>
>>> In such case I am getting Http Status 404.
>>>
>>>
>>>
>> As mentioned in the related post titled "Blank action extension in root
>> namespace causing 302 in Tomcat" (no link at time of posting), try a
>> non-root namespace.
>>
>>> where as if I use,
>>> eg.
>>> struts.action.extension=
>>>
>>> All files with extenstion like: javascript , css and images not loading.
>>>
>>>
>>>
>> This is a slightly different configuration than a double comma:
>>
>> struts.action.extension=
>>
>> By setting it to blank, for every request that reaches the Struts2
>> filter (eg /*), Struts2 will attempt to match it to an action. If you
>> take that broad approach you'll have to setup apache to serve the static
>> content as the V2.4 web.xml doesn't allow you to use <exlcludes> in the
>> filter mapping.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>>
>
>

Attachment:
user_181892.ezm (zipped)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://people.apache.org/maven-snapshot-repository
then, I modified pom.xml and changed the dependencies to JUnit 4.4 and
Struts 2.0.11.
When loaded the application in Firefox, I can see the menu bar ("Menu
1", "Menu 2" and etc) displayed on the top.
When loaded the application in IE 6.0, the same menu bar is missing!
Do you what could be the problem?
--
Hez

Attachment:
user_181894.ezm (zipped)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.
I've copied these verbatim (along with a small struts.xml to wire them up), and both button boolean fields always remain false. Should this work? I'm using Struts 2.0.11. There's always the route of using Javascript to detect which button was clicked, but I'd rather avoid it if not necessary.
I've also seen mention of a Struts LookupDispatcher or MapDispatcher. Is there something similar in Struts 2?
Thanks, any input is greatly appreciated!
Regards,
Jason

Attachment:
user_181896.ezm (zipped)
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 exploded jars (step
1)
4. copy them all into the struts folder (step 2)
start teh tomcat.
view sourcet the page u are tring to use.. u will see the js files its
tryuing to fetch from the server.. the above steps make sure that they all
exist on the server..
hope this helps.
ravi
Julien RICHARD-2 wrote:
>
> 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 make this with "simple"
> operation ?
>
> Thanks for your answers.
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181900.ezm (zipped)I use Struts 2.0.11 and i have an dojo error when i wants to used textearea
with Ajax theme (this create an richtext box).*
After little research, this is an bug in dojo resolved in 2007/11.
Dojo works perfectly for other features in my code, so i need to update the
dojo in the struts core.
Currently i have integrated FCKEditor instead.
Regards,
On Jan 29, 2008 6:37 AM, ravi_eze <ravichandrac@(protected):
>
> 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 exploded jars
> (step
> 1)
> 4. copy them all into the struts folder (step 2)
>
> start teh tomcat.
>
> view sourcet the page u are tring to use.. u will see the js files its
> tryuing to fetch from the server.. the above steps make sure that they all
> exist on the server..
>
> hope this helps.
>
> ravi
>
>
> Julien RICHARD-2 wrote:
> >
> > 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 make this with "simple"
> > operation ?
> >
> > Thanks for your answers.
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-STRUTS2--Error-in-Dojo---Howto-update-Dojo-tp15132308p15152849.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
--
RICHARD Julien,
UNILOG

Attachment:
user_181897.ezm (zipped)
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
> <struts>
> <package name="newsCreation" namespace="/new"
> extends="struts-default">
>
> <action name="configurenew"
> class="com.comp.admin.news.newConfigurationAction"
> method="viewnew">
> <interceptor-ref name="scope">
> < param name="session">
> newData,disableFields
> < /param>
> </interceptor-ref>
> <interceptor-ref name="conversionError" />
> <interceptor-ref name="params" />
> <result>/new/layout/newConfiguration_layout.jsp</result>
> <result name="input">
> /new/layout/new_layout.jsp
> </result>
> </action>
>
> @com\comp\admin\news\newConfigurationAction-conversion.properties
> newData.maxLimit=com.comp.util.converter.newLongConverter
> ...
>
> @com.comp.util.converter.newLongConverter
> 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()==0 )
> return 0;
> try {
> int i = Integer.parseInt(values[0]);
> return i;
> } catch (Exception ex) {}
> return 0;
> }
> public String convertToString(Map context, Object obj) {
> if (null == obj)
> return "0";
> if(obj instanceof Long)
> return ((Long)obj).longValue()+"";
> return "";
> }
> }
>
>
>
>
> mgainty wrote:
>>
>> Hi Ravi-
>>
>> Could you display your code for your StrutsTypeConverter class please
>>
>> M-
>> ----- Original Message -----
>> From: "ravi_eze" <ravichandrac@(protected)>
>> To: <user@(protected)>
>> Sent: Friday, January 25, 2008 12:58 AM
>> Subject: RE: Type converters: please help!!! :(
>>
>>
>>>
>>> Thank you Jeff for the reply.
>>>
>>> did u mean the *converter* attribute of the action tag that we give in
>>> struts.xml? I didnt give any such attribute in it. I added
>>> ActionClass-conversion.properties: in which i mentioned the attribute to
>>> pickup a class which implements convertFromString and viceversa
>>> functions.
>>>
>>> My action tag in the xml are as follows:
>>>
>>> <struts>
>>> <package name="eventsCreation" namespace="/event"
>>> extends="struts-default">
>>>
>>> <interceptors>
>>> <interceptor name="..." class="..." />
>>> <interceptor name="..." class="..." />
>>> </interceptors>
>>>
>>> <action name="oneAct" class="oneClass">
>>> <interceptor-ref name="...">
>>> ...
>>> </interceptor-ref>
>>> <result>one.jsp</result>
>>> </action>
>>> ...
>>>
>>> let me know if you are looking for anything else.
>>>
>>> cheers,
>>> ravi
>>>
>>>
>>> Jeff Hill (RR) wrote:
>>> >
>>> > Ravi,
>>> > From my understanding of OGNL, it *should* use the model object's
>>> > conversion
>>> > descriptor. It's probably more surprising that it called
>> convertFromString
>>> > without it. Are you using defaultStack?
>>> >
>>> > I believe providing the model object's descriptor is the correct
>> approach,
>>> > and you indicate that it's working. So why the long face? ;-)
>>> >
>>> > -----Original Message-----
>>> > From: ravi_eze [mailto:ravichandrac@(protected)]
>>> > Sent: Thursday, January 24, 2008 11:45 PM
>>> > To: user@(protected)
>>> > Subject: Type converters: please help!!! :(
>>> >
>>> >
>>> > hi,
>>> >
>>> > i badly need the solution to this problem. i had posted this issue on
>>> > xwork
>>> > forums, struts fourms previously also, but hardluck: no reply :(
>>> >
>>> > i am reposting the same again... atleast let me know if this idea
>>> itself
>>> > is
>>> > wrong!!! or any better approach/ is there?
>>> >
>>> >
>>> > ravi_eze wrote:
>>> >>
>>> >> hi,
>>> >>
>>> >> We have Action class with Employee Object with setters and getters.
>>> The
>>> >> Typeconverter was configured to be called when <EmployeeObject.empId>
>> is
>>> >> called by the jsp page. We found that convertFromString of type
>> converter
>>> >> is being called but convertToString is never called. Any idea why
>>> this
>> is
>>> >> happening? The details are as follows:
>>> >>
>>> >> Type converter:
>>> >> public class LongConverter extends StrutsTypeConverter {
>>> >> public Object convertFromString(Map context, String[] values, Class
>>> >> toClass) {
>>> >> ... ....
>>> >> }
>>> >> public String convertToString(Map context, Object o) {
>>> >> ... ....
>>> >> }
>>> >> }
>>> >>
>>> >> in actionClass-conversion.properties located along with the class
>>> file
>> in
>>> >> the same package:
>>> >> employee.empId=com.comp.util.converter.LongConverter
>>> >>
>>> >> After some debugging we found that we need to add a new file:
>>> >> Employee-conversion.properties in the same package of Employee class
>> with
>>> >> entries:
>>> >> empId=com.comp.util.converter.LongConverter
>>> >>
>>> >> and only then the convertToString would be called. I think we should
>> have
>>> >> only one conversion.prop file instead of 2. Any ideas why this is
>>> >> happening this way? or am i missing any thing? please help.
>>> >>
>>> >> cheers,
>>> >> ravi
>>> >>
>>> >
>>> > --
>>> > View this message in context:
>>> >
>> http://www.nabble.com/Type-converters%3A-convertToString-not-called-tp150349
>>> > 25p15080943.html
>>> > Sent from the Struts - User mailing list archive at Nabble.com.
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> > For additional commands, e-mail: user-help@(protected)
>>> >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> > For additional commands, e-mail: user-help@(protected)
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>> http://www.nabble.com/Type-converters%3A-convertToString-not-called-tp150349
>> 25p15081469.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181899.ezm (zipped)Dale,
this is useful information for me. Thanks for pointing this out.
I'll make use of this class, I think.
Joachim
> P.P.S: If your question is really "how do i evaluate tag arguments
> that are really ognl expressions, then TagUtils.getStack() is probably
> what you're looking for:
> http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/TagUtils.html
>

Attachment:
user_181901.ezm (zipped)There is no target attribute in de a-tag:
http://struts.apache.org/2.x/docs/a.html
I am a newbie, and want to open de link in another (specified) browser
window..
How to overcome this?
Niels

Attachment:
user_181905.ezm (zipped)
Hi niels,
you can generate a html anchor, using the s:url tag to generate the href
url,
"<s:url ... " target="...">some text
hope this helps.
niels-15 wrote:
>
> There is no target attribute in de a-tag:
> http://struts.apache.org/2.x/docs/a.html
>
> I am a newbie, and want to open de link in another (specified) browser
> window..
>
> How to overcome this?
>
> Niels
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181906.ezm (zipped)Thanks David,
but according to the TLD target is not a valid attribute for tag url
Niels
On Jan 29, 2008, at 12:44 PM, David Tercero wrote:
>
> Hi niels,
>
> you can generate a html anchor, using the s:url tag to generate
> the href
> url,
>
> "<s:url ... " target="...">some text
>
> hope this helps.
>
>
>
>
> niels-15 wrote:
>>
>> There is no target attribute in de a-tag:
>> http://struts.apache.org/2.x/docs/a.html
>>
>> I am a newbie, and want to open de link in another (specified)
>> browser
>> window..
>>
>> How to overcome this?
>>
>> Niels
>>
>
> --
> View this message in context: http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_181907.ezm (zipped)
target belong to the anchor, not to the s:url tag.
niels-15 wrote:
>
> Thanks David,
>
> but according to the TLD target is not a valid attribute for tag url
>
> Niels
>
>
> On Jan 29, 2008, at 12:44 PM, David Tercero wrote:
>
>>
>> Hi niels,
>>
>> you can generate a html anchor, using the s:url tag to generate
>> the href
>> url,
>>
>> "<s:url ... " target="...">some text
>>
>> hope this helps.
>>
>>
>>
>>
>> niels-15 wrote:
>>>
>>> There is no target attribute in de a-tag:
>>> http://struts.apache.org/2.x/docs/a.html
>>>
>>> I am a newbie, and want to open de link in another (specified)
>>> browser
>>> window..
>>>
>>> How to overcome this?
>>>
>>> Niels
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181908.ezm (zipped)
target belongs to the anchor, not to the s:url tag.
niels-15 wrote:
>
> Thanks David,
>
> but according to the TLD target is not a valid attribute for tag url
>
> Niels
>
>
> On Jan 29, 2008, at 12:44 PM, David Tercero wrote:
>
>>
>> Hi niels,
>>
>> you can generate a html anchor, using the s:url tag to generate
>> the href
>> url,
>>
>> "<s:url ... " target="...">some text
>>
>> hope this helps.
>>
>>
>>
>>
>> niels-15 wrote:
>>>
>>> There is no target attribute in de a-tag:
>>> http://struts.apache.org/2.x/docs/a.html
>>>
>>> I am a newbie, and want to open de link in another (specified)
>>> browser
>>> window..
>>>
>>> How to overcome this?
>>>
>>> Niels
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181909.ezm (zipped)David,
I don't understand what you mean by "anchor"
imagine the next situation.
<s:url id="url" action="getCRUD">
<s:param name="id" value="%{user.id}" />
</s:url>
<s:a href="%{url}">edit</s:a>
Niels
On Jan 29, 2008, at 1:33 PM, David Tercero wrote:
>
> target belongs to the anchor, not to the s:url tag.
>
>
>
>
> niels-15 wrote:
>>
>> Thanks David,
>>
>> but according to the TLD target is not a valid attribute for tag url
>>
>> Niels
>>
>>
>> On Jan 29, 2008, at 12:44 PM, David Tercero wrote:
>>
>>>
>>> Hi niels,
>>>
>>> you can generate a html anchor, using the s:url tag to generate
>>> the href
>>> url,
>>>
>>> "<s:url ... " target="...">some text
>>>
>>> hope this helps.
>>>
>>>
>>>
>>>
>>> niels-15 wrote:
>>>>
>>>> There is no target attribute in de a-tag:
>>>> http://struts.apache.org/2.x/docs/a.html
>>>>
>>>> I am a newbie, and want to open de link in another (specified)
>>>> browser
>>>> window..
>>>>
>>>> How to overcome this?
>>>>
>>>> Niels
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15157668.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Where-did-the-target-attribute-go-in-the-a-tag--tp15156349p15158312.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_181902.ezm (zipped)Hi.
I have a form that posts to a ModelDriven Action.
In that form I'm trying to use raw dojo 1.0 DateTextBox, but I have
trouble with the formatting of the date.. According to the
dojo docs, when communicating to/from the server, it uses
ISO-8601.
As
java.util.Date doesn't know how to parse ISO-8601
dates, I suppose I'll use a method on the action to parse,
but I'm interested to know how others have solved this
issue. Maybe with an interceptor?
as for formatting the date to initialize the dojo input, here
is the code I put in my jsp:
<input type="text" name="startDate" dojoType="dijit.form.DateTextBox"
required="true" value="<s:date name="startDate" format="yyyy-MM-dd" />"
size="40"/></td>
Best regards.
--
Robi

Attachment:
user_181903.ezm (zipped)
Hi Friends,
I am using Struts 2 application for my project. Before I was used Struts 1
when compare to this
Struts 2 is reduced lot of configuration problems. I have use the Annotation
validation to validate the
Username and password fields in my Login page.
Code:
@RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="username",message="UserName
is required")
public String getUsername() {
return username;
}
Same as For password also ,
When i have submit the Login button, the Error messages is displaying
Repeated. I have spend lot of time
on this issue. Can u anybody give me the solution.
Thanks and Regards,
Johnson
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_181904.ezm (zipped)
Hi all,
I'm having troubles setting the id property in a textfield tag. I use
the version 2.0.11
The case is I'm not able to introduce a variable value into the id
property, I mean:
<s:textfield>
<s:param name="id">stockTotal_${house.id}</s:param>
<s:param name="name">stockList[${house.id}].number</s:param>
<s:param name="value">${house.number}</s:param>
</s:textfield>
I generate several textfields like this one and I need to reference it in
javascript (that's because i need to set the id property). Using the param
tag doesn't work for the id, but goes right for the name and value
propertys.
I tried several ways but none of them seems to work.
Any help would be appreciated.
--
Sent from the Struts - User mailing list archive at Nabble.com.