RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Jordi Rubio Moreno
Hi Charbel,

If you are using , try to use instead of this the simple
HTML tag , and tell me if this works (I don't know why this
happens, but I found this solution).

Cheers

Jordi Rubio Moreno
 


-Mensaje original-
De: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Enviado el: viernes, 25 de mayo de 2007 6:32
Para: Struts Users Mailing List
Asunto: Weird behavior - Struts 2 - Firefox vs. IE

I had posted a question yesterday regarding the slowness of the
rendering of some of my struts pages...

 

Well, after trying many different options including turning off devMode
and automatic reloading of property files, I decided to try the page in
a different browser.

 

IE seems to do a better job of rendering the page all at once...whereas
Firefox, the page seems as if it's being streamed from top to
bottom...the top will appear, and slowly the rest of the page line by
line will appear...

 

Any ideas???

 

Charbel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Al Sutton
Just a thought, have you checked the final output is valid HTML and there
aren't any mismatched tags?

Firefox has a pretty good plug-in which helps with this at
https://addons.mozilla.org/en-US/firefox/addon/60 

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 25 May 2007 05:32
To: Struts Users Mailing List
Subject: Weird behavior - Struts 2 - Firefox vs. IE

I had posted a question yesterday regarding the slowness of the rendering of
some of my struts pages...

 

Well, after trying many different options including turning off devMode and
automatic reloading of property files, I decided to try the page in a
different browser.

 

IE seems to do a better job of rendering the page all at once...whereas
Firefox, the page seems as if it's being streamed from top to bottom...the
top will appear, and slowly the rest of the page line by line will appear...

 

Any ideas???

 

Charbel



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Optiontransferselect button customization.

2007-05-24 Thread Jeromy Evans

Vijay,

For the last time, the doubleId attribute of optiontransferselect works 
in struts 2.0.6.  I provided you with code from a live system that uses 
it to set the style of the second select as an ALTERNATIVE to 
doubleCssClass and doubleCssStyle.
The doubleCssClass and doubleCssStyle attributes do NOT work with struts 
2.0.6 as mentioned in the previous emails.  That issue was kindly fixed 
by Musachy in 2.0.8 as stated in WW-1752.


If you don't understand what an html id is and how to use CSS with that, 
please read about the "id selector" at 
http://www.w3schools.com/css/css_syntax.asp
If you don't understand what WW-1752 means, this is a reference to the 
issue number reported on JIRA at 
https://issues.apache.org/struts/browse/WW-1752


Good luck,
Jeromy Evans

Vijay Prajapati wrote:

Jeromy,
   This can not worked according to your suggestion. There are bug in
Struts 2.0.6.
This bug is solved in Struts 2.0.8 and still this version in development
mode. So whenever it will relese then It would be solved.

Just try it and if u have other solution then tell me.

Vijay
On 5/24/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Vijay, I'm guessing you've already moved on from this, but the example
below is how you can use the doubleId attribute of
 to assign an html ID to the second select and
assign styles to that select using CSS.  The code you have quoted is an
extract from the stylesheet.  To reiterate, this is how to do it WITHOUT
doubleCssClass and doubleCssStyle (WW-1752).

Vijay Prajapati wrote:
> Jeromy,
>  Please try to use doubleCssClass and doubleCssStyle attribute in
>  in your production JSP. It won't work for
second
> list.
> You haven't use both of them attribute and how could you generate 
given

> below code in your JSP.
> #userCompaniesAssigned {
>   width: 300px;
>}
>
>#userCompaniesNotAssigned {
>  width: 300px;
>   }
>
>
>
>
>
> On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> Hmm... I use 2.0.6.
>>
>> The wiki at 
http://struts.apache.org/2.x/docs/optiontransferselect.html

>> lists doubleId as an attribute, it's definitely included in the
>> OptionTransferSelect class and OptionTransferSelectTag class (in
>> AbstractDoubleListTag) and it's definitely referenced in the
>> optiontransferselect.ftl template for the simple theme and above.
>>
>> I've encountered bug with optiontransferselect in 2.0.6 but it 
doesn't

>> affect this particular issue.
>>
>> In your email you typed 'doubled' instead of 'doubleId'.  I can't 
think

>> of what else it could be.
>>
>> Here is some production JSP that works:
>>
>> >  leftTitle="Grant Access to"
>>  rightTitle="Deny Access to"
>>  name="companiesAssigned"
>>  list="companiesAssignedList"
>>  listKey="key" listValue="description"
>>  id="userCompaniesAssigned"
>>  doubleName="companiesNotAssigned"
>>  doubleList="companiesNotAssignedList"
>>  doubleListKey="key" doubleListValue="description"
>>  doubleId="userCompaniesNotAssigned"
>>  allowAddAllToLeft="true"
>>  allowAddAllToRight="true"
>>  allowSelectAll="false"
>>  allowUpDownOnLeft="false"
>>  allowUpDownOnRight="false"/>
>>
>> and the CSS that sets the style of the two generated selects:
>> #userCompaniesAssigned {
>>width: 300px;
>> }
>>
>> #userCompaniesNotAssigned {
>>width: 300px;
>> }
>>
>> and an extract of the generated HTML:
>> 
>> 
>> 
>>Grant Access to
>> > multiple="multiple">
>>My Company Pty
>> Ltd
>>
>>
>> 
>>
>> 
>> 
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesAssigned'),
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
('userCompaniesAssigned'),
>>
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>> 
>> 
>>Deny Access to
>> > id="userCompaniesNotAssigned">
>> 
>> 
>> 
>> 
>>
>>
>>
>> Vijay Prajapati wrote:
>> > Jeromy,
>> >In which version it includes doubled attribute for second 
select.

I
>> am
>> > using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it
>> shows
>> > Bug in Optiontransferselect in version 2.0.6.
>> >  please send me code for it.
>> >
>> >
>> > Vijay
>> >
>> >
>> > On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>> >>
>> >> optiontransferselect includes the doubleId attribute for the 
second

>> >> select.  Your CSS can reference that ID.
>> >>
>> >> To change the order of the buttons you'll need to create your own
>> >> optiontransferselect.ftl template based on the existing one.
>> >>

Re: [s2] Can't get to work

2007-05-24 Thread APenrose


Do you not need   or am I missing the point... ;-)


mraible wrote:
> 
> I'm trying to get  to work in AppFuse. I'm using Struts
> 2.0.6. When I add the code below to a JSP, I get a 404 (via Firebug) for
> the following files:
> 
> http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
> http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js
> http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js
> 
> Here's the code for my JSP:
> 
> <%@ include file="/common/taglibs.jsp"%>
> 
> 
> 
>  My page
> 
> 
> 
>   
>Div 1
>
>   
>   
> 
>   
>
> 
> 
> 
> Any ideas?
> 
> Thanks,
> 
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/-s2--Can%27t-get-%3Cs%3Adatepicker%3E-to-work-tf3814068.html#a10797787
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Optiontransferselect button customization.

2007-05-24 Thread Vijay Prajapati

Jeromy,
   This can not worked according to your suggestion. There are bug in
Struts 2.0.6.
This bug is solved in Struts 2.0.8 and still this version in development
mode. So whenever it will relese then It would be solved.

Just try it and if u have other solution then tell me.

Vijay
On 5/24/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Vijay, I'm guessing you've already moved on from this, but the example
below is how you can use the doubleId attribute of
 to assign an html ID to the second select and
assign styles to that select using CSS.  The code you have quoted is an
extract from the stylesheet.  To reiterate, this is how to do it WITHOUT
doubleCssClass and doubleCssStyle (WW-1752).

Vijay Prajapati wrote:
> Jeromy,
>  Please try to use doubleCssClass and doubleCssStyle attribute in
>  in your production JSP. It won't work for
second
> list.
> You haven't use both of them attribute and how could you generate given
> below code in your JSP.
> #userCompaniesAssigned {
>   width: 300px;
>}
>
>#userCompaniesNotAssigned {
>  width: 300px;
>   }
>
>
>
>
>
> On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> Hmm... I use 2.0.6.
>>
>> The wiki at http://struts.apache.org/2.x/docs/optiontransferselect.html
>> lists doubleId as an attribute, it's definitely included in the
>> OptionTransferSelect class and OptionTransferSelectTag class (in
>> AbstractDoubleListTag) and it's definitely referenced in the
>> optiontransferselect.ftl template for the simple theme and above.
>>
>> I've encountered bug with optiontransferselect in 2.0.6 but it doesn't
>> affect this particular issue.
>>
>> In your email you typed 'doubled' instead of 'doubleId'.  I can't think
>> of what else it could be.
>>
>> Here is some production JSP that works:
>>
>> >  leftTitle="Grant Access to"
>>  rightTitle="Deny Access to"
>>  name="companiesAssigned"
>>  list="companiesAssignedList"
>>  listKey="key" listValue="description"
>>  id="userCompaniesAssigned"
>>  doubleName="companiesNotAssigned"
>>  doubleList="companiesNotAssignedList"
>>  doubleListKey="key" doubleListValue="description"
>>  doubleId="userCompaniesNotAssigned"
>>  allowAddAllToLeft="true"
>>  allowAddAllToRight="true"
>>  allowSelectAll="false"
>>  allowUpDownOnLeft="false"
>>  allowUpDownOnRight="false"/>
>>
>> and the CSS that sets the style of the two generated selects:
>> #userCompaniesAssigned {
>>width: 300px;
>> }
>>
>> #userCompaniesNotAssigned {
>>width: 300px;
>> }
>>
>> and an extract of the generated HTML:
>> 
>> 
>> 
>>Grant Access to
>> > multiple="multiple">
>>My Company Pty
>> Ltd
>>
>>
>> 
>>
>> 
>> 
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesAssigned'),
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
('userCompaniesAssigned'),
>>
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>> 
>> 
>>Deny Access to
>> > id="userCompaniesNotAssigned">
>> 
>> 
>> 
>> 
>>
>>
>>
>> Vijay Prajapati wrote:
>> > Jeromy,
>> >In which version it includes doubled attribute for second select.
I
>> am
>> > using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it
>> shows
>> > Bug in Optiontransferselect in version 2.0.6.
>> >  please send me code for it.
>> >
>> >
>> > Vijay
>> >
>> >
>> > On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>> >>
>> >> optiontransferselect includes the doubleId attribute for the second
>> >> select.  Your CSS can reference that ID.
>> >>
>> >> To change the order of the buttons you'll need to create your own
>> >> optiontransferselect.ftl template based on the existing one.
>> >>
>> >> Vijay Prajapati wrote:
>> >> > Hi,
>> >> >This is Vijay and currently using Struts2.0.6 production
>> viersion
>> >> > in my
>> >> > application development.
>> >> > I have been used almost all tags in Struts2.0.6 but there are
>> problem
>> >> > in > >> > optiontransferselect> tag. It doesn't include cssClass and
cssStyle
>> of
>> >> > Second Select box at run time.
>> >> > So Is there any solution for it?
>> >> > If any one has solved this problem in new version then please
>> let me
>> >> > know.
>> >> > Even I want to change order of left move and right move button
>> so can
>> >> > i do
>> >> > it?
>> >> >
>> >> > I am here giving code for this tag.
>> >> >
>> >> > > >> multiple="true"
>> >> > leftTitle="%{getText('addgroupmanager.apceform.allSystems')}"
>> >> > doubleName="groupSystems"
>> >

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave
  I have done it.
  Thank you.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> You can solve this problem without .

Oh, thanks; I thought I had to solve this with
 I sure am sorry it's taken me so long;
I'm a little slow sometimes.

> If you have any simple solution then let me know
ASAP

*sigh*

Is this for your job?

d.




Pinpoint
customers who are looking for what you sell.
http://searchmarketing.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [S2] needs refresh to work properly

2007-05-24 Thread Vijay Prajapati

Laurie,
I have done it. Thank you very much. I would like to appreciate your
efforts done for me.
I would like to work with you to solve problems. If possible then we would
meet u through net.

Vijay

On 5/25/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Perhaps something like the following, making use of the status info [1]
exposed by s:iterator:

  
  


  

  
  

L.

[1]

http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html

Vijay Prajapati wrote:
> Dave,
>
> Can you please send sample code to print matrix of 10 element from one
> list through iterator tag in Struts 2.0.6?
> I am here giving sample output..
>
>1   2   3  --- in 1st row of HTML table
>4   5   6  --- in 2nd row of same HTML table
>7   8   9  --- in 3rd row of same HTML table
>10  --- in 4th row of same HTML table
>
>
> Thank you,
> Vijay
>
> On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> > Is there Nested Iterator tag in Struts 2.0.6?
>>
>> I don't believe that one is necessary; you should be
>> able to arbitrarily nest  tags (I have
>> several cases where I do that with no issues).
>>
>> One thing to note is that if you need to access an
>> outer-iterator value you'd need to declare an id
>> attribute in the outer iterator and refer to it using
>> the "#" OGNL syntax within the inner iterator.
>>
>> Er... that made sense in my head :/
>>
>> d.
>>
>>
>>
>>
>>
Get
>>
>> the free Yahoo! toolbar and rest assured with the added security of
>> spyware
>> protection.
>> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Language in URL

2007-05-24 Thread Gert Vanthienen

L.S.,

Is it possible to use the language as a part of the URL, without having 
to create a page per language (e.g. have nl/shop.jsp refer to shop.jsp, 
automatically adding a request_locale parameter or something)? 
How is it done in Struts 2?


Regards,

Gert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem sending array values to struts2 action

2007-05-24 Thread dhilip mandava

Thanks for your reply. Here Under Iam furnishing the Stack trace of the
Exception.

(interceptor.ParametersInterceptor 198 ) ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'bitRate[]' with value '[Ljava.lang.String;@156b7c1'
(interceptor.ParametersInterceptor 198 ) ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'endTime[]' with value '[Ljava.lang.String;@3a1e23'
(interceptor.ParametersInterceptor 198 ) ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'format[]' with value '[Ljava.lang.String;@190a284'
(interceptor.ParametersInterceptor 198 ) ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'startTime[]' with value '[Ljava.lang.String;@9d963f'
(interceptor.ParametersInterceptor 198 ) ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'stationAddressUrl[]' with value '[Ljava.lang.String;@1f31d15'
SEVERE: Servlet.service() for servlet default threw exception
java.lang.NullPointerException
at com.radioscape.struts.admin.action.AddStationDetails.execute(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:399)
at
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:262)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:213)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.intercept(ParametersInterceptor.java:161)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.Defaul

Variable Form Elements, Dynamically Generated Forms

2007-05-24 Thread Henry F. Camacho Jr.
I am trying to work out the best way use dynamically generated forms in 
Struts.  The application I am developing is going to allow the user to 
select from a database a list of fields that should be active on a 
form.  This list will be modified within the database, and so I am 
thinking that DynaForms are out since they are in general configured in 
the struts-config, and further more, one user of the system might pick 
different fields to be active than another user.


And then there is the idea of the Java Bean that populates the form.  
From what I can tell that needs to be a concrete bean, that is defined 
when the application is compiled.


HFC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: CRUD Application - How can I receive url attributes

2007-05-24 Thread Henry F. Camacho Jr.
That was extremely helpful...looks like that page has gotten me over the 
hump


Thank you...
HFC

Givler, Eric wrote:

I'd recommend going to the Learntechnology site, and reading this:
http://www.learntechnology.net/content/struts/struts_crud.jsp

	-Original Message- 
	From: Henry F. Camacho Jr. [mailto:[EMAIL PROTECTED] 
	Sent: Thu 5/24/2007 9:10 PM 
	To: user@struts.apache.org 
	Cc: 
	Subject: CRUD Application - How can I receive url attributes




I've been banging my head on this one reading everything I can.  I new
to struts, and I apologize if this is somehow redundant to this list.

I've got a CRUD application I place various records from a database into
a table with an edit button.  This edit button has the following format:

http://localhost:8080/Inventory/AdminUserEdit.do?id=1

What I am trying to do is to preload a form with the data associated to
id=1 in my database.  Since I can not figure out how to access the id=1
from the form bean context I can not pre-populate the form for display.

	Here is my struts-config.  The action in question is /AdminUsersEdit. 
	If I hard code the formbean, it displays data in the form.  Of course I

would like to get access to that ID value to grab the data from the
database.
















	  
	
type="com.unpluggedcities.inventory.LogonAction"
name="logonForm"
scope="request"
validate="true"
roles="any"
input="/Logon.do">
	 
		path="/Welcome.do"/>  
	  
	
	  
	
type="com.unpluggedcities.inventory.AdminUserEditAction"
name="adminUserEditForm"
scope="request"
validate="true"
roles="admin"
input="/AdminUserEdit.do">
	 
		path="/AdminUsers.do"/>  
		path="/AdminUserEdit.do"/>  
	
	  
	


Thanks so much for any help

HFC




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Henry F. Camacho Jr.
Unplugged Cities, LLC
800 Washington Ave No
Suite 501
Minneapolis, MN 55401
Fridley, MN  55432

763-235-3005 (Office)
763-257-6898 (Cell)
tknightowl (Skype)
[EMAIL PROTECTED] (email)
www.unpluggedcities.com (www)
KC0KUS (Amateur Radio)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Weird behavior - Struts 2 - Firefox vs. IE

2007-05-24 Thread Charbel Abdul-Massih
I had posted a question yesterday regarding the slowness of the
rendering of some of my struts pages...

 

Well, after trying many different options including turning off devMode
and automatic reloading of property files, I decided to try the page in
a different browser.

 

IE seems to do a better job of rendering the page all at once...whereas
Firefox, the page seems as if it's being streamed from top to
bottom...the top will appear, and slowly the rest of the page line by
line will appear...

 

Any ideas???

 

Charbel



Form Update issue - Could not find action / No result defined for

2007-05-24 Thread tom tom
Hi,

I got a form with following syntax



 
  



When I press the submit it gives the following
exception, all the actions defined in the struts.xml
file

 javax.portlet.PortletException: Could not find action
testAction  at
   
org.jasig.portal.channels.portlet.CPortletAdapter.setRuntimeData(CPortletAdapter.java:490)
at
 also 

there is another exception as follows


org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:150)
Caused by: No result defined for action
au.edu.vu.portlets.test.action.TestAction 


Is there any configuration that I need to make



Thanks



  
Fussy?
 Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay 
it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2] Can't get to work

2007-05-24 Thread mraible

I'm trying to get  to work in AppFuse. I'm using Struts 2.0.6.
When I add the code below to a JSP, I get a 404 (via Firebug) for the
following files:

http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us/gregorian.js
http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en/gregorianExtras.js
http://localhost:8080/struts/dojo/src/i18n/calendar/nls/en-us/gregorianExtras.js

Here's the code for my JSP:

<%@ include file="/common/taglibs.jsp"%>



 My page



  
   Div 1
   
  
  

  
   



Any ideas?

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/-s2--Can%27t-get-%3Cs%3Adatepicker%3E-to-work-tf3814068.html#a10796668
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Sourabh Chandan
Hi ,

What i got in your code is that you are closing 
Remove / from first line.
You line should be


Whatever your condition is applied.

 (Closed Here Also).

Sourabh



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 3:08 AM
To: user@struts.apache.org
Subject: RE: Struts 1.x and Tomcat 5 problem



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.

www.wipro.com


+
CONFIDENTIALITY NOTICE & DISCLAIMER

The contents of this e-mail are confidential to the ordinary user of the e-mail 
address to which it was addressed and may also be privileged.  If you are not 
the addressee of this e-mail you may not copy, forward, disclose or otherwise 
use it or any part of it in any form whatsoever.  If you have received this 
e-mail in error please e-mail the sender by replying to this message. The 
recipient should check this email and any attachments for the presence of 
viruses. InterGlobe accepts no liability for any damage caused by any virus 
transmitted by this email.
+

Re: MVC1 -Frame Based JSP Application to Tiles

2007-05-24 Thread Craig McClanahan

On 5/24/07, Raghuveer <[EMAIL PROTECTED]> wrote:


I  Have a JSP web application using MVC1 framework.
It uses Farmes(one left for navigational links and other right with tabs
on top.)

>From tiles documentation i understand i can use tiles with out struts ?

So i was thinking the possibility and feasibilty of using tiles for my
current application.

Any Comments?



The most recent version of Tiles 2 can indeed be used without Struts
or any other framework (although both Shale and Struts 2 offer
integrations with this code as part of their own frameworks) -- and it
has also graduated into its own top level Apache project.  Go to
 for more information, including links to separate
mailing lists focused specifically on Tiles.

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practice - Wizard flow

2007-05-24 Thread Jeromy Evans
In S2 your JSP is accessing the value stack.  Lets say you only need one 
bean for all the information your wizard collects (I'll use person as an 
example)

eg. 
It's your action's responsibility to ensure the same person instance is 
being updated if you're accessing different properties of person across 
multiple requests.
The simplest way to do this implement SessionAwareAction and put person 
in the session map provided.  Implement Preparable to get it from the 
session before the setter(s) are called.


With this approach you can use a single action and it'll be very short 
and simple. I'd include a different method for next, back, cancel and 
complete.


If you don't want to use the session, and don't want to persist it, you 
can't really avoid passing all properties of person with each request.  
Either use the hidden fields individually or encode/serialize it into a 
cookie or single hidden parameter. 

Personally, as your wizard is only 3 pages and it sounds like no 
workflow is involved, I think the javascript suggestion to show/hide a 
few divs was a good one.


Charbel Abdul-Massih wrote:

In the struts 1 world, we used to have one form in the session...With
each subsequent page in the flow, part of the form is
populated...Whenever any page in the flow is requested, the state is
kept and the form variables are retrieved or updated accordingly...

Is there a similar way to do this in Struts 2???

 
-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:36 AM

To: 'Struts Users Mailing List'
Subject: RE: Best practice - Wizard flow

As I see it the problem with that approach is if I'm at stage 3, I got
back
two screens to stage 1, change something, when I click next I've lost
all
the previously entered data in step 2.

-Original Message-
From: Marco Carnevale [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:34

To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.
This
way you are hitting the sever between requests and not using the
session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
  

--- Charbel Abdul-Massih wrote:

I would have thought that something as simple as a wizard would be 
easily doable...I would like to keep
  
away from the session as much as possible...
  
The thing with "wizards" (at least as I've used and implemented them) 
is that previous steps in the wizard flow should be easily accessible,



  
and the easiest way to do that is via the session... otherwise you 
have to make intermediate saves (which is also a fine

solution) and reloads when you go back (or forward) in the process.

Just a thought.

d.





__
__
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem sending array values to struts2 action

2007-05-24 Thread Don Brown

Where exactly did you get the NPE?  Could you provide a stacktrace?

Don

On 5/25/07, dhilip mandava <[EMAIL PROTECTED]> wrote:


i have input fileds like url[], bitrate[]like 5 fields.

i used array syantax [] because , dynamically i am adding those fields using
javascript with same name.
 i want to get all those values in some array in action class


so,i wrote setter, getter for all those fileds as array type of string.

like

String[] url=null;

 public string[] setUrl(string[] url){
this.url= url

}


but iam getting null pointer exception

even though i gave url[0],bitrate[0],
 url[1],bitrate[1]..
url[2],bitrate[2]


i gotnull pointer exception



plz give me solution, if any problem...understanding excuse me
--
View this message in context: 
http://www.nabble.com/problem-sending-array-values-to-struts2-action-tf3810516.html#a10785204
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Blank war with IDEA 6

2007-05-24 Thread Don Brown

I'd recommend starting with an archetype [1].  Then, you can use Maven
2 to build your IDEA configuration automatically via "mvn idea:idea".

Don

[1] http://struts.apache.org/2.x/docs/struts-maven-archetypes.html

On 5/24/07, Victor Neo <[EMAIL PROTECTED]> wrote:


Does anyone here knows how to use Struts 2's blank war with IDEA 6?

I have been trying out IDEA and would like to do some Struts 2 projects with
it.
--
View this message in context: 
http://www.nabble.com/-S2--Blank-war-with-IDEA-6-tf3808301.html#a10778260
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Results Based on URL File Types

2007-05-24 Thread Don Brown

Yes, you can tell Struts to not use any action extension at all. I'm
doing that right now for a Restful application I developed.  I haven't
tried, but you might be able to use wildcards to match the extension
in the action mapping and perhaps use a custom dispatcher result to
determine which actual result should be executed:


 
   {0}
 


I'd love to see this type of feature either built into Struts or as a
plugin, so if you discover a solution that involves Struts
improvements, please file a JIRA ticket.

Thanks,

Don

On 5/25/07, Kevin Conroy <[EMAIL PROTECTED]> wrote:

Hi Roger (and Al),
Thanks for your replies.

I had thought about doing something like what you specified Roger, by
passing the return type as a parameter. However, in keeping with what seems
to be fairly standard RESTful web service protocol, I was hoping to have the
return type specified after the query name. Then from the users perspective
the URL file type that the request matches the return type, rather than it
just being some random query.

It's true that I could also build the return type into the URL path, but
that would give me several different actions for each query, and I'd like to
have one Action object that knows how to get all of the POJOs that are
associated with the query and then use the results to mux out how to
serialize the POJOs into the correct format (e.g. REST xml, json, rss, etc.)

So is there any way to tell Struts to ignore the extension (*.do or
*.action) and just assume that all requests into the application (or
namespace) are in fact actions it should execute? I'm suspecting not, as
this might block access to other non-action resources, but if there is some
way to set up a * pattern, that might work too.

Thanks for all of your help.

--
Kevin Conroy
E-mail: [EMAIL PROTECTED]

On 5/24/07, Roger Varley <[EMAIL PROTECTED]> wrote:
>
> I'm still a newbie as well so take this with a pinch of salt. I would
> try doing it this way;
>
> http://www.domain.com/struts2/queryName?param1=foo,param2=xml
> http://www.domain.com/struts2/queryName?param1=foo,param2=json
> http://www.domain.com/struts2/queryName?param1=foo,param2=html
> http://www.domain.com/struts2/queryName?param1=foo,param2=rss
>
> Include getter and setter for param2 in your action and set your
> result strings as appropriate to get the results you want so, for
> example after executing your query, you could include in your action
> method;
>
> return getParam2()
> which would return xml,json,html or rss and then in your struts.xml
> you'd specify
>
> YourResultTypeForXML
> YourResultTypeForJSON
>
> etc etc
>
> Does this help.
>
> Regards
> Roger
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 JasperReport plugin - Parameters

2007-05-24 Thread Don Brown

Would you mind submitting this as a JIRA ticket, so we can get the
improvement into the JasperReports plugin for other users?

Don

On 5/25/07, cristales <[EMAIL PROTECTED]> wrote:


I solve my question, by this way;

* add a property customParameters to JasperReportsResult with the respective
seter:
public void setCustomParameters(String customParameters) {
this.customParameters = customParameters;
}

* load the customParameters before to generate the report, just after to
initialize the
   parameters property by the plugin:
//getting the map of parameters
Map mapParameters = (Map) stack.findValue(customParameters);
if (mapParameters != null) {
parameters.putAll(mapParameters);
}

* in the struts2 action, I add a Map property and setting values to
customize the report title
jasperParams = new HashMap();
jasperParams.put("titulo02", "Listado General de Usuarios");
jasperParams.put("titulo03", "Filtrados por Departamento y Role");

* mapping the action in the struts.xml


  /reportes/usuarios.jasper
  usuarios
  jasperParams
  PDF





cristales wrote:
>
> I think than adding a map property to the JasperReportsResult
> may help, but I don't know how to access this map object inside the
> JasperReportsResult on run time.
>
> Cristales
>
>
> cristales wrote:
>>
>>
>> How I can include parameters to the report in adition to the datasource,
>> to populate fields in the report header, using the plugin 2.0.6 GA.
>>
>
>

--
View this message in context: 
http://www.nabble.com/Struts2-JasperReport-plugin---Parameters-tf3806761.html#a10786510
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] "Starting with Struts2" Book

2007-05-24 Thread Don Brown

Congrats Ian!

Don

On 5/25/07, Ian Roughley <[EMAIL PROTECTED]> wrote:

I am pleased to announce the release of the mini-book "Starting with
Struts2" from InfoQ.com.

"Starting with Struts2" is aimed at those who are new to Strut2, and
those familiar with MVC frameworks but unfamiliar with Struts2.  It
provides everything you need to know to get up and running using
Struts2, and can be used as a starting point to explore the more
intricate features of the Struts2 framework.   Topics include
architecture and configuration, how to implementing actions, and
supporting infrastructure such as validation and internationalization.
Also included are productivity tips, providing a practical introduction
on how best to use the framework.

The eBook can be found at http://www.infoq.com/minibooks/starting-struts2

/Ian



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Don Brown

I would create an object containing the row data, if you haven't
already, then expose a list of that object on the action.  Struts 2
can use any POJO, so if your application already stores the
information in an Object, use that.

Don

On 5/25/07, Charbel Abdul-Massih <[EMAIL PROTECTED]> wrote:

I have a page with a table of n rows (# of rows is dynamic)...
Each row has 3 columns, with 3 text input fields...

I'm not sure how to represent them in the Action and through the tags...

I know I should use some sort of hashmap with each entry representing
one row...But from the tags perspective, how do I represent it, assuming
I have an iterator tag that is writing out the rows...

Thx,
Charbel



-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 2:11 PM
To: Struts Users Mailing List
Subject: Re: Mapped Properties - Struts 2 - Best practice

--- Charbel Abdul-Massih wrote:
> What's the best way to use Mapped/Indexed Properties
> in Struts 2.x???

In what way? Are you asking from a tag syntax
standpoint, or...?

d.





Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki
ds&cs=bz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: cannot access bean from dialog

2007-05-24 Thread Don Brown

Those objects will only be accessible if the JSP is "front-ended" by
an action.  By this, I mean that the request is for an action, which
executes said Action, then forwards to a JSP.  If you have the browser
access the JSP directly, it won't be available.

Don

On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:


This is working fine in my main JSP:



However, when I call a dialog like this:

window.open('overlay-headends.jsp');

This JSP cannot access the fields in the
userDetailsBean in the main JSP.

Any ideas?  The userDetailsBean is a session
attribute.

Thanks,

Scott



Looking
 for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 Portlet support

2007-05-24 Thread Don Brown

On 5/25/07, mjohnson <[EMAIL PROTECTED]> wrote:


I also posted this in the WebWork forum.

We have succesfully developed a large application that supports milllions of
users with WebWork 2.2.4. It has worked great. This application is comprised
of many independent "panels" that are invoked using the "Page-Controller"
pattern as defined in the Lightbody/Carreira book. Since these panels are
basically HTML fragments, I want to reuse the same code to create portlets
for some of these panels. When invoked from the 168Dispatcher, I do not have
access to the HTTPRequest object in the Action class for each panel. So, how
do I get access to:
1) URL parameters


If you were writing the application the WebWork 2 way, you should have
getters/setters for each parameter you need from the request.  Since
WebWork would call those for you, you wouldn't need to access the
request parameters directly.  Still, if for whatever reason that isn't
enough, use ActionContext.getContext().getParameters()


2) Browser info


For this, you'll need to access the request, be it servlet or portlet,
directly.  I'd probably have a class that abstracts this for me that
would use either ServletActionContext and PortletActionContext,
whichever is applicable to the situation.


3) Session attributes


A couple ways: implement SessionAware and get a map or use
ActionContext.getContext().getSession().


4) Request header info


See 2)


I do not see this in the examples or docs. Thanks.


I agree we should address this more directly in the documentation.
Perhaps if you get your application working, you could contribute? :)

Don



--
View this message in context: 
http://www.nabble.com/Struts2-Portlet-support-tf3813028.html#a10793525
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CRUD Application - How can I receive url attributes

2007-05-24 Thread Givler, Eric
I'd recommend going to the Learntechnology site, and reading this:
http://www.learntechnology.net/content/struts/struts_crud.jsp

-Original Message- 
From: Henry F. Camacho Jr. [mailto:[EMAIL PROTECTED] 
Sent: Thu 5/24/2007 9:10 PM 
To: user@struts.apache.org 
Cc: 
Subject: CRUD Application - How can I receive url attributes



I've been banging my head on this one reading everything I can.  I new
to struts, and I apologize if this is somehow redundant to this list.

I've got a CRUD application I place various records from a database into
a table with an edit button.  This edit button has the following format:

http://localhost:8080/Inventory/AdminUserEdit.do?id=1

What I am trying to do is to preload a form with the data associated to
id=1 in my database.  Since I can not figure out how to access the id=1
from the form bean context I can not pre-populate the form for display.

Here is my struts-config.  The action in question is /AdminUsersEdit. 
If I hard code the formbean, it displays data in the form.  Of course I
would like to get access to that ID value to grab the data from the
database.
















  

 
  
  

  

 
  
  

  


Thanks so much for any help

HFC




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Correct

Struts 1 


Wayne Baskin
GE Commercial Finance
T: +612 8913 2656
E: [EMAIL PROTECTED]

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 May 2007 11:39 AM
To: Struts Users Mailing List
Subject: RE: Struts development with certain IDEs

--- "Baskin, Wayne" wrote:
> Non-rt. Care to explain? 

Hmm, let's back up a step. 

What version of Struts are you using?

You're just talking about using <%= ... %> in a tag attribute, right?

d.



 


Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DISCLAIMER:
This e-mail and any attachment is intended only for the exclusive and 
confidential use of the addressee(s). If you are not the intended recipient, 
any use, interference with, disclosure or copying of this material is 
unauthorised and prohibited. If you have received this message in error, please 
notify the sender by return e-mail immediately and delete the message from your 
computer without making any copies. Please see 
http://www.ge.com.au/help/email_privacy_policy.html for information about our 
privacy practices.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts development with certain IDEs

2007-05-24 Thread Dave Newton
--- "Baskin, Wayne" wrote:
> Non-rt. Care to explain? 

Hmm, let's back up a step. 

What version of Struts are you using?

You're just talking about using <%= ... %> in a tag
attribute, right?

d.



 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CRUD Application - How can I receive url attributes

2007-05-24 Thread Henry F. Camacho Jr.
I've been banging my head on this one reading everything I can.  I new 
to struts, and I apologize if this is somehow redundant to this list.


I've got a CRUD application I place various records from a database into 
a table with an edit button.  This edit button has the following format:


http://localhost:8080/Inventory/AdminUserEdit.do?id=1

What I am trying to do is to preload a form with the data associated to 
id=1 in my database.  Since I can not figure out how to access the id=1 
from the form bean context I can not pre-populate the form for display.


Here is my struts-config.  The action in question is /AdminUsersEdit.  
If I hard code the formbean, it displays data in the form.  Of course I 
would like to get access to that ID value to grab the data from the 
database.



   
   type="com.unpluggedcities.inventory.LogonForm"/>
   type="com.unpluggedcities.inventory.AdminUserEditForm"/>

   
   
   roles="owner,engineer,store"/>
   roles="owner,engineer,store"/>
   roles="owner,engineer,store"/>

   
   roles="admin"/>
   roles="admin"/>

   
   
   
  
   
   type="com.unpluggedcities.inventory.LogonAction"
   name="logonForm"
   scope="request"
   validate="true"
   roles="any"
   input="/Logon.do">
 
   path="/Welcome.do"/>   
  
   
  
   
   type="com.unpluggedcities.inventory.AdminUserEditAction"
   name="adminUserEditForm"
   scope="request"
   validate="true"
   roles="admin"
   input="/AdminUserEdit.do">
 
   path="/AdminUsers.do"/>   
   path="/AdminUserEdit.do"/>   
   
  
   


Thanks so much for any help

HFC




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Non-rt. Care to explain? 


Wayne Baskin
GE Commercial Finance
T: +612 8913 2656
E: [EMAIL PROTECTED]

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 May 2007 10:59 AM
To: Struts Users Mailing List
Subject: Re: Struts development with certain IDEs

--- "Baskin, Wayne <[EMAIL PROTECTED]> wrote:
> I want to know is there any reason why with one IDE (Bea WebLogic) I 
> cannot nest scriptlet tags in a struts tag, but with another Eclipse, 
> I can?

You mean the editor complains?

Could just be a setting for whether or not you want it to allow you to
use scriptlets. Or you might be using the non-rt version of the TLDs and
the BEA IDE is smart enough to care? Not sure about that one.

(Drat, my Weblogic IDE won't start up now, either :/ I always just used
Eclipse/MyEclipse.)

d.



 


Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DISCLAIMER:
This e-mail and any attachment is intended only for the exclusive and 
confidential use of the addressee(s). If you are not the intended recipient, 
any use, interference with, disclosure or copying of this material is 
unauthorised and prohibited. If you have received this message in error, please 
notify the sender by return e-mail immediately and delete the message from your 
computer without making any copies. Please see 
http://www.ge.com.au/help/email_privacy_policy.html for information about our 
privacy practices.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MVC1 -Frame Based JSP Application to Tiles

2007-05-24 Thread Raghuveer

I  Have a JSP web application using MVC1 framework.
It uses Farmes(one left for navigational links and other right with tabs
on top.)

>From tiles documentation i understand i can use tiles with out struts ?

So i was thinking the possibility and feasibilty of using tiles for my
current application.

Any Comments?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts development with certain IDEs

2007-05-24 Thread Dave Newton
--- "Baskin, Wayne <[EMAIL PROTECTED]> wrote:
> I want to know is there any reason why with one IDE
> (Bea WebLogic) I cannot nest scriptlet tags in a 
> struts tag, but with another Eclipse, I can?

You mean the editor complains?

Could just be a setting for whether or not you want it
to allow you to use scriptlets. Or you might be using
the non-rt version of the TLDs and the BEA IDE is
smart enough to care? Not sure about that one.

(Drat, my Weblogic IDE won't start up now, either :/ I
always just used Eclipse/MyEclipse.)

d.



 

Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts development with certain IDEs

2007-05-24 Thread Baskin, Wayne \(GE Comm Fin, non-ge\)
Hi all,

I want to know is there any reason why with one IDE (Bea WebLogic) I
cannot nest scriptlet tags in a struts tag, but with another Eclipse, I
can?

Thanks

Wayne


DISCLAIMER:
This e-mail and any attachment is intended only for the exclusive and 
confidential use of the addressee(s). If you are not the intended recipient, 
any use, interference with, disclosure or copying of this material is 
unauthorised and prohibited. If you have received this message in error, please 
notify the sender by return e-mail immediately and delete the message from your 
computer without making any copies. Please see 
http://www.ge.com.au/help/email_privacy_policy.html for information about our 
privacy practices.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



portletUrlType Constants

2007-05-24 Thread tom tom
Hi,

What are the constants for the portletUrlType
attribute in Struts 2 url tag.

Thanks


   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this a BUG in S2

2007-05-24 Thread tom tom
Hi,

if the action string is being evaluated in the URL tag

what does it output the expression as it is, If we
have the same expression in value attribute it does
evaluate, That is where we are doubtful.

In portal mode the action attribute does convert the
string to portal string where as value does not.

Hence we need to get the expression evaluated in the
action attribute

Thanks
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:

> In the simple case, this:
> 
> and this:
> 
> 
> 
> would be identical.  You can also use the 
> tag to include request 
> parameters. You can create any URL you need using
> the value attribute 
> and params.
> 
> You referenced portal in your email so you might be
> using this in a mode 
> I haven't tried.  Looking at the code for s:url, the
> action string IS 
> being evaluated but there's extra processing (a lot)
> to convert into a 
> URL. The behaviour depends on whether you're in
> portlet mode or not.  If 
> you put a break-point in the end(writer, body)
> method of 
> org.apache.struts2.components.URL.java you'll see
> where it's going wrong 
> for your case.  I don't think this is a bug in S2.
> 
> tom tom wrote:
> > Yes you are right,
> >
> > Even though action attribute doesnt get evaluated
> > value attribute does,
> >
> > but that is of no use as it does not create the
> URL
> > string to suite with Portal env.
> >
> > The biggest concern is why the action attrbute of
> URL
> > tag doesnt evaluate.
> >
> > that is following doesnt work 
> >
> >  
> > 
> >
> >
> > but this does but no point as it doesnt render the
> url
> > as per portal requirement
> >
> > 
> > 
> > 
> >
> > That is why I would like to call this as a bug-not
> > evaluating the action attribute of url tag
> >
> >
> > --- Dave Newton <[EMAIL PROTECTED]> wrote:
> >
> >   
> >> --- tom tom <[EMAIL PROTECTED]> wrote:
> >> 
> >>> for the second one there is no href
> >>> attribute for the URL tag hence doesnt work.
> >>>   
> >> The "value" attribute creates the href if the
> >> "action"
> >> attribute isn't used.
> >>
> >> d.
> >>
> >> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   
Looking
 for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 Portlet support

2007-05-24 Thread mjohnson

I also posted this in the WebWork forum.

We have succesfully developed a large application that supports milllions of
users with WebWork 2.2.4. It has worked great. This application is comprised
of many independent "panels" that are invoked using the "Page-Controller"
pattern as defined in the Lightbody/Carreira book. Since these panels are
basically HTML fragments, I want to reuse the same code to create portlets
for some of these panels. When invoked from the 168Dispatcher, I do not have
access to the HTTPRequest object in the Action class for each panel. So, how
do I get access to:
1) URL parameters
2) Browser info
3) Session attributes
4) Request header info

I do not see this in the examples or docs. Thanks. 
-- 
View this message in context: 
http://www.nabble.com/Struts2-Portlet-support-tf3813028.html#a10793525
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote:
> Doh!  My apologies for the wasted bandwidth ..

Nah. We all do silly stuff, probably a lot :)

d.



   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm



animesh.saxena wrote:
> 
> Two times you are closing the tag, I guess
> 

Doh!  My apologies for the wasted bandwidth ..
Trailing "/"-itis!

Thank you, Dave.
Thank you, Animesh.
-- 
View this message in context: 
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10793391
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Christopher Loschen
The / at the end of the  tag closes that tag, so the
other  closes it for a second time, making it
unbalanced.

Assuming you have some sort of content between the two tags, it should
be


Content...


HTH, Chris

-Original Message-
From: probertm [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 5:31 PM
To: user@struts.apache.org
Subject: Re: Struts 1.x and Tomcat 5 problem




Dave Newton-4 wrote:
> 
> --- probertm <[EMAIL PROTECTED]> wrote:
>> 
>> 
> 
> Looks unbalanced to me...
> 
> 

Sorry for being thick, Dave.  I don't get it.  
Could you spell it out?

-- 
View this message in context:
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10
793090
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread animesh.saxena
--- Begin Message ---
Two times you are closing the tag, I guess

 (Closed Here)
 (Closed Here Also). 

Should be



Ani


-Original Message-
From: probertm [mailto:[EMAIL PROTECTED]
Sent: Fri 5/25/2007 3:01 AM
To: user@struts.apache.org
Subject: Re: Struts 1.x and Tomcat 5 problem
 



Dave Newton-4 wrote:
> 
> --- probertm <[EMAIL PROTECTED]> wrote:
>> 
>> 
> 
> Looks unbalanced to me...
> 
> 

Sorry for being thick, Dave.  I don't get it.  
Could you spell it out?

-- 
View this message in context: 
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10793090
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<>--- End Message ---

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm



Dave Newton-4 wrote:
> 
> --- probertm <[EMAIL PROTECTED]> wrote:
>> 
>> 
> 
> Looks unbalanced to me...
> 
> 

Sorry for being thick, Dave.  I don't get it.  
Could you spell it out?

-- 
View this message in context: 
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10793090
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] needs refresh to work properly

2007-05-24 Thread Dale Newfield

Laurie Harper wrote:
Perhaps something like the following, making use of the status info [1] 
exposed by s:iterator:


  
  


  

  
  


With a tweak that prevents that if from firing if there are a multiple 
of 3 entries in yourList:


test="#s.index % 3 == 0 && !#s.last"

-Dale

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] needs refresh to work properly

2007-05-24 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Perhaps something like the following, making use of
> the status info [1] exposed by s:iterator:

>:|

d.



   
Take
 the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote:
> 
> 

Looks unbalanced to me...

d.



   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] needs refresh to work properly

2007-05-24 Thread Laurie Harper
Perhaps something like the following, making use of the status info [1] 
exposed by s:iterator:


  
  


  

  
  

L.

[1] 
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html


Vijay Prajapati wrote:

Dave,

Can you please send sample code to print matrix of 10 element from one
list through iterator tag in Struts 2.0.6?
I am here giving sample output..

   1   2   3  --- in 1st row of HTML table
   4   5   6  --- in 2nd row of same HTML table
   7   8   9  --- in 3rd row of same HTML table
   10  --- in 4th row of same HTML table


Thank you,
Vijay

On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> Is there Nested Iterator tag in Struts 2.0.6?

I don't believe that one is necessary; you should be
able to arbitrarily nest  tags (I have
several cases where I do that with no issues).

One thing to note is that if you need to access an
outer-iterator value you'd need to declare an id
attribute in the outer iterator and refer to it using
the "#" OGNL syntax within the inner iterator.

Er... that made sense in my head :/

d.




Get 

the free Yahoo! toolbar and rest assured with the added security of 
spyware

protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm

Hi, Dave ..
>
> Can you post the JSP in question, or is it too large?
>
See below ..

>
> Then what makes you think it's a taglib issue?
>
There seem to be a number of similar issues posted on the web about that
have a common characteristic of "unbalanced" and "working under Tomcat 4 and
not Tomcat 5".  Though I could find nothing conclusive.

Here is the .jsp.  It is essentially the early sample from the "Struts:
Complete Reference" book by James Holmes.

--< cut >---

<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>


  
  
ABC Inc. Human Resources Portal -- Employee Search
  



 ABC Inc. Human Resources Portal 



  

:




-- or --


:
 (xxx) 





  



  
  
  
  

  No Employees Found

  
  
  

  
  Name
  Employee ID
  
  




  

  




---< cut >---

-mark.

-- 
View this message in context: 
http://www.nabble.com/Struts-1.x-and-Tomcat-5-problem-tf3812184.html#a10792360
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



S2: cannot access bean from dialog

2007-05-24 Thread Scott Nesbitt

This is working fine in my main JSP:



However, when I call a dialog like this:

window.open('overlay-headends.jsp');

This JSP cannot access the fields in the
userDetailsBean in the main JSP.

Any ideas?  The userDetailsBean is a session
attribute.

Thanks,

Scott


   
Looking
 for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> Thanks again Dave for your input.  It's greatly
> aprpeciated.

Ha ha, don't thank me until something actually works.

d.



   
Be
 a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=396545433

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 1.x and Tomcat 5 problem

2007-05-24 Thread Dave Newton
--- probertm <[EMAIL PROTECTED]> wrote:
> [...] and all of the logic: statements -are-
balanced.  

Can you post the JSP in question, or is it too large?

> From a little research, it seems that this may be a 
> taglib issue, though I can find nothing to confirm 
> that 

Then what makes you think it's a taglib issue?

I guess I'm not sure I see how you'd be getting that
error w/o an unbalanced  tag... I'd
look for unbalanced quotes, too (aside from the
obvious double-checking of tags and their nestings).

d.



 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



{ANNONCE] Akrogen eclipse plugin & Struts1.x

2007-05-24 Thread Angelo zerr

Hello,
I mail you to announce there is new distribution of Akrogen Eclipse plugin.

*Akrogen* is code generation Eclipse  *Plugin*(version
*3.2.**) oriented *components*.

With Akrogen you can describe your *Eclipse Wizards pages* with
XML/XULwhich are linked to a
template which is able to
generate your components (Service, DAO, JSP, HTML...).
I have wrote a Akrogen catalog Struts1.x to generate basic component of
Struts 1.x, like Action, ActionForm,...
http://akrogen.sourceforge.net/struts-catalog/struts1x.html

You have screenshot of ActionForm wizard page Eclise here
http://akrogen.sourceforge.net/struts-catalog/struts1x/actionform.html

This wizard page is described with XML/XUL (no Java code). The logic of
wizard page is managed with script (javascript syntax).
So it's easy to write your own catalog of wizard page.

I'm searching developerswhich are interested to help me to write catalog for
Struts2.x
With the Struts1.x catalog you can show what Akrogen can be do it for you.

If you want new features for Akrogen don't hesitate to contact me.

Thank you

Regards Angelo


Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell

Dave Newton-4 wrote:


Yep... in its simplest form, it's really pretty
straight-forward. There's all sorts of cool ways to
mess it up later ;)
THAT'S the one part of this that I don't need any help with.  I can mess 
things up with the best of them.


Thanks again Dave for your input.  It's greatly aprpeciated.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Charbel Abdul-Massih
I have a page with a table of n rows (# of rows is dynamic)...
Each row has 3 columns, with 3 text input fields...

I'm not sure how to represent them in the Action and through the tags...

I know I should use some sort of hashmap with each entry representing
one row...But from the tags perspective, how do I represent it, assuming
I have an iterator tag that is writing out the rows...

Thx,
Charbel



-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 2:11 PM
To: Struts Users Mailing List
Subject: Re: Mapped Properties - Struts 2 - Best practice

--- Charbel Abdul-Massih wrote:
> What's the best way to use Mapped/Indexed Properties
> in Struts 2.x???

In what way? Are you asking from a tag syntax
standpoint, or...?

d.



   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki
ds&cs=bz 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts 1.x and Tomcat 5 problem

2007-05-24 Thread probertm


Hi ..

I am starting to play with Struts (rev 1.2, I think) and have a little
"problem".  I am having to use an older version of Struts against a recent
Tomcat (rev 5.5) and I am getting an

  /search.jsp(62,0) The end tag "

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote:
> Would you make that a separate  data structure, or 
> part of the object already being passed?

For me, that would depend on what the underlying data
model was, I suppose.

> Let's say it's separate, just add the Map/List to
the
> action, create setter and getters, and make sure and

> recreate the list when ever a function of the 
> action is called that returns to the page where you
> display the list and the choices?

Yep... in its simplest form, it's really pretty
straight-forward. There's all sorts of cool ways to
mess it up later ;)

d.



   
Luggage?
 GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] "Starting with Struts2" Book

2007-05-24 Thread Ian Roughley
I am pleased to announce the release of the mini-book "Starting with 
Struts2" from InfoQ.com.


"Starting with Struts2" is aimed at those who are new to Strut2, and 
those familiar with MVC frameworks but unfamiliar with Struts2.  It 
provides everything you need to know to get up and running using 
Struts2, and can be used as a starting point to explore the more 
intricate features of the Struts2 framework.   Topics include 
architecture and configuration, how to implementing actions, and 
supporting infrastructure such as validation and internationalization.  
Also included are productivity tips, providing a practical introduction 
on how best to use the framework.


The eBook can be found at http://www.infoq.com/minibooks/starting-struts2

/Ian


Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell
I have been struggling with the very same problem.  So you say 
pre-populate the map/list.  Would you make that a separate  data 
structure, or part of the object already being passed?  Let's say it's 
separate, just add the Map/List to the action, create setter and 
getters, and make sure and recreate the list when ever a function of the 
action is called that returns to the page where you display the list and 
the choices?


Dave Newton-4 wrote:
--- Torsten Römer <[EMAIL PROTECTED] 
> 
wrote:

> I see there is no point in what I am trying to do.

Oh, I don't know about that.

You could use a map (or list) for the checkbox values
and gather up the result values that way, couldn't
you?

You just need to pre-populate the map (or list) in the
action before hitting the view.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Dave Newton
--- Charbel Abdul-Massih wrote:
> What's the best way to use Mapped/Indexed Properties
> in Struts 2.x???

In what way? Are you asking from a tag syntax
standpoint, or...?

d.



   
Got
 a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mapped Properties - Struts 2 - Best practice

2007-05-24 Thread Charbel Abdul-Massih
What's the best way to use Mapped/Indexed Properties in Struts 2.x???



Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread Musachy Barroso

the "/struts" folder is inside the struts-core jar, and no, you shouldn't
have to specify anything else. I'm clueless about this one, even more weird
is that you said the datepicker was showing up, even with the error.

musachy

On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,

I updated the source code, done a "mvn clean" and recompile
("mvn")/redeploy the jars, and I have the same errors :
XP/IE 6 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector';
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after
loading '__package__.js'

XP/FF 2 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5

Generated HTML :

// Dojo configuration
djConfig = {
isDebug: true
,bindEncoding: "UTF-8"
  ,baseRelativePath: "/crm/struts/dojo/"
  ,baseScriptUri: "/crm/struts/dojo/"
};

  












 
Date
de début
: 







I don't have any folder named /crm/struts/... Is that normal that the
head.ftl generates this ? Do I have to copy some files from
dojo-plugin/resources to /crm/struts ? Or specify another baseRelativePath
?

Thanks for your help.

Regards,

Michaël



[EMAIL PROTECTED]
23/05/2007 17:43
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the

head.ftl : I set the "," before each parameter, elsewhere whe have a ","
for the last parameter.

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string}
,bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value=
'${parameters.baseRelativePath}' includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}'
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"

<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"

<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}",

  ]

};


Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js

with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector';

last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts",

but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]>
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> In Firefox I have this :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
>
> But nothing in IE.
>
> Just to say, the datepicker is working fine (it opens, I can choose a
> date, it fills the input), but I have this javascript error, and my HTML
> page is not good rendered.
>
>
> Michaël
>
>
>
> "Musachy Barroso" <[EM

Re: Best practice - Wizard flow

2007-05-24 Thread Shahak Nagiel
There's obviously a number of ways to implement this, but here's a few:

- DHTML/Javascript: See the DOMTab library at 
http://onlinetools.org/tools/domtabdata/.  It's not as bad/messy as you might 
think, and it saves you from having to worry about a lot of state management 
issues on the back end.  However, if you require processing between the pages, 
this is not a good solution.

- Conversation Scope: 
http://www.vitarara.org/cms/struts_2_cookbook/using_a_conversation_scope

- Struts 1 has a Workflow Extension at http://www.livinglogic.de/Struts/.  I'm 
not sure how feasible it would be to port this over to S2...

-Shahak


- Original Message 
From: Charbel Abdul-Massih <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Thursday, May 24, 2007 11:45:56 AM
Subject: RE: Best practice - Wizard flow

In the struts 1 world, we used to have one form in the session...With
each subsequent page in the flow, part of the form is
populated...Whenever any page in the flow is requested, the state is
kept and the form variables are retrieved or updated accordingly...

Is there a similar way to do this in Struts 2???

 
-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Best practice - Wizard flow

As I see it the problem with that approach is if I'm at stage 3, I got
back
two screens to stage 1, change something, when I click next I've lost
all
the previously entered data in step 2.

-Original Message-
From: Marco Carnevale [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:34
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.
This
way you are hitting the sever between requests and not using the
session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Charbel Abdul-Massih wrote:
> > I would have thought that something as simple as a wizard would be 
> > easily doable...I would like to keep
>
> > away from the session as much as possible...
>
> The thing with "wizards" (at least as I've used and implemented them) 
> is that previous steps in the wizard flow should be easily accessible,

> and the easiest way to do that is via the session... otherwise you 
> have to make intermediate saves (which is also a fine
> solution) and reloads when you go back (or forward) in the process.
>
> Just a thought.
>
> d.
>
>
>
>
>
> __
> __
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> You can solve this problem without .

Oh, thanks; I thought I had to solve this with
 I sure am sorry it's taken me so long;
I'm a little slow sometimes.

> If you have any simple solution then let me know
ASAP

*sigh*

Is this for your job?

d.



   
Pinpoint
 customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Property Values (constants)- Struts2

2007-05-24 Thread newtostruts struts
Sorry for such a basic question.
   
  What is the right place in struts2 to set constant property values like, 
   
  FILE_NAME = test.txt
  ROW_COUNT=10   
   
  etc..
   
  and also from that prop file or xml file how do I read it anywhere in the 
app..
   
  Thx.

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error

2007-05-24 Thread MLENEVEUT
Hi,

I updated the source code, done a "mvn clean" and recompile 
("mvn")/redeploy the jars, and I have the same errors :
XP/IE 6 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

XP/FF 2 :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5

Generated HTML :

// Dojo configuration
djConfig = {
isDebug: true
,bindEncoding: "UTF-8"
  ,baseRelativePath: "/crm/struts/dojo/"
  ,baseScriptUri: "/crm/struts/dojo/"
};

  








 



 
Date 
de début
: 







I don't have any folder named /crm/struts/... Is that normal that the 
head.ftl generates this ? Do I have to copy some files from 
dojo-plugin/resources to /crm/struts ? Or specify another baseRelativePath 
?

Thanks for your help.

Regards,

Michaël



[EMAIL PROTECTED] 
23/05/2007 17:43
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the 

head.ftl : I set the "," before each parameter, elsewhere whe have a "," 
for the last parameter.

// Dojo configuration
djConfig = {
isDebug: ${parameters.debug?default(false)?string}
,bindEncoding: "${parameters.encoding}"
<#if parameters.baseRelativePath?if_exists != "">
  ,baseRelativePath: "<@s.url value=
'${parameters.baseRelativePath}' includeParams='none' encode='false' />"
  ,baseScriptUri: "<@s.url value='${parameters.baseRelativePath}' 
includeParams='none' encode='false' />"
<#else>
  ,baseRelativePath: "${base}/struts/dojo/"
  ,baseScriptUri: "${base}/struts/dojo/"
 
<#if parameters.locale?if_exists != "">
  ,locale: "${parameters.locale}"

<#if parameters.extraLocales?exists>
  ,extraLocale: [
<#list parameters.extraLocales as locale>
"${locale}",

  ]

};


Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 

with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 

last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the 
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts", 

but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" 


A
"Struts Users Mailing List" 
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've 
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> In Firefox I have this :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
>
> But nothing in IE.
>
> Just to say, the datepicker is working fine (it opens, I can choose a
> date, it fills the input), but I have this javascript error, and my HTML
> page is not good rendered.
>
>
> Michaël
>
>
>
> "Musachy Barroso" <[EMAIL PROTECTED]>
> 23/05/2007 15:12
> Veuillez répondre à
> "Struts Users Mailing List" 
>
>
> A
> "Struts Users Mailing List" 
> cc
>
> Objet
> Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error
>
>
>
>
>
>
> that usually means that there is a javascri

RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
In the struts 1 world, we used to have one form in the session...With
each subsequent page in the flow, part of the form is
populated...Whenever any page in the flow is requested, the state is
kept and the form variables are retrieved or updated accordingly...

Is there a similar way to do this in Struts 2???

 
-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Best practice - Wizard flow

As I see it the problem with that approach is if I'm at stage 3, I got
back
two screens to stage 1, change something, when I click next I've lost
all
the previously entered data in step 2.

-Original Message-
From: Marco Carnevale [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:34
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.
This
way you are hitting the sever between requests and not using the
session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Charbel Abdul-Massih wrote:
> > I would have thought that something as simple as a wizard would be 
> > easily doable...I would like to keep
>
> > away from the session as much as possible...
>
> The thing with "wizards" (at least as I've used and implemented them) 
> is that previous steps in the wizard flow should be easily accessible,

> and the easiest way to do that is via the session... otherwise you 
> have to make intermediate saves (which is also a fine
> solution) and reloads when you go back (or forward) in the process.
>
> Just a thought.
>
> d.
>
>
>
>
>
> __
> __
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practice - Wizard flow

2007-05-24 Thread Michael Bowman

Actually, it appears there is already a struts2 plugin for it:
http://cwiki.apache.org/S2PLUGINS/spring-webflow-plugin.html

-Michael

On 5/24/07, Michael Bowman <[EMAIL PROTECTED]> wrote:

You may want to check out Spring Web Flow
 - http://www.springframework.org/webflow

It apparently (I haven't tried it yet) works with struts2 and you
don't need to use anything else from spring to use it. I saw a demo of
it at JavaOne this year and was really impressed.

-Michael


On 5/24/07, Charbel Abdul-Massih <[EMAIL PROTECTED]> wrote:
> In that case, is implementing SessionAware the only step required to
> have the action stored in the session???
>
> Charbel
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 24, 2007 11:27 AM
> To: Struts Users Mailing List
> Subject: RE: Best practice - Wizard flow
>
> --- Charbel Abdul-Massih wrote:
> > I would have thought that something as simple as a
> > wizard would be easily doable...I would like to keep
>
> > away from the session as much as possible...
>
> The thing with "wizards" (at least as I've used and
> implemented them) is that previous steps in the wizard
> flow should be easily accessible, and the easiest way
> to do that is via the session... otherwise you have to
> make intermediate saves (which is also a fine
> solution) and reloads when you go back (or forward) in
> the process.
>
> Just a thought.
>
> d.
>
>
>
>
> 
> 
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
http://mbowman.net




--
http://mbowman.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
That'll work too...I thought about that...

I was hoping there's an easier way without having to include all the
hidden variables on every page...But that's fine :)



-Original Message-
From: Marco Carnevale [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:34 AM
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.
This
way you are hitting the sever between requests and not using the
session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Charbel Abdul-Massih wrote:
> > I would have thought that something as simple as a
> > wizard would be easily doable...I would like to keep
>
> > away from the session as much as possible...
>
> The thing with "wizards" (at least as I've used and
> implemented them) is that previous steps in the wizard
> flow should be easily accessible, and the easiest way
> to do that is via the session... otherwise you have to
> make intermediate saves (which is also a fine
> solution) and reloads when you go back (or forward) in
> the process.
>
> Just a thought.
>
> d.
>
>
>
>
>
>


> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practice - Wizard flow

2007-05-24 Thread Michael Bowman

You may want to check out Spring Web Flow
- http://www.springframework.org/webflow

It apparently (I haven't tried it yet) works with struts2 and you
don't need to use anything else from spring to use it. I saw a demo of
it at JavaOne this year and was really impressed.

-Michael


On 5/24/07, Charbel Abdul-Massih <[EMAIL PROTECTED]> wrote:

In that case, is implementing SessionAware the only step required to
have the action stored in the session???

Charbel
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 11:27 AM
To: Struts Users Mailing List
Subject: RE: Best practice - Wizard flow

--- Charbel Abdul-Massih wrote:
> I would have thought that something as simple as a
> wizard would be easily doable...I would like to keep

> away from the session as much as possible...

The thing with "wizards" (at least as I've used and
implemented them) is that previous steps in the wizard
flow should be easily accessible, and the easiest way
to do that is via the session... otherwise you have to
make intermediate saves (which is also a fine
solution) and reloads when you go back (or forward) in
the process.

Just a thought.

d.






TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
http://mbowman.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
As I see it the problem with that approach is if I'm at stage 3, I got back
two screens to stage 1, change something, when I click next I've lost all
the previously entered data in step 2.

-Original Message-
From: Marco Carnevale [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:34
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.  This
way you are hitting the sever between requests and not using the session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Charbel Abdul-Massih wrote:
> > I would have thought that something as simple as a wizard would be 
> > easily doable...I would like to keep
>
> > away from the session as much as possible...
>
> The thing with "wizards" (at least as I've used and implemented them) 
> is that previous steps in the wizard flow should be easily accessible, 
> and the easiest way to do that is via the session... otherwise you 
> have to make intermediate saves (which is also a fine
> solution) and reloads when you go back (or forward) in the process.
>
> Just a thought.
>
> d.
>
>
>
>
>
> __
> __
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> http://tv.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practice - Wizard flow

2007-05-24 Thread Marco Carnevale

How about this.  Each subsequent page in the wizard contains all the new
form elements plus html hidden form elements for the previous save.  This
way you are hitting the sever between requests and not using the session.

Each wizard screen is basically the 'state' for itself plus all previous
screens.

Marco

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Charbel Abdul-Massih wrote:
> I would have thought that something as simple as a
> wizard would be easily doable...I would like to keep

> away from the session as much as possible...

The thing with "wizards" (at least as I've used and
implemented them) is that previous steps in the wizard
flow should be easily accessible, and the easiest way
to do that is via the session... otherwise you have to
make intermediate saves (which is also a fine
solution) and reloads when you go back (or forward) in
the process.

Just a thought.

d.






TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Struts2 JasperReport plugin - Parameters

2007-05-24 Thread cristales

I solve my question, by this way;

* add a property customParameters to JasperReportsResult with the respective
seter:
public void setCustomParameters(String customParameters) {
this.customParameters = customParameters;
}

* load the customParameters before to generate the report, just after to
initialize the
   parameters property by the plugin:
//getting the map of parameters
Map mapParameters = (Map) stack.findValue(customParameters);
if (mapParameters != null) {
parameters.putAll(mapParameters);
}

* in the struts2 action, I add a Map property and setting values to
customize the report title
jasperParams = new HashMap();
jasperParams.put("titulo02", "Listado General de Usuarios");
jasperParams.put("titulo03", "Filtrados por Departamento y Role");

* mapping the action in the struts.xml


  /reportes/usuarios.jasper
  usuarios
  jasperParams
  PDF





cristales wrote:
> 
> I think than adding a map property to the JasperReportsResult
> may help, but I don't know how to access this map object inside the
> JasperReportsResult on run time.
> 
> Cristales
> 
> 
> cristales wrote:
>> 
>> 
>> How I can include parameters to the report in adition to the datasource,
>> to populate fields in the report header, using the plugin 2.0.6 GA.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2-JasperReport-plugin---Parameters-tf3806761.html#a10786510
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave
   You can solve this problem without .
   If you have any simple solution then let me know ASAP

Thank you,
Vijay Prajapati


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> If there are n elements in collection then there
>> would be many rows and in each rows 5 elements will

>> be display.

So... do you know of any way in Java to do something
every five times through a loop?

(I haven't used  so I don't know if it's
a better way to solve this problem as opposed to just
doing the simple test by hand.)

d.




Building
a website is a piece of cake. Yahoo! Small Business gives you all the tools
to get online.
http://smallbusiness.yahoo.com/webhosting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
In that case, is implementing SessionAware the only step required to
have the action stored in the session???

Charbel 
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:27 AM
To: Struts Users Mailing List
Subject: RE: Best practice - Wizard flow

--- Charbel Abdul-Massih wrote:
> I would have thought that something as simple as a
> wizard would be easily doable...I would like to keep

> away from the session as much as possible...

The thing with "wizards" (at least as I've used and
implemented them) is that previous steps in the wizard
flow should be easily accessible, and the easiest way
to do that is via the session... otherwise you have to
make intermediate saves (which is also a fine
solution) and reloads when you go back (or forward) in
the process.

Just a thought.

d.



 


TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Dave Newton
--- Charbel Abdul-Massih wrote:
> I would have thought that something as simple as a
> wizard would be easily doable...I would like to keep

> away from the session as much as possible...

The thing with "wizards" (at least as I've used and
implemented them) is that previous steps in the wizard
flow should be easily accessible, and the easiest way
to do that is via the session... otherwise you have to
make intermediate saves (which is also a fine
solution) and reloads when you go back (or forward) in
the process.

Just a thought.

d.



 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I would have thought that something as simple as a wizard would be
easily doable...I would like to keep away from the session as much as
possible...

I am using one action for the whole flow, but many action mappings...

Something like this so far...





mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 11:12 AM
To: 'Struts Users Mailing List'
Subject: Re: Best practice - Wizard flow

I know you said you didn't like sessions, but they're the only clean way
of
doing things stateful things between stateless pages.

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:10
To: 'Struts Users Mailing List'
Subject: RE: Best practice - Wizard flow

Store the values in the session and clear them down when the user either
completes the wizard or restarts it? 

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 16:04
To: Struts Users Mailing List
Subject: RE: Best practice - Wizard flow

I would like to keep away from this method...
Any other suggestions???
 

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 10:49 AM
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

Why not draw all 3 pages but hide 2 of them and javascript the next page

on and off.
All pages inside the same form, last page submits.

Charbel Abdul-Massih wrote:
> I am developing a wizard type flow with 3 pages in the wizard...
>
>  
>
> We'll call them page 1, page 2, and page 3...
>
>  
>
> I need users to be able to navigate between pages with a next/previous

> button, without losing any data that was entered in any of the pages.
> The last submit from page 3 will store everything to the database.
>
>  
>
> What is the best way to model this in struts.xml...ie: how many action

> mappings is recommended.  Do I have one action mapping for the view,
and
> one for each submit??? I would like to keep away from the session if 
> possible.
>
>  
>
> Any suggestions would be appreciated.
>
>  
>
> Thanks,
>
> Charbel
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> If there are n elements in collection then there 
>> would be many rows and in each rows 5 elements will

>> be display.

So... do you know of any way in Java to do something
every five times through a loop?

(I haven't used  so I don't know if it's
a better way to solve this problem as opposed to just
doing the simple test by hand.)

d.



   
Building
 a website is a piece of cake. Yahoo! Small Business gives you all the tools to 
get online.
http://smallbusiness.yahoo.com/webhosting 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
I know you said you didn't like sessions, but they're the only clean way of
doing things stateful things between stateless pages.

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:10
To: 'Struts Users Mailing List'
Subject: RE: Best practice - Wizard flow

Store the values in the session and clear them down when the user either
completes the wizard or restarts it? 

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 16:04
To: Struts Users Mailing List
Subject: RE: Best practice - Wizard flow

I would like to keep away from this method...
Any other suggestions???
 

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 10:49 AM
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

Why not draw all 3 pages but hide 2 of them and javascript the next page

on and off.
All pages inside the same form, last page submits.

Charbel Abdul-Massih wrote:
> I am developing a wizard type flow with 3 pages in the wizard...
>
>  
>
> We'll call them page 1, page 2, and page 3...
>
>  
>
> I need users to be able to navigate between pages with a next/previous 
> button, without losing any data that was entered in any of the pages.
> The last submit from page 3 will store everything to the database.
>
>  
>
> What is the best way to model this in struts.xml...ie: how many action 
> mappings is recommended.  Do I have one action mapping for the view,
and
> one for each submit??? I would like to keep away from the session if 
> possible.
>
>  
>
> Any suggestions would be appreciated.
>
>  
>
> Thanks,
>
> Charbel
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Al Sutton
Store the values in the session and clear them down when the user either
completes the wizard or restarts it? 

-Original Message-
From: Charbel Abdul-Massih [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 16:04
To: Struts Users Mailing List
Subject: RE: Best practice - Wizard flow

I would like to keep away from this method...
Any other suggestions???
 

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 10:49 AM
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

Why not draw all 3 pages but hide 2 of them and javascript the next page

on and off.
All pages inside the same form, last page submits.

Charbel Abdul-Massih wrote:
> I am developing a wizard type flow with 3 pages in the wizard...
>
>  
>
> We'll call them page 1, page 2, and page 3...
>
>  
>
> I need users to be able to navigate between pages with a next/previous 
> button, without losing any data that was entered in any of the pages.
> The last submit from page 3 will store everything to the database.
>
>  
>
> What is the best way to model this in struts.xml...ie: how many action 
> mappings is recommended.  Do I have one action mapping for the view,
and
> one for each submit??? I would like to keep away from the session if 
> possible.
>
>  
>
> Any suggestions would be appreciated.
>
>  
>
> Thanks,
>
> Charbel
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Serious memory leak

2007-05-24 Thread Roger Varley

On 22/05/07, Balazs Michnay <[EMAIL PROTECTED]> wrote:

Hi,

I have just downloaded NetBeans Profiler to see how my web-app performs and 
realized that it produces serious memory leaks... The interesting part is that 
I have nothing on my JSP but static struts tags (no dynamic content at all) and 
it turned out that the leaks are not made by my application, but made by either 
struts (???) or Tomcat (???) or Java itself, I don't know what...


I don't want to be seen to be teaching my grannie to suck eggs, but
are you doing your profiling with a clean start of Netbeans and
Tomcat? I've just been indulging in a fairly rapid cycle of develop,
deploy in-situ, test using Netbeans and the embedded Tomcat, and have
crashed with an OOM error. So something in Netbeans or, more likely,
Tomcat is holding resource when you re-deploy in-situ.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
If you don't have any other resources ending in .xml .html .etc inside your
webapp you can modify the filter-mapping, if you do then you might have to
consider the idea of a directory in which all objects are mapped to actions
and a separate directory where they are not, e.g.;

http://domain.com/struts2/stuff.html <-- Static HTML
http://domain.com/struts2/dynamic/stuff.html <-- Goes to an action.

Al.

-Original Message-
From: Kevin Conroy [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 15:51
To: Struts Users Mailing List
Subject: Re: [S2] Results Based on URL File Types

Hi Roger (and Al),
Thanks for your replies.

I had thought about doing something like what you specified Roger, by
passing the return type as a parameter. However, in keeping with what seems
to be fairly standard RESTful web service protocol, I was hoping to have the
return type specified after the query name. Then from the users perspective
the URL file type that the request matches the return type, rather than it
just being some random query.

It's true that I could also build the return type into the URL path, but
that would give me several different actions for each query, and I'd like to
have one Action object that knows how to get all of the POJOs that are
associated with the query and then use the results to mux out how to
serialize the POJOs into the correct format (e.g. REST xml, json, rss, etc.)

So is there any way to tell Struts to ignore the extension (*.do or
*.action) and just assume that all requests into the application (or
namespace) are in fact actions it should execute? I'm suspecting not, as
this might block access to other non-action resources, but if there is some
way to set up a * pattern, that might work too.

Thanks for all of your help.

--
Kevin Conroy
E-mail: [EMAIL PROTECTED]

On 5/24/07, Roger Varley <[EMAIL PROTECTED]> wrote:
>
> I'm still a newbie as well so take this with a pinch of salt. I would 
> try doing it this way;
>
> http://www.domain.com/struts2/queryName?param1=foo,param2=xml
> http://www.domain.com/struts2/queryName?param1=foo,param2=json
> http://www.domain.com/struts2/queryName?param1=foo,param2=html
> http://www.domain.com/struts2/queryName?param1=foo,param2=rss
>
> Include getter and setter for param2 in your action and set your 
> result strings as appropriate to get the results you want so, for 
> example after executing your query, you could include in your action 
> method;
>
> return getParam2()
> which would return xml,json,html or rss and then in your struts.xml 
> you'd specify
>
> YourResultTypeForXML
> YourResultTypeForJSON
>
> etc etc
>
> Does this help.
>
> Regards
> Roger
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I would like to keep away from this method...
Any other suggestions???
 

-Original Message-
From: Lance [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 24, 2007 10:49 AM
To: Struts Users Mailing List
Subject: Re: Best practice - Wizard flow

Why not draw all 3 pages but hide 2 of them and javascript the next page

on and off.
All pages inside the same form, last page submits.

Charbel Abdul-Massih wrote:
> I am developing a wizard type flow with 3 pages in the wizard...
>
>  
>
> We'll call them page 1, page 2, and page 3...
>
>  
>
> I need users to be able to navigate between pages with a next/previous
> button, without losing any data that was entered in any of the pages.
> The last submit from page 3 will store everything to the database.
>
>  
>
> What is the best way to model this in struts.xml...ie: how many action
> mappings is recommended.  Do I have one action mapping for the view,
and
> one for each submit??? I would like to keep away from the session if
> possible.
>
>  
>
> Any suggestions would be appreciated.
>
>  
>
> Thanks,
>
> Charbel
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

update "#appStatus.index" instead of "#appStatus.incex"
On 5/24/07, Vijay Prajapati <[EMAIL PROTECTED]> wrote:


Dave,

 I am here giving my code on JSP. So please try to correct it.
I have 7 elements in collection and i have to show 5 elements in one row
and rest of the elements in second row. If there are n elements in
collection then there would be many rows and in each rows 5 elements will be
display.


   

   
  
 
   < s:url id="applicationmonitor" action ="
ViewApplicationAction.action">
  < s:param name="applicationName" value= "%{application}"/>
  
< p> 

   < s:else>-
   
  
  



< tr>
 <
s:actionmessage/>






On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> > If you have any solution then help me out.
>
> Seriously, I think I helped you already.
>
> Maybe if you explain where you're having issues coming
> up with the solution we can work our way through it.
>
> d.
>
>
>
>
> 

>
> 8:00? 8:25? 8:40? Find a flick in no time
> with the Yahoo! Search movie showtime shortcut.
> http://tools.search.yahoo.com/shortcuts/#news
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave,

I am here giving my code on JSP. So please try to correct it.
I have 7 elements in collection and i have to show 5 elements in one row and
rest of the elements in second row. If there are n elements in collection
then there would be many rows and in each rows 5 elements will be display.


  
   
  
 

  
 
 

   
  -
  
 
 




 <
s:actionmessage/>






On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> If you have any solution then help me out.

Seriously, I think I helped you already.

Maybe if you explain where you're having issues coming
up with the solution we can work our way through it.

d.






8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy

Hi Roger (and Al),
Thanks for your replies.

I had thought about doing something like what you specified Roger, by
passing the return type as a parameter. However, in keeping with what seems
to be fairly standard RESTful web service protocol, I was hoping to have the
return type specified after the query name. Then from the users perspective
the URL file type that the request matches the return type, rather than it
just being some random query.

It's true that I could also build the return type into the URL path, but
that would give me several different actions for each query, and I'd like to
have one Action object that knows how to get all of the POJOs that are
associated with the query and then use the results to mux out how to
serialize the POJOs into the correct format (e.g. REST xml, json, rss, etc.)

So is there any way to tell Struts to ignore the extension (*.do or
*.action) and just assume that all requests into the application (or
namespace) are in fact actions it should execute? I'm suspecting not, as
this might block access to other non-action resources, but if there is some
way to set up a * pattern, that might work too.

Thanks for all of your help.

--
Kevin Conroy
E-mail: [EMAIL PROTECTED]

On 5/24/07, Roger Varley <[EMAIL PROTECTED]> wrote:


I'm still a newbie as well so take this with a pinch of salt. I would
try doing it this way;

http://www.domain.com/struts2/queryName?param1=foo,param2=xml
http://www.domain.com/struts2/queryName?param1=foo,param2=json
http://www.domain.com/struts2/queryName?param1=foo,param2=html
http://www.domain.com/struts2/queryName?param1=foo,param2=rss

Include getter and setter for param2 in your action and set your
result strings as appropriate to get the results you want so, for
example after executing your query, you could include in your action
method;

return getParam2()
which would return xml,json,html or rss and then in your struts.xml
you'd specify

YourResultTypeForXML
YourResultTypeForJSON

etc etc

Does this help.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Best practice - Wizard flow

2007-05-24 Thread Lance
Why not draw all 3 pages but hide 2 of them and javascript the next page 
on and off.

All pages inside the same form, last page submits.

Charbel Abdul-Massih wrote:

I am developing a wizard type flow with 3 pages in the wizard...

 


We'll call them page 1, page 2, and page 3...

 


I need users to be able to navigate between pages with a next/previous
button, without losing any data that was entered in any of the pages.
The last submit from page 3 will store everything to the database.

 


What is the best way to model this in struts.xml...ie: how many action
mappings is recommended.  Do I have one action mapping for the view, and
one for each submit??? I would like to keep away from the session if
possible.

 


Any suggestions would be appreciated.

 


Thanks,

Charbel


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Just read the your post again, I see you're using the result as a two step
process as oppose to needing a dispatch switch statement, cool idea, but I
think it will still be a bit more complex than using the separate
directories.

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 15:44
To: 'Struts Users Mailing List'
Subject: RE: [S2] Results Based on URL File Types

Just a small observation Roger, whilst you're solution is perfectly
workable, you would need to have a big switch statement (or something
similar) which could get messy.

imho, the use of the extra directory and namespace (i.e. /xml/, /html/,
etc.) that I suggested earlier is slightly simpler because it makes use of
Struts existing dispatch determining mechanisms to direct the request to the
correct handler, but I'd welcome any comments you have if you feel the extra
param has other benefits to offer.

Al.

-Original Message-
From: Roger Varley [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 15:38
To: Struts Users Mailing List
Subject: Re: [S2] Results Based on URL File Types

I'm still a newbie as well so take this with a pinch of salt. I would try
doing it this way;

 http://www.domain.com/struts2/queryName?param1=foo,param2=xml
 http://www.domain.com/struts2/queryName?param1=foo,param2=json
 http://www.domain.com/struts2/queryName?param1=foo,param2=html
 http://www.domain.com/struts2/queryName?param1=foo,param2=rss

Include getter and setter for param2 in your action and set your result
strings as appropriate to get the results you want so, for example after
executing your query, you could include in your action method;

return getParam2()
which would return xml,json,html or rss and then in your struts.xml you'd
specify

YourResultTypeForXML
YourResultTypeForJSON

etc etc

Does this help.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Just a small observation Roger, whilst you're solution is perfectly
workable, you would need to have a big switch statement (or something
similar) which could get messy.

imho, the use of the extra directory and namespace (i.e. /xml/, /html/,
etc.) that I suggested earlier is slightly simpler because it makes use of
Struts existing dispatch determining mechanisms to direct the request to the
correct handler, but I'd welcome any comments you have if you feel the extra
param has other benefits to offer.

Al.

-Original Message-
From: Roger Varley [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 15:38
To: Struts Users Mailing List
Subject: Re: [S2] Results Based on URL File Types

I'm still a newbie as well so take this with a pinch of salt. I would try
doing it this way;

 http://www.domain.com/struts2/queryName?param1=foo,param2=xml
 http://www.domain.com/struts2/queryName?param1=foo,param2=json
 http://www.domain.com/struts2/queryName?param1=foo,param2=html
 http://www.domain.com/struts2/queryName?param1=foo,param2=rss

Include getter and setter for param2 in your action and set your result
strings as appropriate to get the results you want so, for example after
executing your query, you could include in your action method;

return getParam2()
which would return xml,json,html or rss and then in your struts.xml you'd
specify

YourResultTypeForXML
YourResultTypeForJSON

etc etc

Does this help.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Best practice - Wizard flow

2007-05-24 Thread Charbel Abdul-Massih
I am developing a wizard type flow with 3 pages in the wizard...

 

We'll call them page 1, page 2, and page 3...

 

I need users to be able to navigate between pages with a next/previous
button, without losing any data that was entered in any of the pages.
The last submit from page 3 will store everything to the database.

 

What is the best way to model this in struts.xml...ie: how many action
mappings is recommended.  Do I have one action mapping for the view, and
one for each submit??? I would like to keep away from the session if
possible.

 

Any suggestions would be appreciated.

 

Thanks,

Charbel



Re: difference between html:submit and

2007-05-24 Thread Alin Tomoiaga

>altKey, bundle, indexed, titleKey, and property are
>all Struts-specific (I think)... largely message- and
>ActionForm-related stuff.

altKey, property, indexed are just different names for "functionality" already 
provided by the simple html tag.

I was hoping for a more subtle difference (like the mapping of html:text), but 
the message related properties are a valid answer. 

Thank you.








  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

Re: [S2] Results Based on URL File Types

2007-05-24 Thread Roger Varley

I'm still a newbie as well so take this with a pinch of salt. I would
try doing it this way;

http://www.domain.com/struts2/queryName?param1=foo,param2=xml
http://www.domain.com/struts2/queryName?param1=foo,param2=json
http://www.domain.com/struts2/queryName?param1=foo,param2=html
http://www.domain.com/struts2/queryName?param1=foo,param2=rss

Include getter and setter for param2 in your action and set your
result strings as appropriate to get the results you want so, for
example after executing your query, you could include in your action
method;

return getParam2()
which would return xml,json,html or rss and then in your struts.xml
you'd specify

YourResultTypeForXML
YourResultTypeForJSON

etc etc

Does this help.

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem sending array values to struts2 action

2007-05-24 Thread dhilip mandava

i have input fileds like url[], bitrate[]like 5 fields.

i used array syantax [] because , dynamically i am adding those fields using
javascript with same name.
 i want to get all those values in some array in action class


so,i wrote setter, getter for all those fileds as array type of string.

like 

String[] url=null;

 public string[] setUrl(string[] url){
this.url= url

}


but iam getting null pointer exception

even though i gave url[0],bitrate[0],
 url[1],bitrate[1]..
url[2],bitrate[2]


i gotnull pointer exception



plz give me solution, if any problem...understanding excuse me
-- 
View this message in context: 
http://www.nabble.com/problem-sending-array-values-to-struts2-action-tf3810516.html#a10785204
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> If you have any solution then help me out.

Seriously, I think I helped you already.

Maybe if you explain where you're having issues coming
up with the solution we can work our way through it.

d.



 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Al,
   I am getting values through List from Struts Action and based on that i
have to show values on JSPs. and i think Struts can do it.
If you have any solution then help me out.


On 5/24/07, Al Sutton <[EMAIL PROTECTED]> wrote:


Vijay,

You've been given a good hint about Struts can offer to help. If you feel
you need to improve the formatting maybe you should look for a JSP
formatting tag library and ask the question on their list.

Regards,

Al.

-Original Message-
From: Vijay Prajapati [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 13:48
To: Struts Users Mailing List
Subject: Re: Problem regarding  tag

Dave
   I want to print pattern which i have drawn in my first mail through
 tag.
As per your link it will shows 1,2,3,4,5 in row but i want to draw it in
row and column wise.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> > Can you please send sample code to print matrix of 10 element from
> > one
>
> Look at the  "status" attribute.
>
> http://struts.apache.org/2.x/docs/iterator.html
>
> See the last example regarding "#stat.index".
>
> d.
>
>
>
>
> __
> __Get the Yahoo! toolbar and be alerted to new email
> wherever you're surfing.
> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problem regarding tag

2007-05-24 Thread Al Sutton
Ever get the feeling someones homework is due in or a deadline is looming? 

-Original Message from Vijay Prajapati-

.
.
.
.
> Please reply me ASAP



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] Results Based on URL File Types

2007-05-24 Thread Al Sutton
Kevin,

>From my knowledge you can't achieve exactly what you're looking for in
struts2 because struts2 uses the first part of the last section of the url
resource identifier as the key for the action lookup (i.e. for all 4 of your
examples the action would be mapped to he same action for queryName).

I quick and dirty way around this would be to add an extra directory level
for each type, define that as a separate namespace in struts-config, define
the struts filter to handle all relevant extensions in web.xml, and then you
could have the different types. This would give you something like;

http://www.domain.com/struts2/xml/queryName.xml?param1=foo
http://www.domain.com/struts2/json/queryName.json?param1=foo
http://www.domain.com/struts2/html/queryName.html?param1=foo
http://www.domain.com/struts2/rss/queryName.rss?param1=foo

Would this work for you?

Al.

-Original Message-
From: Kevin Conroy [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 14:42
To: user@struts.apache.org
Subject: [S2] Results Based on URL File Types

Hi everyone,
I'm new to Struts 2 (and Struts in general, for that matter). I've got the
Struts 2 framework up and running and I'm trying to figure out how to get it
to support a use case for our new application. We'd like to have a set of
web services that look like this:

http://www.domain.com/struts2/queryName.xml?param1=foo
http://www.domain.com/struts2/queryName.json?param1=foo
http://www.domain.com/struts2/queryName.html?param1=foo
http://www.domain.com/struts2/queryName.rss?param1=foo

As you can see, the query and its parameters won't change, but we'd like to
alter the result type based on the requested URL file type. How can I best
achieve this in Struts 2? I know that I can do some Apache rewriting to map
these to the correct Actions, but I'd much rather do it in the
struts-config.xml file if I can, that way I can just maintain everything
from one location.

Also, does anyone have any suggestions for best practices on how to handle
different result types? I'd like to reuse some of the same basic framework
pieces to handle all Rss, JSON, etc requests so that when I want to add a
new query to the web service, it's just a matter of adding another Action to
support it, and all of the result types are automatically inherited.

Thanks in advance for your help!
Kevin Conroy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave,
I have 10 element in list() and i want to retrieve and to show them through
 tag on JSP. But not in one row but in given below style.
I am here giving sample output..

   1   2   3  --- in 1st row of HTML table
   4   5   6  --- in 2nd row of same HTML table
   7   8   9  --- in 3rd row of same HTML table
   10  --- in 4th row of same HTML table

There  might be more element so based on that row will be increased.
So do you have any code or idea to solve this problem?
Please reply me ASAP

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> I want to print pattern which i have drawn in my
> first mail through  tag.
>   As per your link it will shows 1,2,3,4,5 in row
> but i want to draw it in row and column wise.

So how might you go about solving that?

You have #stat.index. You have the  tag.

There must be some way of combining the two to
implement behavior based on some test of #stat.index.

d.




Need
a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problem regarding tag

2007-05-24 Thread Al Sutton
Vijay,

You've been given a good hint about Struts can offer to help. If you feel
you need to improve the formatting maybe you should look for a JSP
formatting tag library and ask the question on their list.

Regards,

Al.

-Original Message-
From: Vijay Prajapati [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2007 13:48
To: Struts Users Mailing List
Subject: Re: Problem regarding  tag

Dave
I want to print pattern which i have drawn in my first mail through
 tag.
  As per your link it will shows 1,2,3,4,5 in row but i want to draw it in
row and column wise.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> > Can you please send sample code to print matrix of 10 element from 
> > one
>
> Look at the  "status" attribute.
>
> http://struts.apache.org/2.x/docs/iterator.html
>
> See the last example regarding "#stat.index".
>
> d.
>
>
>
>
> __
> __Get the Yahoo! toolbar and be alerted to new email 
> wherever you're surfing.
> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: retrieving value of attribute from tiles definition

2007-05-24 Thread Antonio Petrelli

2007/5/24, temp temp <[EMAIL PROTECTED]>:

My page  uses this definition. In my jsp  I want to capture the value of title 
in a bean
How to?


Use :
http://struts.apache.org/1.3.8/struts-tiles/tagreference.html#importAttribute

Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



retrieving value of attribute from tiles definition

2007-05-24 Thread temp temp
I have a tiles def



 
 
 
 

My page  uses this definition. In my jsp  I want to capture the value of title 
in a bean
How to?
Thanks & Regards
Miro

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

[S2] Results Based on URL File Types

2007-05-24 Thread Kevin Conroy

Hi everyone,
I'm new to Struts 2 (and Struts in general, for that matter). I've got the
Struts 2 framework up and running and I'm trying to figure out how to get it
to support a use case for our new application. We'd like to have a set of
web services that look like this:

http://www.domain.com/struts2/queryName.xml?param1=foo
http://www.domain.com/struts2/queryName.json?param1=foo
http://www.domain.com/struts2/queryName.html?param1=foo
http://www.domain.com/struts2/queryName.rss?param1=foo

As you can see, the query and its parameters won't change, but we'd like to
alter the result type based on the requested URL file type. How can I best
achieve this in Struts 2? I know that I can do some Apache rewriting to map
these to the correct Actions, but I'd much rather do it in the
struts-config.xml file if I can, that way I can just maintain everything
from one location.

Also, does anyone have any suggestions for best practices on how to handle
different result types? I'd like to reuse some of the same basic framework
pieces to handle all Rss, JSON, etc requests so that when I want to add a
new query to the web service, it's just a matter of adding another Action to
support it, and all of the result types are automatically inherited.

Thanks in advance for your help!
Kevin Conroy


Re: Problem regarding tag

2007-05-24 Thread Dave Newton
--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> I want to print pattern which i have drawn in my
> first mail through  tag.
>   As per your link it will shows 1,2,3,4,5 in row
> but i want to draw it in row and column wise.

So how might you go about solving that?

You have #stat.index. You have the  tag. 

There must be some way of combining the two to
implement behavior based on some test of #stat.index.

d.



   
Need
 a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >