Array of Bean and optionsCollection (up)

2007-04-10 Thread Marcello Savino
Please excuse me but i try again ... (hope will never die)

Hi all, i've the following problem using the tag









myBean Class:

public class myBean implements java.io.Serializable{
private Integer code;
private String descr;

public Integer getCode(){return code;}
public String getDescr(){return descr;}

public void setCode(Integer val){ code=val;}
public void setDescr(String val){ descr=val;} }

 _


Could anyone help me?
Any help will be greatly appreciated.
Thanks in advance
Marcello

-
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 life cycle

2007-04-10 Thread tom tom
Works but the values get reset all the time, doesnt
stay in the session scope, if I update form in the one
action class and if I try to retrieve from the other
action class the values has been lost.



Should I have to do any extra things


--- Dave Newton <[EMAIL PROTECTED]> wrote:

> --- tom tom <[EMAIL PROTECTED]> wrote:
> > How can I have a reference to the form class
> inside
> > the action class. I did the following 
> > 
> > 1) Wrote a action class which implements
> > ScopedModelDriven interface, the argo is not null
> > inside setModel(Object arg0)method in the action
> > class but I cant cast into test.TestForm (pojo)
> 
> At the very least I believe you should implement
> ScopedModelDriven, not just ScopedModelDriven,
> and
> provide typed accessors:
> 
>
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ModelDriven.html
>
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ScopedModelDriven.html
> 
> d.
> 
> 
> 
>  
>

> Don't get soaked.  Take a quick peek at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



  Don't be flakey.  Get Yahoo! Mail for Mobile and always stay connected to 
friends.http://mobile.yahoo.com/mail

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



Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-10 Thread Alexis Pigeon

Hi Mark,

On 10/04/07, Mark Menard <[EMAIL PROTECTED]> wrote:

There's a cleaner Struts 2 way of doing this. Take a look at the
org.apache.struts2.interceptor.SessionAware interface. This will make your
action independent of the servlet spec and more easily testable.


Thanks for the tip!


> This works perfectly as expected, as long as there is only one
> instance of the application launched at a time in the same browser
> (using Firefox or IE7 tabs for example). In that case, the bean is
> shared between the different instances, which is problematic since its
> content depends on previous data input.

You need a conversation scope. There is no direct support for this in the
Servlet spec, nor in Struts 2 directly. You could take a look at using the
Spring Webflow integration (I don't know the link). You could also take a
look at a simple interceptor I created for this purpose.
(http://www.vitarara.org/cms/node/84) I have since updated that method to
simply be an extension of ModelDriven, if you're interested in the most
recent version let me know.


The concept of conversation scope is exactly what I was looking for.
The most common situation where I would need it is when having a
select input which content depends on the item chosen from another one
(for example, a set of two selects representing countries and cities,
the content of the latter representing the cities of the chosen
country only).
In my case, the generation of the "subselect" can be quite
time-consuming, thus the need to keep it in some higher scope than the
request.
As for the Interceptor you wrote, I would be most interested in the
most recent version.

Thanks for the help,
alexis

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



I am getting an error : java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax(I)V

2007-04-10 Thread dshivhare

Hello All,

I want to use struts dynamic form feature. 
There is form which has an upload file field. I am having the following
settings in struts config file

 



 



 

 




the jsp file contains the following form settings



Select file: 





code in UploadItemAction is:

 public class UploadItemAction extends Action{

  public ActionForward execute(ActionMapping mapping,
ActionForm form, HttpServletRequest request, 
HttpServletResponse response) throws Exception{


System.out.println("Upload Item");
 HttpSession session =
request.getSession();
 String validSession
=(String)session.getAttribute("validLoginSession");
 AtUsers
currentUser=GlobalEnv.getCurrentSessionUser(session);

 boolean isSuperAdmin =
UserMgmtAPI.isApptilityAdmin(currentUser.getRoles());


if(validSession==null||validSession.equals("false")){
  
return (mapping.findForward("invalidSession"));
 }

   if(!isSuperAdmin){
  
return (mapping.findForward("accessVoilation"));
   }

  DynaValidatorForm
uploadItemForm=(DynaValidatorForm)form;
  
  FormFile
newItem=(FormFile)uploadItemForm.get("newItem");
   
 
System.out.println(newItem.getFileName().toString());
  
  AWSAuthConnection s3Conn=
(AWSAuthConnection) 
   
request.getSession().getAttribute("S3_CONN");

   S3Object s3Object = new
S3Object();

   return
mapping.findForward("forwardPage");

   }
 }

upon clicking the submit button in jsp I am getting the following error:

   java.lang.NoSuchMethodError:
org.apache.commons.fileupload.FileUpload.setSizeMax(I)V

 
I have searched various mailing list and as suggeste by most of them,
downloaded the latest version of org.apache.commons.fileupload.jar

also tried deleting the previous version of
org.apache.commons.fileupload.jar from tomcat and classpath,

but the error is still there. Am I missing something?


-- 
View this message in context: 
http://www.nabble.com/I-am-getting-an-error-%3A-java.lang.NoSuchMethodError%3A-org.apache.commons.fileupload.FileUpload.setSizeMax%28I%29V-tf3557383.html#a9933379
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: Formatting s:textfield values

2007-04-10 Thread Sauli Ketola
Hi,

Is there a way to format the value of a s:textfield like it possible
with s:text?

For example what would be the equivalent of "" for /?

S.


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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Zoran Avtarovski
I have to agree with Frank and Paul. The list has been the best source of
current information on S2. We're using the WebWork in Action Book and other
resources but by far this mailing list has been the most valuable resource.

Z. 

> While I understand that people want a separate mailing list, and at
> times I believed the same thing, the fact is that most questions to
> this list will be about 2.x. The reason is because, imo, 1.x has been
> out for 7 years and virtually every possible question and answer has
> been given -- there's simply not much of a need to ask if you can
> already find your answer through an Internet search (like Google or
> Nabble).
> 
> With that said, I also agree with Frank's point that separate mailing
> lists also tend to divide the community. Believe it or not, there's
> also one mailing list for Struts committers too -- so the Apache folks
> who write Struts also get to see all the activity from 1.x and 2.x.
> That's a good idea because we're one (read: ONE) community. Just as
> Apache doesn't have a Tomcat 4 mailing list, a Tomcat 5, Tomcat 6, etc,
> neither should we have here.
> 
> 
> -
> 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: Override controller nocache=true

2007-04-10 Thread Paul Benedict
Greg, use the  tag to give a custom property to an action. 
Perhaps you'd want a property called "yescache" which, when present, you 
want to perform caching. To take effect, you'll have to create a new 
command in the controller (1.3) or override the processNoCache (1.2) method.


Paul

Greg Dunn wrote:

I have the  set in struts-config, but I
have a certain page that streams a PDF file where I need to allow
caching to accommodate IE users.  Is it possible to override the setting
for an individual page?  Maybe by setting the headers for the page
itself to allow caching?

-
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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Paul Benedict

While I understand that people want a separate mailing list, and at
times I believed the same thing, the fact is that most questions to
this list will be about 2.x. The reason is because, imo, 1.x has been
out for 7 years and virtually every possible question and answer has
been given -- there's simply not much of a need to ask if you can
already find your answer through an Internet search (like Google or
Nabble).

With that said, I also agree with Frank's point that separate mailing
lists also tend to divide the community. Believe it or not, there's
also one mailing list for Struts committers too -- so the Apache folks
who write Struts also get to see all the activity from 1.x and 2.x.
That's a good idea because we're one (read: ONE) community. Just as
Apache doesn't have a Tomcat 4 mailing list, a Tomcat 5, Tomcat 6, etc,
neither should we have here.


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



Re: S2 life cycle

2007-04-10 Thread tom tom
Well I tried ScopedModelDriven Yes it
works but the values get reset all the time, The form
is defined as it is in session scope.

What I did was
I got two action claases which extends
ScopedModelDriven I update the form value in
one action class and retrieve the value in the other
but it looks to me it has not been updated.


I have defined the interceptor as follows in
struts.xml





session
 myForm
 test.MyForm




my Action class is 
public class ExamListAction implements
ScopedModelDriven {


and I updated the value as follows 

public void setModel(MyForm arg0) {


arg0.setName("Updated Name");

 
}


When my next action class retrieves the value it
prints null,

Am I doing something wrong,

pls let me know how to proceed on this.

Thanks




--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:

> Tom,
> 
> I forgot to mention that unlike S1, in S2 the action
> class does not have to
> be thread safe - The action class will be
> instantiated for each request, and
> thus it will have its own instance of the POJO or
> member variables.
> You can pass the "ActionForm", in our case, the POJO
> object to another
> action byt putting the pojo into the session object
> [session.setAttribute(..)]
> 
> There are 2 types of validation - 1) Using
> Validators. 2) Implementing a
> Validatable interface on your Action. Look at the
> links provided to you from
> previous email.
> 
> Hope this helps.
> 
> Harring
> 
> On 4/4/07, joey <[EMAIL PROTECTED]> wrote:
> >
> > I prefer to achieve it by writing some java code
> than xml snippet.
> > Maybe migrating from struts1.x would do this.
> > If I just wanted to share more than one form
> within some actions,I must
> > declared more than one
> > interceptor.If I achieve it by only java code,I
> only need write a base
> > action and extend it.I can write
> > any get or set shared property methods in the
> desired scope.
> >
> > On 4/4/07, tom tom <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks,
> > >
> > > Any samples or documenation around for me to
> refer.
> > >
> > > I followed this
> > >
> > >
>
http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html
> > >
> > >
> > > but didnt work.
> > >
> > > Thanks
> > >
> > > --- Dave Newton <[EMAIL PROTECTED]> wrote:
> > >
> > > > --- tom tom <[EMAIL PROTECTED]> wrote:
> > > > > How can I have a reference to the form class
> > > > inside
> > > > > the action class. I did the following
> > > > >
> > > > > 1) Wrote a action class which implements
> > > > > ScopedModelDriven interface, the argo is not
> null
> > > > > inside setModel(Object arg0)method in the
> action
> > > > > class but I cant cast into test.TestForm
> (pojo)
> > > >
> > > > At the very least I believe you should
> implement
> > > > ScopedModelDriven, not just
> ScopedModelDriven,
> > > > and
> > > > provide typed accessors:
> > > >
> > > >
> > >
> > >
> >
>
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ModelDriven.html
> > > >
> > >
> > >
> >
>
http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/interceptor/ScopedModelDriven.html
> > > >
> > > > d.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
>

> > > > Don't get soaked.  Take a quick peek at the
> forecast
> > > > with the Yahoo! Search weather shortcut.
> > > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > > >
> > > >
> > >
>
-
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>

> > > Don't get soaked.  Take a quick peek at the
> forecast
> > > with the Yahoo! Search weather shortcut.
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > >
> > >
>
-
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> 
> 
> 
> -- 
> Sincerely,
> 
> Harring Figueiredo
> Sr. Software Engineer
> Email: [EMAIL PROTECTED]
> Telephone: 941-256-0600
> 
> "We never become truly spiritual by sitting down and
> wishing to become so.
> You must undertake something so great that you
> cannot accomplish it
> unaided."
> 



   

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

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



Re: S2 s:text Currency Format

2007-04-10 Thread Harring Figueiredo

Dave:

Thank you for the email.

That was exactly what I wrote.

 


It the value does no appear at all.
If there any way we can have output for TLD to see what goes on?

Thank you again for the response.

Harring

On 4/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> How can I format a number with the currency format?
>
> I have taken a look at
> http://struts.apache.org/2.x/docs/text.html and
> still cannot figure out the correct syntax.

Is


  


where

format.money={0,number,currency}

Not the correct syntax?

I ask because it doesn't seem like it's what you're
using:

> I tried this and it does not work.
> 
>   
> 

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]





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


[OT] RE: what version of struts is better?

2007-04-10 Thread Dave Newton
--- "Love, Andrew" <[EMAIL PROTECTED]> wrote:
> I actually prefer to use a template based approach
> instead of JSP.  Velocity and FreeMarker are great 
> for generating responses. This cleanly separates
> the presentation layer.

Just out of curiosity, what do you feel makes JSP
*not* a template system?

d.



 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Frank W. Zammetti
I think the thought behind not splitting the lists to this point is that 
Apache experience has been that it tends to divide a community rather 
than direct traffic in a more granular way.  The idea is that a Struts 
user is a Struts user regardless of version, and those that may not be 
using S2 today (yours truly included for the most part) may well be 
using it tomorrow... a person can get a leg-up just by keeping an eye on 
the S2 posts (I know that's true for me).  One could always subscribe to 
multiple lists of course, but in terms of community, a single united 
list theoretically at least yields more synergy.  This is my 
interpretation of things I've seen stated in the past (I happen to agree 
with it too :) ).  Maybe the thinking is different now by those who are 
in a position to change things, I don't know.


As for a forum, I seem to remember Apache infrastructure not supporting 
it, and I also seem to remember something about Apache projects not 
(directly at least) using outside resources... others more knowledgeable 
than I would have to answer this though... I can't off the top of my 
head think of any other Apache project that has a forum that is 
officially linked to the project.  As a personal opinion, I'm not sure I 
see the benefit of a forum vs. a mailing list, they seem pretty well 
even to me, maybe a slight edge to the mailing list since it goes to my 
mail client... I could see a good argument though for a forum that 
supplies an RSS feed too.


Frank

Antony Stubbs wrote:

Well it might have made sense if struts 2 issues were somehow applicable to
struts 1, but they're mostly not. 


For Struts 2 to be adopted, it needs to be clearly separated from struts 1,
as is the code base. This includes having clearly separate support to make
it as easy as possible to find help. It's not like it's we want a struts 1.5
list. 2 is very different from 1. 


What's the mentality for keeping them jumbled together?

I suppose you don't see a separate mailing list for every major tapestry
release, but this is a case of adopting the best process that fit's the
situation, and in this situation the lists should be seperate IMO.


Dave Newton-4 wrote:

--- Antony Stubbs <[EMAIL PROTECTED]> wrote:

This list seems to be quite busy, and I think
everyone would benefit hugely from separating out

the

two frameworks for obvious reasons. Actually I'm
surprised this hasn't been done already.

It's been brought up (even by me) in the past; I still
agree and would vote for separation if it was votable.

d.



 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and

hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



RE: what version of struts is better?

2007-04-10 Thread Love, Andrew

I actually prefer to use a template based approach instead of JSP.  Velocity
and FreeMarker are great for generating responses.  This cleanly separates
the presentation layer.

Just my 2 cents...

Regards
Andrew
 
-Original Message-
From: Frank Russo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 4:50 PM
To: Struts Users Mailing List
Subject: RE: what version of struts is better?

Not to show any disrespect, but if you are starting a new project with a
clean slate, I'd seriously look at JSF/Facelets if I were you. 

Both frameworks have their pros/cons, but I think JSF's pros well outweigh
the cons. Plus, if you are going to take the time and learn a new framework,
which if you haven't worked with Struts2 or WebWorks that is what you are
doing, then you may want to weigh your options with JSF. I would highly
recommend, though, that if you do consider it, Facelets, and not JSP's are
the way to go. 

Just my 2 cents... 

-Original Message-
From: Love, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 4:43 PM
To: Struts Users Mailing List
Subject: RE: what version of struts is better?

Hello,

I have a great deal of experience developing web based applications.  I have
used home-grown frameworks and several commercial frameworks. 

I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.  

The original version of STRUTS has a great deal of books and documentation
available.  STRUTS2 does not have much in the market yet.  However, STRUTS2
is based on WEBWORK so you should be able to find enough information for
your term paper. 

Best Regards, 

Andrew Love
Chief Software Architect, Strategic Initiatives 
 
McKesson Corporation
McKesson Pharmacy Systems
mailto:[EMAIL PROTECTED]


-Original Message-
From: dire [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 2:30 PM
To: user@struts.apache.org
Subject: what version of struts is better?


sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell me,
please, where i can found answer for my question.

thanx for your attention!
-- 
View this message in context:
http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925
553
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]


-
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 s:text Currency Format

2007-04-10 Thread Dave Newton
--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> How can I format a number with the currency format?
> 
> I have taken a look at
> http://struts.apache.org/2.x/docs/text.html and
> still cannot figure out the correct syntax.

Is


  


where

format.money={0,number,currency}

Not the correct syntax? 

I ask because it doesn't seem like it's what you're
using:

> I tried this and it does not work.
> 
>   
> 

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]



S2 s:text Currency Format

2007-04-10 Thread Harring Figueiredo

How can I format a number with the currency format?

I have taken a look at http://struts.apache.org/2.x/docs/text.html and still
cannot figure out the correct syntax.

This works, but without formatting the output

 


I tried this and it does not work.

 


What am I doing wrong?


Thank you.

--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Antony Stubbs

I don't think apache.org run forums, only moderate mailing lists. I think
they advocate using http://www.nabble.com/.

I think for a start, simply a separate list for Struts 2 would be a massive
help.


Asaf Paris Mandoki wrote:
> 
> How could we get a forum?
> Is there a way to get a place at opensymphony's forum dedicated to struts
> users?
> What other alternatives are there?
> How difficult would it be to get a forum at struts.apache.org ?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-*please*-havea-seperate-Struts-*2*---User-list--tf3556523.html#a9931142
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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Asaf Paris Mandoki

How could we get a forum?
Is there a way to get a place at opensymphony's forum dedicated to struts users?
What other alternatives are there?
How difficult would it be to get a forum at struts.apache.org ?

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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Piero Sartini
On Wednesday 11 April 2007 01:49:01 Asaf Paris Mandoki wrote:
> Wouldn't a forum be more appropriate for this kind of exchange?

I am not sure. Personally I do prefer mailing lists. They save a lot of time, 
especially if you are subscribed to a lot of lists. Navigating to different 
forums is not what I would like to do every day. Just checking my inbox is 
much better :-)

But I know that a lot of users like web forums more than mailing lists. There 
was a discussion at the developer list about communicating a forum some time 
ago, but without result.

You can always use nabble as a forum interface to this list, its pretty good:
http://www.nabble.com/Struts---User-f206.html

Piero

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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Antony Stubbs

Seriously, have you tried
http://www.nabble.com/forum/ViewPost.jtp?post=9930952&framed=y ???


Zoran Avtarovski wrote:
> 
> +1 for using a forum. It saves having to archive the whole list locally to
> keep track of threads. This is particularly relevant with S2 where we're
> trying to keep track of latest issues and common pitfalls.
> 
> Z.
> 
>> 
>> I completely agree. In fact, I quite like the forum the Spring guys use.
>> (esp
>> with the question / answered functionality).
>> 
>> I imagine a lot of people (as i do) treat this list as a forum, esp
>> through
>> archives like Nabble.com which I use.
>> 
>> 
>> Asaf Paris Mandoki wrote:
>>> 
>>> Wouldn't a forum be more appropriate for this kind of exchange?
>>> 
>>> -
>>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-*please*-havea-seperate-Struts-*2*---User-list--tf3556523.html#a9930968
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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Zoran Avtarovski
+1 for using a forum. It saves having to archive the whole list locally to
keep track of threads. This is particularly relevant with S2 where we're
trying to keep track of latest issues and common pitfalls.

Z.

> 
> I completely agree. In fact, I quite like the forum the Spring guys use. (esp
> with the question / answered functionality).
> 
> I imagine a lot of people (as i do) treat this list as a forum, esp through
> archives like Nabble.com which I use.
> 
> 
> Asaf Paris Mandoki wrote:
>> 
>> Wouldn't a forum be more appropriate for this kind of exchange?
>> 
>> -
>> 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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Asaf Paris Mandoki

The webwork forum at www.opensymphony.com looks pretty good. Now that
webwork and struts 2 are almost the same thing, couldn't a special
forum for struts 2 be created over there?

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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Antony Stubbs

I completely agree. In fact, I quite like the forum the Spring guys use. (esp
with the question / answered functionality).

I imagine a lot of people (as i do) treat this list as a forum, esp through
archives like Nabble.com which I use.


Asaf Paris Mandoki wrote:
> 
> Wouldn't a forum be more appropriate for this kind of exchange?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-*please*-havea-seperate-Struts-*2*---User-list--tf3556523.html#a9930890
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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Antony Stubbs

Well it might have made sense if struts 2 issues were somehow applicable to
struts 1, but they're mostly not. 

For Struts 2 to be adopted, it needs to be clearly separated from struts 1,
as is the code base. This includes having clearly separate support to make
it as easy as possible to find help. It's not like it's we want a struts 1.5
list. 2 is very different from 1. 

What's the mentality for keeping them jumbled together?

I suppose you don't see a separate mailing list for every major tapestry
release, but this is a case of adopting the best process that fit's the
situation, and in this situation the lists should be seperate IMO.


Dave Newton-4 wrote:
> 
> --- Antony Stubbs <[EMAIL PROTECTED]> wrote:
>> This list seems to be quite busy, and I think
>> everyone would benefit hugely from separating out
> the
>> two frameworks for obvious reasons. Actually I'm
>> surprised this hasn't been done already.
> 
> It's been brought up (even by me) in the past; I still
> agree and would vote for separation if it was votable.
> 
> d.
> 
> 
> 
>  
> 
> Finding fabulous fares is fun.  
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-we-*please*-havea-seperate-Struts-*2*---User-list--tf3556523.html#a9930881
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: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Asaf Paris Mandoki

Wouldn't a forum be more appropriate for this kind of exchange?

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



Re: Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Dave Newton
--- Antony Stubbs <[EMAIL PROTECTED]> wrote:
> This list seems to be quite busy, and I think
> everyone would benefit hugely from separating out
the
> two frameworks for obvious reasons. Actually I'm
> surprised this hasn't been done already.

It's been brought up (even by me) in the past; I still
agree and would vote for separation if it was votable.

d.



 

Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

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



Can we *please* havea seperate Struts *2* - User list?

2007-04-10 Thread Antony Stubbs

This list seems to be quite busy, and I think everyone would benefit hugely
from separating out the two frameworks for obvious reasons. Actually I'm
surprised this hasn't been done already.
Most notably is that the S2 posts won't get drowned out by S1 posts but
perhaps developers should get a look at.
-- 
View this message in context: 
http://www.nabble.com/Can-we-*please*-havea-seperate-Struts-*2*---User-list--tf3556523.html#a9930771
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: Cannot define a display style class in

2007-04-10 Thread Minerva CC
Hi Piero,

Thank you so much for your help again :-) I am new to struts and Java. But, I 
lean it from your every day.

Willa


- Original Message 
From: Piero Sartini <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Tuesday, April 10, 2007 4:28:50 PM
Subject: Re: Cannot define a display style class in 


There is the "cssClass" parameter for (all?) struts2 tags.
view search results

More information:
http://struts.apache.org/2.x/docs/a.html

Piero

On Wednesday 11 April 2007 01:10:43 Minerva CC wrote:
> Hi,
>
> I tried to define a display style class in  tag as follows
>
> 
> 
> 
> view search results
>
> But, when I run it, I got org.apache.jasper.JasperException:
> /pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according
> to TLD error.
>
> My question is how can we define a style for a url link?
>
> Thanks,
> Willa
>
>
>
> ___
>_ Don't get soaked.  Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather

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


   

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

Re: Cannot define a display style class in

2007-04-10 Thread Piero Sartini
There is the "cssClass" parameter for (all?) struts2 tags.
view search results

More information:
http://struts.apache.org/2.x/docs/a.html

Piero

On Wednesday 11 April 2007 01:10:43 Minerva CC wrote:
> Hi,
>
> I tried to define a display style class in  tag as follows
>
> 
> 
> 
> view search results
>
> But, when I run it, I got org.apache.jasper.JasperException:
> /pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according
> to TLD error.
>
> My question is how can we define a style for a url link?
>
> Thanks,
> Willa
>
>
>
> ___
>_ Don't get soaked.  Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather

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



Cannot define a display style class in

2007-04-10 Thread Minerva CC
Hi,
 
I tried to define a display style class in  tag as follows
 


 
view search results
 
But, when I run it, I got org.apache.jasper.JasperException: 
/pages/searchRequest.jsp(81,4) Attribute class invalid for tag a according to 
TLD error.
 
My question is how can we define a style for a url link?
 
Thanks,
Willa


   

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

Re: [S2] Adding Calendar function to a form.

2007-04-10 Thread cilquirm

Struts 2 tags support pretty much all the attributes that their html
counterparts do.
I haven't used NewCal ( seen it, but not used it )

but you can try something like this :


javascript:NewCal('myfield','ddmmm',true,24)  images/cal.gif  


Skip Hollowell wrote:
> 
> I tried the s:datetimepicker to work on things, but since I am not using 
> AJAX, I believe that is a dead end, no?  There'd be no point in bringing 
> in the ajax theme if I wasn't using AJAX.
> 
> So how do I incorporate a standard js calendar routine into a field on 
> my form?
> 
> What I want to add:
>  javascript:NewCal('demo1','ddmmm',true,24)  images/cal.gif  
> 
> Where I want to add it:
> 
> 
> I am just missing the concept here on how to plug custom code into the 
> s: tags.  I am trying very hard not to hack this thing to bits with 
> tricks and cheats.
> 
> Skip Hollowell
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Adding-Calendar-function-to-a-form.-tf3555209.html#a9929125
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: Search Engine with multiple Pages return

2007-04-10 Thread john lee
I implemented the Search Engine.
   
  The SearchResult has multiple Pages, How I postback Action Class itself with 
parameter(PageNumber and same SearchPart) ?
   
  layout
   PartSearchMain.jsp, it include two jsps.( no frame)
left column is PartSearchInput.jsp with an text box for input 
SearchPart
  right column is PartSearchResult.jsp, display the search result 
if objectPartSearchResultForm(List) exist .
  
flow/logic :
   PartSearchInput.jsp take input of SearchPart, then call 
PartSearchAction, find the part, and assign resutls to 
PartSearchResultForm(List), then forward control to   PartSearchMain.jsp 
again.
 
it works great, but when search results has multiple pages, problem pops.
 
My situration and my expection is that search result displays as " 1 2 3 4 5 6 
NextPage', when user click any page number, it will redirect to same 
action(PartSearchAction) again 
  with page number and SearchPart.
   
  Any one has great ideas about above, i spend many hours on this, but no clue.
  
tks in advance.
 
john


   
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

RE: is there a way to disable the html:submit after pressed

2007-04-10 Thread Ashuin Sharma Chamorro
Yes struts the old one 1.2.9
So with javascript it should be like implementing a function on the 


 something like that?


What is that valid token stud built into struts?? Can you sen me a
link???


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 3:14 PM
To: Struts Users Mailing List
Subject: Re: is there a way to disable the html:submit after pressed

--- Ashuin Sharma Chamorro wrote:
> I don't want to let the user press the submit button
> more than once?? Is there a property for that, or 
> what can I do?

Struts 1?

You can use the valid token stuff built in to Struts
and/or you can use JavaScript to remove/disable/etc.
the button. I don't know if there's a way to do that
without the JavaScript (it's like a one-line function
anyway).

d.



 


The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.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: what version of struts is better?

2007-04-10 Thread Piero Sartini
I did look at JSF/Seam/Shale and other web frameworks before I decided to use 
Struts2.
There were several reasons for my decision and I have not regret it since now.

After many years of web development an action based framework like s2 for me 
is much more "natural" than a component based approach.

I think I am much more productive with s2. If someone wants tooling support 
and a visual designer, maybe it would be better to look at JSF. But in my 
oppinion there is missing a good framework for JSF. (No, I do not think that 
JSF is a framework - it is a technology).

Shale is a good start, but has a long way to go. Seam is too much coupled with 
JBoss/Hibernate for my feeling.

Visual Web Editor and from the netbeans project is nice - but IMHO not suited 
for bigger projects. I really came to the conclusion that JSF is nice for 
small projects with a few pages and if you really want a desktop-like 
development approach. 

I am sure there are many other opinions out there, but more cents are always 
good ;-)

Piero


On Tuesday 10 April 2007 22:50:12 Frank Russo wrote:
> Not to show any disrespect, but if you are starting a new project with a
> clean slate, I'd seriously look at JSF/Facelets if I were you.
>
> Both frameworks have their pros/cons, but I think JSF's pros well outweigh
> the cons. Plus, if you are going to take the time and learn a new
> framework, which if you haven't worked with Struts2 or WebWorks that is
> what you are doing, then you may want to weigh your options with JSF. I
> would highly recommend, though, that if you do consider it, Facelets, and
> not JSP's are the way to go.
>
> Just my 2 cents...

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



Search Engine with multiple Pages return

2007-04-10 Thread john lee
I implemented the Search Engine.
   
  The SearchResult has multiple Pages, How I postback Action Class itself with 
parameter(PageNumber and same SearchPart) ?
   
  layout
   PartSearchMain.jsp, it include two jsps.( no frame)
left column is PartSearchInput.jsp with an text box for input 
SearchPart
  right column is PartSearchResult.jsp, display the search result 
if object 
   PartSearchResultForm(List) exist .
flow/logic :
   PartSearchInput.jsp take input of SearchPart, then call 
PartSearchAction, find the part,
   and assign resutls to PartSearchResultForm(List), then forward control 
to 
   PartSearchMain.jsp again.
 
it works great, but when search results has multiple pages, problem pops.
 
My situration and my expection is that search result displays as " 1 2 3 4 5 6 
NextPage', when user click any page number, it will redirect to same 
action(PartSearchAction) again with page number and SearchPart.
   
  Any one has great ideas about above, i spend many hours on this, but no clue.
   
tks in advance.
 
john

   
-
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

Re: How to pass a Javascript variable to Struts parameter?

2007-04-10 Thread Musachy Barroso

Tags are evaluated on the *server* side, javascript runs on the *client*
side. Can you give more details on what you are trying to do?

regards
musachy

On 4/10/07, Minerva CC <[EMAIL PROTECTED]> wrote:


Hi,

I tried to pass a Javascript variable to a struts url tag and I did it as
follow:

In the Javascript part:
var id_ = 10;

In the struts tag par:




But, it didn' work. Would somebody tell me how to do it?

Thanks in advance for you help.
Willa





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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: is there a way to disable the html:submit after pressed

2007-04-10 Thread Dave Newton
--- Ashuin Sharma Chamorro wrote:
> I don't want to let the user press the submit button
> more than once?? Is there a property for that, or 
> what can I do?

Struts 1?

You can use the valid token stuff built in to Struts
and/or you can use JavaScript to remove/disable/etc.
the button. I don't know if there's a way to do that
without the JavaScript (it's like a one-line function
anyway).

d.



 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

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



Re: what version of struts is better?

2007-04-10 Thread Martin Gainty

Good Afternoon Andrew --

Struts2 introduces the concept of Interceptors allowing you to configure n 
number pre methods and n number post methods before and after an Action
so in one situation you might have an Action such as 
PrimaryInvestigatorDocumentUpload so you may desire the ability to perform 
the following scenarios
say your Investigator just completed a double blind study and found a false 
positive..a vital piece of information you want to introduce into the study

http://struts.apache.org/2.0.6/docs/interceptors.html

Since your design is focused on DocumentUpload you could pre-define events 
which happen before DocumentUpload and define events which happen afterward

Here is the chronology

1)PreDocumentUpload Double submit
2)DocumentUpload..upload the document to the user-defined location
3)Now that the Action has been completed and results are rendered you *may* 
want to path the PI to edit the document you have just uploaded


whats more if you have a predefined set of events that always happen before 
an Action you could configure an Event Stack or suite of interceptors to 
happen

before or after an Action

Yours in Health/
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: "Frank Russo" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Tuesday, April 10, 2007 4:50 PM
Subject: RE: what version of struts is better?


Not to show any disrespect, but if you are starting a new project with a 
clean slate, I'd seriously look at JSF/Facelets if I were you.


Both frameworks have their pros/cons, but I think JSF's pros well outweigh 
the cons. Plus, if you are going to take the time and learn a new framework, 
which if you haven't worked with Struts2 or WebWorks that is what you are 
doing, then you may want to weigh your options with JSF. I would highly 
recommend, though, that if you do consider it, Facelets, and not JSP's are 
the way to go.


Just my 2 cents...

-Original Message-
From: Love, Andrew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 4:43 PM
To: Struts Users Mailing List
Subject: RE: what version of struts is better?

Hello,

I have a great deal of experience developing web based applications.  I have 
used home-grown frameworks and several commercial frameworks.


I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.

The original version of STRUTS has a great deal of books and documentation 
available.  STRUTS2 does not have much in the market yet.  However, STRUTS2 
is based on WEBWORK so you should be able to find enough information for 
your term paper.


Best Regards,

Andrew Love
Chief Software Architect, Strategic Initiatives

McKesson Corporation
McKesson Pharmacy Systems
mailto:[EMAIL PROTECTED]


-Original Message-
From: dire [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 2:30 PM
To: user@struts.apache.org
Subject: what version of struts is better?


sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell me,
please, where i can found answer for my question.

thanx for your attention!
--
View this message in context:
http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925
553
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]


-
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]



is there a way to disable the html:submit after pressed

2007-04-10 Thread Ashuin Sharma Chamorro
I don't want to let the user press the submit button more than once?? Is
there a property for that, or what can I do?

If there is no javascript involved the better.

 

Thanks.

 

Ashuin Sharma
Software Developer
Isthmus Inc.
The Costa Rica IT Outsourcing Company 
www.isthmusit.com http://www.isthmusit.com/>  
[EMAIL PROTECTED] 
Office +1 (506) 560-1600
Mobile +1 (506) 817-4059
Fax  +1 (506) 560-1610
San Jose, Costa Rica 

The information contained in this e-mail is privileged and confidential,
this information is intended only for the use of the individual or
entity to which it is addressed. If you are not the intended recipient,
you are hereby notified that any use, dissemination, distribution, copy
or taking action in reliance upon this email is strictly prohibited. If
you have received this e-mail in error, please immediately notify the
sender and then delete this e-mail in its entirety.


 



Re: what version of struts is better?

2007-04-10 Thread Chris Pratt

Frank, what is it about JSF that you find superior to Struts 2?  We are
internally in a debate on which way to go (JSF v Struts 2) and I'd like to
hear your opinion.
 (*Chris*)

On 4/10/07, Frank Russo <[EMAIL PROTECTED]> wrote:


Not to show any disrespect, but if you are starting a new project with a
clean slate, I'd seriously look at JSF/Facelets if I were you.

Both frameworks have their pros/cons, but I think JSF's pros well outweigh
the cons. Plus, if you are going to take the time and learn a new framework,
which if you haven't worked with Struts2 or WebWorks that is what you are
doing, then you may want to weigh your options with JSF. I would highly
recommend, though, that if you do consider it, Facelets, and not JSP's are
the way to go.

Just my 2 cents...

-Original Message-
From: Love, Andrew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 4:43 PM
To: Struts Users Mailing List
Subject: RE: what version of struts is better?

Hello,

I have a great deal of experience developing web based applications.  I
have used home-grown frameworks and several commercial frameworks.

I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.

The original version of STRUTS has a great deal of books and documentation
available.  STRUTS2 does not have much in the market yet.  However, STRUTS2
is based on WEBWORK so you should be able to find enough information for
your term paper.

Best Regards,

Andrew Love
Chief Software Architect, Strategic Initiatives

McKesson Corporation
McKesson Pharmacy Systems
mailto:[EMAIL PROTECTED]


-Original Message-
From: dire [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 2:30 PM
To: user@struts.apache.org
Subject: what version of struts is better?


sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a
deal
with it. in http://struts.apache.org/ i saw that struts had two versions.
i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell
me,
please, where i can found answer for my question.

thanx for your attention!
--
View this message in context:

http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925
553
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]


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




RE: what version of struts is better?

2007-04-10 Thread Frank Russo
Not to show any disrespect, but if you are starting a new project with a clean 
slate, I'd seriously look at JSF/Facelets if I were you. 

Both frameworks have their pros/cons, but I think JSF's pros well outweigh the 
cons. Plus, if you are going to take the time and learn a new framework, which 
if you haven't worked with Struts2 or WebWorks that is what you are doing, then 
you may want to weigh your options with JSF. I would highly recommend, though, 
that if you do consider it, Facelets, and not JSP's are the way to go. 

Just my 2 cents... 

-Original Message-
From: Love, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 4:43 PM
To: Struts Users Mailing List
Subject: RE: what version of struts is better?

Hello,

I have a great deal of experience developing web based applications.  I have 
used home-grown frameworks and several commercial frameworks. 

I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.  

The original version of STRUTS has a great deal of books and documentation 
available.  STRUTS2 does not have much in the market yet.  However, STRUTS2 is 
based on WEBWORK so you should be able to find enough information for your term 
paper. 

Best Regards, 

Andrew Love
Chief Software Architect, Strategic Initiatives 
 
McKesson Corporation
McKesson Pharmacy Systems
mailto:[EMAIL PROTECTED]


-Original Message-
From: dire [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 2:30 PM
To: user@struts.apache.org
Subject: what version of struts is better?


sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell me,
please, where i can found answer for my question.

thanx for your attention!
-- 
View this message in context:
http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925
553
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]


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



RE: what version of struts is better?

2007-04-10 Thread Love, Andrew
Hello,

I have a great deal of experience developing web based applications.  I have
used home-grown frameworks and several commercial frameworks. 

I am new to STRUTS2, but my initial impression is that STRUTS2 kicks-butt.
Form validation and action/navigation management is extremely intuitive.  

The original version of STRUTS has a great deal of books and documentation
available.  STRUTS2 does not have much in the market yet.  However, STRUTS2
is based on WEBWORK so you should be able to find enough information for
your term paper. 

Best Regards, 

Andrew Love
Chief Software Architect, Strategic Initiatives 
 
McKesson Corporation
McKesson Pharmacy Systems
mailto:[EMAIL PROTECTED]


-Original Message-
From: dire [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 10, 2007 2:30 PM
To: user@struts.apache.org
Subject: what version of struts is better?


sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell me,
please, where i can found answer for my question.

thanx for your attention!
-- 
View this message in context:
http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925
553
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]



Date Binding

2007-04-10 Thread Minerva CC
Hi,
 
I have another simple question here.
 
I want to setup jsp pages to update a List, e.g. searchParameters 
 
In my Action class I have:
 
public class SearchParameterAction implements Preparable {
private SearchParameterService service;
private List searchParameters;
 
In the main.jsp page:
 





Refresh



 
In the list.jsp:
 
<%@ taglib prefix="s" uri="/struts-tags"%>
Search Parameters 



">










Remove
 



 
Now, I want to change some values in the text fields and update the database 
afterward. The questions are:
 
1. Is my object searchParameters actually bound to the text fields? If it 
isn't, how to do the data binding?
 
2. When I issue a update action, how can I access the searchParameters object 
in the Action class? In Struts 1, one can access it via requst.getParameter() 
method. What should I do in the Struts 2?
 
 Thanks in advance for your help,
Willa


   

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

[JAVA] Iterate a collection and modify

2007-04-10 Thread temp temp
How can I  iterate  a collection  and modify at the same time ?
  Example
  public static Collection  getAncestors(
  Entity aEntity, Object aContext ){
 Collection vAncestors=new ArrayList();
  IDocument vDocument= findDocumentByName(
  aEntity.getSuper(),  aContext);
 vAncestors.add(vDocument);
  for(
  Iterator  i=vAncestors.iterator();
  i.hasNext(); 
  ){
  getAncestors(vAncestors,  
  (IDocument)i.next(), aContext);
  } 
  return vAncestors;
  }

   public static void  getAncestors(
   Collection aAncestors, 
   IDocument   aDocument , 
   Object aContext){
 Entity  vEntity=(Entity)aDocument.get();
 if(vEntity.getSuper()!=null){
   IDocument vDocument=findDocumentByName(
  vEntity.getSuper(),  
  aContext);
   aAncestors.add(vDocument);
  } 
  }
   Thanks 
  Miro

   
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

How to pass a Javascript variable to Struts parameter?

2007-04-10 Thread Minerva CC
Hi,

I tried to pass a Javascript variable to a struts url tag and I did it as 
follow:

In the Javascript part:
var id_ = 10;

In the struts tag par:




But, it didn' work. Would somebody tell me how to do it?

Thanks in advance for you help.
Willa


   

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

Re: what version of struts is better?

2007-04-10 Thread Harring Figueiredo

Struts 2 is the way to go, IMHO.

On 4/10/07, Piero Sartini <[EMAIL PROTECTED]> wrote:


for new projects where you have the choice what to use, I suggest struts2.

On Tuesday 10 April 2007 20:30:21 dire wrote:
> sorry for my English!
>
> in my term paper i want to use Struts. Before this time i don`t have a
deal
> with it. in http://struts.apache.org/ i saw that struts had two
versions. i
> try to found what version is preferable, but can`t...
>
> Can anybody says how many differencies bitween them? Or, at least, tell
me,
> please, where i can found answer for my question.
>
> thanx for your attention!

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





--
Sincerely,

Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600

"We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided."


[S2] Adding Calendar function to a form.

2007-04-10 Thread Skip Hollowell
I tried the s:datetimepicker to work on things, but since I am not using 
AJAX, I believe that is a dead end, no?  There'd be no point in bringing 
in the ajax theme if I wasn't using AJAX.


So how do I incorporate a standard js calendar routine into a field on 
my form?


What I want to add:
src="images/cal.gif" width="16" height="16" border="0" alt="Pick a 
date">


Where I want to add it:


I am just missing the concept here on how to plug custom code into the 
s: tags.  I am trying very hard not to hack this thing to bits with 
tricks and cheats.


Skip Hollowell



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



Re: what version of struts is better?

2007-04-10 Thread Piero Sartini
for new projects where you have the choice what to use, I suggest struts2. 

On Tuesday 10 April 2007 20:30:21 dire wrote:
> sorry for my English!
>
> in my term paper i want to use Struts. Before this time i don`t have a deal
> with it. in http://struts.apache.org/ i saw that struts had two versions. i
> try to found what version is preferable, but can`t...
>
> Can anybody says how many differencies bitween them? Or, at least, tell me,
> please, where i can found answer for my question.
>
> thanx for your attention!

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



what version of struts is better?

2007-04-10 Thread dire

sorry for my English!

in my term paper i want to use Struts. Before this time i don`t have a deal
with it. in http://struts.apache.org/ i saw that struts had two versions. i
try to found what version is preferable, but can`t...

Can anybody says how many differencies bitween them? Or, at least, tell me,
please, where i can found answer for my question.

thanx for your attention!
-- 
View this message in context: 
http://www.nabble.com/what-version-of-struts-is-better--tf3554740.html#a9925553
Sent from the Struts - User mailing list archive at Nabble.com.


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



Cannot find bean in any scope

2007-04-10 Thread Slattery, Tim - BLS
I'm trying to get a Struts 1.1 (or...maybe 1.2) app to run under
Weblogic 9.0. It's been running happily under WL 8.

WL 9 supports J2EE 2.4, so I replaced the top line in web.xml with:

http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
 version="2.4">

And I surrounded the  tags with a  tag. The app
deploys with no errors (which is not true of every app I try to deploy,
but that's another story).

SO...when I run this app, the first servlet is invoked. A session is
created, a bean named "model" is created and initialized, and this
statement is executed:

session.setAttribute("Contact", model);

So now there's a session attribute named "Contact" which holds this
bean. Had something gone haywire in this small module, a "catch" clause
would have been invoked that would have dumped something drastic on my
log. There's a line on the log saying that this sevlet was run, but
nothing drastic appeared there.

Anyway, the servlet then invokes a JSP page (via mapping.findForward).
That page contains this tag:


  Update Respondent Information

But I get this message: 
   
<[weblogic.servlet.int
[EMAIL PROTECTED] - appName: 'CES', name: 'CES',
context-path:
'/CES'] Root cause of ServletException.
javax.servlet.jsp.JspException: Cannot find bean Contact in any scope

So why in the world can't it find the "Contact" session attribute?


--
Tim Slattery
[EMAIL PROTECTED]



Re: How to submit multiple selection?

2007-04-10 Thread tobinibot

Allow me to answer my own question, before somebody tells me how stupid I am. 
I think the problem was my action wasn't set up correctly.  The following
snippets of jsp and java give me an array (xxx) containing the values that
were checked on the page.  In production, these fieldValues attributes would
obviously have user ids in them, rather than the hard-coded numbers like in
this example.










-

private int[] xxx;

@Override
public String execute() throws Exception {
return SUCCESS;
}

public int[] getXxx() {
return xxx;
}

public void setXxx(int[] xxx) {
this.xxx = xxx;
}


tobinibot wrote:
> 
> If I may tag on a question here
> 
> In your action then, how do you capture all 7 (for example) user id's that
> the admin wants to delete?  I have a very similar design, I have a list of
> users, and each user has a checkbox.  The admin can select multiple users
> to either activate or deactivate.
> 
> In my action then, ideally, all I want back from the page is an array (or
> some sort of collection) of each of the user id's.  I haven't been able to
> get any form of this working yet.  Any tips?
> 
> (this is using Struts 2)
> 
> Tobin
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-submit-multiple-selection--tf3401936.html#a9924729
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: Values exposed to OGNL Implicit vs. Explicit

2007-04-10 Thread Ted Husted

On 4/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Let's face it... this is confusing!  I understand the interplay with
dependency injection and how the Action interfaces fills this contract.  Not
real sure about ModelDriven however (or is it ScopedModelDriven).  I also
realize the infamous OGNL has values pushed/popped on a stack and there are
a variety of ways to access them in other places.  What we need is a clear
example that is more involved than Person.java to realize how all the parts
interrelate.


Towards the end of creating a bigger example, I setup a Petstore site
on Google Code, with the hope of extending the Spring MVC/Struts 1
example with a S2 example too.

* http://code.google.com/p/sq1-petstore/

Though, I'll probably do a YUI example first. If someone wants to work
on an a S2 Petstore, that would be great.



 If you look at the Struts 2 + Spring 2 + JPA + AJAX
you will
discover even this *fresh* example does not illustrate the S2 way of
minimizing configuration via Struts-style wildcards.  It's just bits and
parts -- and what the heck was the TopLink stuff?

Developers are pulling ideas from this half-documented site and pushing code
into their SCM.  I honestly think for S2 to be successful, we need a better
staring point as an example.  Many of the online samples return 404 when
clicked.  What we currently have is not representative of an enterprise
web-site.  Too trivial or too complex is too bad.  I would happily publish
my S2 web app as a demonstration once I am certain it utilizes the *correct*
S2 techniques and not just something I was able to get working.


You'd probably have to do it the other way around. Set it up on Google
Code or someplace first, and then ask for feedback.



Another thing is the subject line for these messages!  The answer to your
problem might be in this message or that, but you'll skip it because the
subject does not sound correlated to your issue.  I can hear it now –
"everyone save the messages and search your archives."

I want S2 to succeed as badly as those of you on this message group,
however, the hit-and-miss approach of coding, reading about a better
technique, refactoring, then coding it again is numbing.  We need a concise
and unified blueprint "that remains in lock-step with the prevailing S2
version" before building the web app!


Thanks for volunteering!



If this is expected to compete with
the challengers, this needs to be completed soon.  I have a buddy doing RoR.
If what he is telling me about the ease of development is even 10% fact, it
won't be long before S2 is SYesterday.  10% is a wonderful Rate-of-Return


I don't think anyone here is jealous of RoR. If my team wanted to use
it, I wouldn't hesitate. I expect most of the other Struts committers
feel the same way. I know other committers use RoR from time to time
too. It's not an election of remedies. I don't think any of us will
ever see the day when there is one web application framework, or, for
that matter, one web platform.

-Ted.

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



Array of Bean and optionsCollection (revisted)

2007-04-10 Thread Marcello Savino

Hi all, i've the following problem using the tag  












myBean Class:

public class myBean implements java.io.Serializable{
private Integer code;
private String descr;

public Integer getCode(){return code;}
public String getDescr(){return descr;}

public void setCode(Integer val){ code=val;}
public void setDescr(String val){ descr=val;} }

 _

When i open the jsp i got the following Error:
org.apache.jasper.JasperException: No bean specified

Could anyone help me?
Any help will be greatly appreciated.
Thanks in advance
Marcello

-
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]



Override controller nocache=true

2007-04-10 Thread Greg Dunn
I have the  set in struts-config, but I
have a certain page that streams a PDF file where I need to allow
caching to accommodate IE users.  Is it possible to override the setting
for an individual page?  Maybe by setting the headers for the page
itself to allow caching?

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



Re: Values exposed to OGNL Implicit vs. Explicit

2007-04-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> [...] the preferred technique to access them?  
> S2 or JSTL tag?

"Preferred" is a matter of taste; I don't have any
issues accessing the attributes or OGNL stack via JSP
2.0 EL syntax (instead of , just
because ${} is so much more concise), but there was
already one thread where someone disagreed with me and
said they preferred to use the S2 tags so metaphors
weren't being mixed, which is a valid concern.

I suppose there's a minor penalty performace for
accessing OGNL via JSTL since there's one level of
indirection (StrutsRequestWrapper (?)).

>  What is the appropriate access syntax?
> Does OGNL overlap the familiar Servlet objects?

I'm not sure what you're asking; OGNL puts the maps
for the "normal" servlet spec attributes and
parameters on the stack. I don't know if I'd call that
"overlap" or not.

What is lacking from the following links? Someone will
be happy to update and/or enhance them (as has been
happening as the result of recent threads).

http://struts.apache.org/2.x/docs/ognl.html
http://struts.apache.org/2.x/docs/ognl-basics.html

> "Look mom my action is a simple POJO!  However, if
> you choose to go the vanilla interface route you
give 
> up many things inherited from ActionSupport.  I
started 
> off using POJO Actions and quickly found myself
> painted in a corner.  Beyond the trivial case, you
> discover this won't work!

We might just be discussing definitions here, but...
ActionSupport is basically a collection of the most
useful S2 interface implementations. It's still a
POJO. I agree, not using ActionSupport creates a lot
of work. That's why it's there; I generally extend it
by default, since I'm using validation and I18N.

The point of saying "It's a POJO" isn't that there's
no functionality, it's that it's almost completely
decoupled from anything other than simple Java types.
Compare to S1 Action, which is tied to servlet and S1.
(The Locale stuff that takes ValueStacks being the
notable exceptions. Not sure what to think about that;
still pondering.)

> Also, I am reading many threads where folks are
> confused by not having the typical S1 objects 
> (req, resp, form,session) available in their Action
> classes and how they need to use the S2 "aware"
> interfaces.  But wait, next I read how the
interfaces 
> are not *really* needed because you can always
> grab these objects from the big fat ActionContext.

To me this isn't really a question: implementing an
interface is almost *always* a better choice than
tying implementation to a specific class
(ActionContext). But this doesn't (seem) to apply to
Actions--ActionContext is (primarily, at least?) for
Interceptors.

> Not real sure about ModelDriven however (or is it
> ScopedModelDriven).

There's both.

> discover even this *fresh* example does not
> illustrate the S2 way of minimizing configuration 
> via Struts-style wildcards.

I'm not entirely I'd call wildcarding the "S2 Way";
it's certainly *a* way, and maybe even a good way.

> [...] and what the heck was the TopLink stuff?

TopLink is TopLink; not everybody uses Hibernate. It's
the least-important part of that page.

> Developers are pulling ideas from this
> half-documented site and pushing code
> into their SCM.  I honestly think for S2 to be
> successful, we need a better
> staring point as an example.  Many of the online
> samples return 404 when
> clicked.  What we currently have is not
> representative of an enterprise
> web-site.  Too trivial or too complex is too bad.  I
> would happily publish
> my S2 web app as a demonstration once I am certain
> it utilizes the *correct*
> S2 techniques and not just something I was able to
> get working.
> 
> Another thing is the subject line for these
> messages!  The answer to your
> problem might be in this message or that, but you'll
> skip it because the
> subject does not sound correlated to your issue.  I
> can hear it now –
> "everyone save the messages and search your
> archives."
> 
> I want S2 to succeed as badly as those of you on
> this message group, however, the hit-and-miss
approach 
> of coding, reading about a better technique,
refactoring,
> then coding it again is numbing.  

What do you normally do?!

> We need a concise

I wouldn't know how to create "concise" documentation
for
writing a Java-based, full-stack web-app. It's
complicated.

> I have a buddy doing RoR. If what he is telling me
about 
> the ease of development is even 10% fact, it won't
be 
> long before S2 is SYesterday.  10% is a wonderful 
> Rate-of-Return

There are a lot of application spaces where RoR falls
completely flat. As long as what you are doing is
supported by default Rails, you're fine. As soon as
you fall out of lock-step, it's a nightmare. I do
quite like fronting EE apps w/ it, though. Not
approriate for a lot of environments, though.

I've been developing w/ RoR for... two years now (and
Ruby for 4-ish)? I'm still using both JEE and RoR and
don't see *any* possible way that will change in t

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso

No, the comma should not be a problem. I can't debug it right now, I will
late you know later. In the meantime creating a Jira ticket would ensure I
don't forget it :)

musachy

On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:



Yes, the JSON looks good.  For the 3, 4, backspace 3
it returns the identical data:

[
["NCAA BKBL ATLANTIC 10 CONF-EAST"],
["NCAA BKBL ATLANTIC COAST CONF"],
["NCAA BKBL BIG 10 CONF"],
["NCAA BKBL BIG 12 CONF"],
["NCAA BKBL BIG EAST CONF"],
["NCAA BKBL BIG SKY CONF"],
]

That trailing comma is not a problem, is it? (It is
there in the working and nonworking lookups.)

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> Looks right, and is it returning data for all of
> them?
>
> musachy
>
> On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > Well, because loadMinimumCount is set to 2 it does
> not
> > fire with one char.  Here are the requests for
> strings
> > of length 2, 3, 4, then backspace to 3 from
> fiddler.
> >
> > GET /enames2/html/LookupOrgs.action?org=nc
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=nca
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=ncaa
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=nca
> HTTP/1.1
> >
> > Thanks,
> >
> > Scott
> >
> > --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> >
> > > Can you post the url that its using for 1,2,3,4
> > > characters? You can use
> > > FireBug for that, they should be something like
> > >
> > > http://../LookupOrgs.action?org=ab
> > > http://../LookupOrgs.action?org=abc
> > >
> > > ...
> > >
> > > regards
> > > musachy
> > >
> > > On 4/10/07, Scott Nesbitt
> <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > >
> > > > I am using the autocompleter tag like this:
> > > >
> > > > action="LookupOrgs"/>
> > > >
> > > >   > > >   id="org"
> > > >   keyName="orgKey"
> > > >   theme="ajax"
> > > >   href="%{#autoorgs}"
> > > >   cssStyle="width:
> 450px;"
> > > >
> dropdownHeight="170";
> > > >   loadMinimumCount="2"
> > > >
> loadOnTextChange="true"
> > > >   autoComplete="false"
> > > >
> showDownArrow="false"
> > > >
> searchType="substring"
> > > >
> > > forceValidOption="true"/>
> > > >
> > > > When I type a two-char string in the text box
> it
> > > works
> > > > fine: six items in the dropdown.  However,
> when I
> > > add
> > > > another char there is nothing in the dropdown.
> > > When I
> > > > add a fourth char I get six items again.  When
> I
> > > > backspace to three chars, I see six items in
> the
> > > > dropdown.
> > > >
> > > > Using fiddler I verified the same JSON is
> getting
> > > sent
> > > > for both ways to get a three char string.
> > > >
> > > > Is this a known bug in the autocompleter?  I
> am
> > > using
> > > > struts-2.0.6.
> > > >
> > > > Thanks,
> > > >
> > > > Scott
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>


> > > > 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]
> > > >
> > > >
> > >
> > >
> > > --
> > > "Hey you! Would you help me to carry the stone?"
> > > Pink Floyd
> > >
> >
> >
> >
> >
> >
> >
>


> > Don't get soaked.  Take a quick peak at the
> forecast
> > with the Yahoo! Search weather shortcut.
> >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
>






Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


THEMES AND TEMPLATES

2007-04-10 Thread Juan Espinosa

Hi is there any theme repository ??? I want to change my theme, like putting
the field errors in red, in the right of the component (field) who cause the
error...

Regards

Juan Espinosa

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.26/754 - Release Date: 09/04/2007
22:59
 


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



Re: [S2] How to keep a reference to a bean without using a session scope?

2007-04-10 Thread Mark Menard
On 4/10/07 3:00 AM, "Alexis Pigeon" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> My application uses a bean to store a collection of values to display
> in a select input. Since the generation of this collection is
> time-consuming, I set this bean to a session scope, and using the
> following code :
> 
> in jsp:
> <%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>
> 

I wouldn't recommend doing this in the JSP. (see below)
 
> in the Action (implementing Preparable and ServletRequestAware):
> private Vector myCollection;
> public Vector getMyCollection() {
>   return myCollection;
> }
> public void setMyCollection (Vector v) {
>   this.myCollection = v;
> }
> public void prepare() {
>   ...
>   setMyCollection( (Vector)
> request.getSession().getAttribute("myCollection"));
>   
> }

There's a cleaner Struts 2 way of doing this. Take a look at the
org.apache.struts2.interceptor.SessionAware interface. This will make your
action independent of the servlet spec and more easily testable.

Also you ought to put the collection into the session in your action.
Setting it into the session scope in the JSP is in general a bad practice.
The view really should not change the "model" of the running app.
 
> This works perfectly as expected, as long as there is only one
> instance of the application launched at a time in the same browser
> (using Firefox or IE7 tabs for example). In that case, the bean is
> shared between the different instances, which is problematic since its
> content depends on previous data input.

You need a conversation scope. There is no direct support for this in the
Servlet spec, nor in Struts 2 directly. You could take a look at using the
Spring Webflow integration (I don't know the link). You could also take a
look at a simple interceptor I created for this purpose.
(http://www.vitarara.org/cms/node/84) I have since updated that method to
simply be an extension of ModelDriven, if you're interested in the most
recent version let me know.
 
Mark

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



Re: caching and reload

2007-04-10 Thread stanlick

Are you talking about reset in a Struts form?  Make sure the bean is scoped
to request.

On 4/6/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Chris Pat wrote:
> Hello
> Is/how it possible to clear the cache on an action?
> My action works perfectly, however when the user hits reload
> the previous values are repeated.

I'm not sure what cache you're talking about, but isn't this behaviour
as you would expect? If I refresh a page, I expect to see the same
response as I got when I loaded it the first time.

> I have coded a reset with ="" and still it uses the old values.
> What am I missing?  I will trap the null or "" values in the
> action(I know I should do it in validation, but it is a case of
> jgid, grin).  I really need to truly reset the values either fed
> to the action class or somewhere cached by the framework for the
> action class.  tia.

Coded a reset where? I think you need to post some code and
configuration samples to illustrate exactly what you are doing, and
describe in more detail how the resulting behaviour differs from what
you expect.

L.



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





--
Scott
[EMAIL PROTECTED]


Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt

Yes, the JSON looks good.  For the 3, 4, backspace 3
it returns the identical data:

[
["NCAA BKBL ATLANTIC 10 CONF-EAST"],
["NCAA BKBL ATLANTIC COAST CONF"],
["NCAA BKBL BIG 10 CONF"],
["NCAA BKBL BIG 12 CONF"],
["NCAA BKBL BIG EAST CONF"],
["NCAA BKBL BIG SKY CONF"],
]

That trailing comma is not a problem, is it? (It is
there in the working and nonworking lookups.)

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> Looks right, and is it returning data for all of
> them?
> 
> musachy
> 
> On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > Well, because loadMinimumCount is set to 2 it does
> not
> > fire with one char.  Here are the requests for
> strings
> > of length 2, 3, 4, then backspace to 3 from
> fiddler.
> >
> > GET /enames2/html/LookupOrgs.action?org=nc
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=nca
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=ncaa
> HTTP/1.1
> > GET /enames2/html/LookupOrgs.action?org=nca
> HTTP/1.1
> >
> > Thanks,
> >
> > Scott
> >
> > --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> >
> > > Can you post the url that its using for 1,2,3,4
> > > characters? You can use
> > > FireBug for that, they should be something like
> > >
> > > http://../LookupOrgs.action?org=ab
> > > http://../LookupOrgs.action?org=abc
> > >
> > > ...
> > >
> > > regards
> > > musachy
> > >
> > > On 4/10/07, Scott Nesbitt
> <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > >
> > > > I am using the autocompleter tag like this:
> > > >
> > > > action="LookupOrgs"/>
> > > >
> > > >   > > >   id="org"
> > > >   keyName="orgKey"
> > > >   theme="ajax"
> > > >   href="%{#autoorgs}"
> > > >   cssStyle="width:
> 450px;"
> > > >  
> dropdownHeight="170";
> > > >   loadMinimumCount="2"
> > > >  
> loadOnTextChange="true"
> > > >   autoComplete="false"
> > > >  
> showDownArrow="false"
> > > >  
> searchType="substring"
> > > >
> > > forceValidOption="true"/>
> > > >
> > > > When I type a two-char string in the text box
> it
> > > works
> > > > fine: six items in the dropdown.  However,
> when I
> > > add
> > > > another char there is nothing in the dropdown.
> > > When I
> > > > add a fourth char I get six items again.  When
> I
> > > > backspace to three chars, I see six items in
> the
> > > > dropdown.
> > > >
> > > > Using fiddler I verified the same JSON is
> getting
> > > sent
> > > > for both ways to get a three char string.
> > > >
> > > > Is this a known bug in the autocompleter?  I
> am
> > > using
> > > > struts-2.0.6.
> > > >
> > > > Thanks,
> > > >
> > > > Scott
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>

> > > > 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]
> > > >
> > > >
> > >
> > >
> > > --
> > > "Hey you! Would you help me to carry the stone?"
> > > Pink Floyd
> > >
> >
> >
> >
> >
> >
> >
>

> > Don't get soaked.  Take a quick peak at the
> forecast
> > with the Yahoo! Search weather shortcut.
> >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



   

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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



Re: S2 Action Validation

2007-04-10 Thread stanlick

I can't get labelposition or requiredposition to do anything!
top/bottom/right/left/*random* -- I tried them all.

On 4/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- [EMAIL PROTECTED] wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field
> name name in Java source code, but I could
> not find another way to correlate the
> message to the field.

No, I think that's how it works. Technically
you already have the field name in the java
code since you're using a Java object. I'm
not really sure what the alternatices would be.

> is there an easy way to get the messages to
> appear to the right of the field as opposed
> to the top?

There's a "labelposition" parameter but I don't recall
what the options are; I think if you want any "major"
changes you'd have to modify the theme.

A general comment (not directed specifically at you):
my view is that the default themes and templates are
intended to serve as a launching point: they cover
simple use cases, but if your pages have a specific
layout then extension, modification, and/or creation
of existing or new templates is almost certain to be
required.

> And lastly, can I specify the color I would
> like the messages to be.

CSS-ily, "errorMessage" class.

d.






Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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





--
Scott
[EMAIL PROTECTED]


Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso

Looks right, and is it returning data for all of them?

musachy

On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:



Well, because loadMinimumCount is set to 2 it does not
fire with one char.  Here are the requests for strings
of length 2, 3, 4, then backspace to 3 from fiddler.

GET /enames2/html/LookupOrgs.action?org=nc HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=ncaa HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> Can you post the url that its using for 1,2,3,4
> characters? You can use
> FireBug for that, they should be something like
>
> http://../LookupOrgs.action?org=ab
> http://../LookupOrgs.action?org=abc
>
> ...
>
> regards
> musachy
>
> On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I am using the autocompleter tag like this:
> >
> >
> >
> >   >   id="org"
> >   keyName="orgKey"
> >   theme="ajax"
> >   href="%{#autoorgs}"
> >   cssStyle="width: 450px;"
> >   dropdownHeight="170";
> >   loadMinimumCount="2"
> >   loadOnTextChange="true"
> >   autoComplete="false"
> >   showDownArrow="false"
> >   searchType="substring"
> >
> forceValidOption="true"/>
> >
> > When I type a two-char string in the text box it
> works
> > fine: six items in the dropdown.  However, when I
> add
> > another char there is nothing in the dropdown.
> When I
> > add a fourth char I get six items again.  When I
> > backspace to three chars, I see six items in the
> > dropdown.
> >
> > Using fiddler I verified the same JSON is getting
> sent
> > for both ways to get a three char string.
> >
> > Is this a known bug in the autocompleter?  I am
> using
> > struts-2.0.6.
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
> >
> >
>


> > 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]
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
>






Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


S2 Formattion output with S:tags

2007-04-10 Thread Harring Figueiredo

Folks,

I read http://struts.apache.org/2.x/docs/text.html and could not make sense
on how to display currency format with s:tags

I have an iterator, during the iteration, I would like to set the currency
with the correct format.

If I use:

   


It displays correctly, except that the string is not  currency formatted.
(Note: Amount is of type double: I know...don't ask  :-)

I have tried, by the example on the site:





and tried also some bizarre syntax to no avail.


Thank you for any input.
hff


Re: Somewhat OT: Forward to JSP in JAR file

2007-04-10 Thread Musachy Barroso

The thing is that with current plugins you can add stuff to the framework,
but I want a way to plugin stuff into my application, not the framework
alone, ala eclipse. So I could plugin actions, with their jsps or whathever
they use, and have extension points in my application that get extended by
the plugins, my first shot was OSGi, but I quited before committing suicide
:)

musachy

On 4/10/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


Sounds cool Musachy!  I could see that being a useful thing for sure.

Thanks Laurie, that's what I was thinking was the case... I'd need to do
it in a compliant way, so I'll have to go with my backup plan instead.
Thanks guys.

Frank

Musachy Barroso wrote:
> I'm working on an Struts plugin to try to work around (more like hack
> around)  that and other fun stuff :)
>
> musachy
>
> On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>>
>> Frank W. Zammetti wrote:
>> > Quick question... can anyone tell me if it's possible to forward to a
>> > JSP that is stored in a JAR file (i.e., in a JAR located in
>> > WEB-INF/lib), and if so, how?  I couldn't find a quick answer on the
>> > first few pages of Googling, figured someone here would probably know
>> > off the top of their heads.  Thanks!
>>
>> Not in any standard way, no. There may be container-specific solutions,
>> but you'd be working outside the spec.
>>
>> L.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: How to submit multiple selection?

2007-04-10 Thread tobinibot

If I may tag on a question here

In your action then, how do you capture all 7 (for example) user id's that
the admin wants to delete?  I have a very similar design, I have a list of
users, and each user has a checkbox.  The admin can select multiple users to
either activate or deactivate.

In my action then, ideally, all I want back from the page is an array (or
some sort of collection) of each of the user id's.  I haven't been able to
get any form of this working yet.  Any tips?

(this is using Struts 2)

Tobin



Dave Newton-4 wrote:
> 
> --- xushaoxun <[EMAIL PROTECTED]> wrote:
>> I am using struts2, and I've been thinking for this
>> questing for days. [s:checkbox] seems won't work. 
>> Because it only renders boolean value.
> 
> Try using the fieldValue attribute of 
> 
> For example, if I use:
> 
>  fieldValue="%{user.id}"/>
> 
> it renders as:
> 
> name="user.id" 
>value="42" 
>checked="checked" 
>id="confirmTest_user_id"/>
> name="__checkbox_user.id" 
>value="42"/>
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-submit-multiple-selection--tf3401936.html#a9922117
Sent from the Struts - User mailing list archive at Nabble.com.


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



Values exposed to OGNL Implicit vs. Explicit

2007-04-10 Thread stanlick

Can someone point to a nice explanation (preferably a graphic) that explains
how values are exposed to the OGNL by the S2 framework *and* the preferred
technique to access them?  S2 or JSTL tag?  What is the appropriate access
syntax?  I realize OGNL is a stand-alone facility, but it appears to be
tightly interlaced with S2.  Does OGNL overlap the familiar Servlet objects?
 I read the new tutorial Struts 2 + Spring 2 + JPA +
AJAXand
"Look mom my action is a simple POJO!  However, if you choose to go
the
vanilla interface route you give up many things inherited from
ActionSupport.  I started off using POJO Actions and quickly found myself
painted in a corner.  Beyond the trivial case, you discover this won't work!


Also, I am reading many threads where folks are confused by not having the
typical S1 objects (req, resp, form,session) available in their Action
classes and how they need to use the S2 "aware" interfaces.  But wait, next
I read how the interfaces are not *really* needed because you can always
grab these objects from the big fat ActionContext.

Let's face it... this is confusing!  I understand the interplay with
dependency injection and how the Action interfaces fills this contract.  Not
real sure about ModelDriven however (or is it ScopedModelDriven).  I also
realize the infamous OGNL has values pushed/popped on a stack and there are
a variety of ways to access them in other places.  What we need is a clear
example that is more involved than Person.java to realize how all the parts
interrelate.  If you look at the Struts 2 + Spring 2 + JPA + AJAX
you will
discover even this *fresh* example does not illustrate the S2 way of
minimizing configuration via Struts-style wildcards.  It's just bits and
parts -- and what the heck was the TopLink stuff?

Developers are pulling ideas from this half-documented site and pushing code
into their SCM.  I honestly think for S2 to be successful, we need a better
staring point as an example.  Many of the online samples return 404 when
clicked.  What we currently have is not representative of an enterprise
web-site.  Too trivial or too complex is too bad.  I would happily publish
my S2 web app as a demonstration once I am certain it utilizes the *correct*
S2 techniques and not just something I was able to get working.

Another thing is the subject line for these messages!  The answer to your
problem might be in this message or that, but you'll skip it because the
subject does not sound correlated to your issue.  I can hear it now –
"everyone save the messages and search your archives."

I want S2 to succeed as badly as those of you on this message group,
however, the hit-and-miss approach of coding, reading about a better
technique, refactoring, then coding it again is numbing.  We need a concise
and unified blueprint "that remains in lock-step with the prevailing S2
version" before building the web app!  If this is expected to compete with
the challengers, this needs to be completed soon.  I have a buddy doing RoR.
If what he is telling me about the ease of development is even 10% fact, it
won't be long before S2 is SYesterday.  10% is a wonderful Rate-of-Return

Wow, and I was simply looking to clarify OGNL.


--
Scott
[EMAIL PROTECTED]


Re: Struts 2 Jasper Reports Plugin

2007-04-10 Thread Patrick J Kobly

You probably want st like:



The problem is that the servlet request is set by an interceptor 
(servlet-config) that is in the default stack defined in 
struts-default.  The jasperreports-default package does not define any 
interceptor stacks, and does not extend any other packages.


PK

ChristopherAngel wrote:

Apparently using HttpServletRequest request =
ServletActionContext.getRequest();

So why is the setServletRequest method not called?


ChristopherAngel wrote:
  

I have the following package defined in my struts.xml file:


  
method="generateReport">

  reports/report.jasper

  dataSource

  


the generateReport method is called as expected except despite
ReportAction implementing ServletRequestAware the setServletRequest method
is never called.  


How can I get access to the HttpServletRequest object from within the
generateReport method?






  



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



Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt

Well, because loadMinimumCount is set to 2 it does not
fire with one char.  Here are the requests for strings
of length 2, 3, 4, then backspace to 3 from fiddler.

GET /enames2/html/LookupOrgs.action?org=nc HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=ncaa HTTP/1.1
GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> Can you post the url that its using for 1,2,3,4
> characters? You can use
> FireBug for that, they should be something like
> 
> http://../LookupOrgs.action?org=ab
> http://../LookupOrgs.action?org=abc
> 
> ...
> 
> regards
> musachy
> 
> On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > I am using the autocompleter tag like this:
> >
> >
> >
> >   >   id="org"
> >   keyName="orgKey"
> >   theme="ajax"
> >   href="%{#autoorgs}"
> >   cssStyle="width: 450px;"
> >   dropdownHeight="170";
> >   loadMinimumCount="2"
> >   loadOnTextChange="true"
> >   autoComplete="false"
> >   showDownArrow="false"
> >   searchType="substring"
> >  
> forceValidOption="true"/>
> >
> > When I type a two-char string in the text box it
> works
> > fine: six items in the dropdown.  However, when I
> add
> > another char there is nothing in the dropdown. 
> When I
> > add a fourth char I get six items again.  When I
> > backspace to three chars, I see six items in the
> > dropdown.
> >
> > Using fiddler I verified the same JSON is getting
> sent
> > for both ways to get a three char string.
> >
> > Is this a known bug in the autocompleter?  I am
> using
> > struts-2.0.6.
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
> >
> >
>

> > 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]
> >
> >
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



   

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt

I am using the autocompleter tag like this:

   

 

When I type a two-char string in the text box it works
fine: six items in the dropdown.  However, when I add
another char there is nothing in the dropdown.  When I
add a fourth char I get six items again.  When I
backspace to three chars, I see six items in the
dropdown.

Using fiddler I verified the same JSON is getting sent
for both ways to get a three char string.

Is this a known bug in the autocompleter?  I am using
struts-2.0.6.

Thanks,

Scott


   

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]



Re: Somewhat OT: Forward to JSP in JAR file

2007-04-10 Thread Frank W. Zammetti

Sounds cool Musachy!  I could see that being a useful thing for sure.

Thanks Laurie, that's what I was thinking was the case... I'd need to do 
it in a compliant way, so I'll have to go with my backup plan instead. 
Thanks guys.


Frank

Musachy Barroso wrote:

I'm working on an Struts plugin to try to work around (more like hack
around)  that and other fun stuff :)

musachy

On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Frank W. Zammetti wrote:
> Quick question... can anyone tell me if it's possible to forward to a
> JSP that is stored in a JAR file (i.e., in a JAR located in
> WEB-INF/lib), and if so, how?  I couldn't find a quick answer on the
> first few pages of Googling, figured someone here would probably know
> off the top of their heads.  Thanks!

Not in any standard way, no. There may be container-specific solutions,
but you'd be working outside the spec.

L.


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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



Aray of Bean and optionsCollection

2007-04-10 Thread Marcello Savino
Hi all, i've the following problem using the tag 
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>











myBean Class:

public class myBean implements java.io.Serializable{
private Integer code;
private String descr;

public Integer getCode(){return code;}
public String getDescr(){return descr;}

public void setCode(Integer val){ code=val;}
public void setDescr(String val){ descr=val;}
}
_

When i open the jsp i got the following Error:
org.apache.jasper.JasperException: No bean specified

Could anyone help me?
Any help will be greatly appreciated.
Thanks in advance
Marcello

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



Re: S2: Autocompleter strange behavior

2007-04-10 Thread Musachy Barroso

Can you post the url that its using for 1,2,3,4 characters? You can use
FireBug for that, they should be something like

http://../LookupOrgs.action?org=ab
http://../LookupOrgs.action?org=abc

...

regards
musachy

On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:



I am using the autocompleter tag like this:

   

 

When I type a two-char string in the text box it works
fine: six items in the dropdown.  However, when I add
another char there is nothing in the dropdown.  When I
add a fourth char I get six items again.  When I
backspace to three chars, I see six items in the
dropdown.

Using fiddler I verified the same JSON is getting sent
for both ways to get a three char string.

Is this a known bug in the autocompleter?  I am using
struts-2.0.6.

Thanks,

Scott





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]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: S2 Action Validation

2007-04-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> addFieldError("course.text"...
> I really do not like placing a jsp field 
> name name in Java source code, but I could 
> not find another way to correlate the
> message to the field.

No, I think that's how it works. Technically
you already have the field name in the java
code since you're using a Java object. I'm
not really sure what the alternatices would be.

> is there an easy way to get the messages to 
> appear to the right of the field as opposed 
> to the top?

There's a "labelposition" parameter but I don't recall
what the options are; I think if you want any "major"
changes you'd have to modify the theme.

A general comment (not directed specifically at you):
my view is that the default themes and templates are
intended to serve as a launching point: they cover
simple use cases, but if your pages have a specific
layout then extension, modification, and/or creation
of existing or new templates is almost certain to be
required.

> And lastly, can I specify the color I would 
> like the messages to be.

CSS-ily, "errorMessage" class.

d.



   

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

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



Re: S2 Action Validation

2007-04-10 Thread stanlick

How will S2 know which field the message is associated with?  I was able to
get this to work last night, but I would like to get your feedback as to
whether or not it was an end around solution:

   addFieldError("course.text", getText("label.duplicate"));

I really do not like placing a jsp field name name in Java source code, but
I could not find another way to correlate the message to the field.

Also, is there an easy way (interpreted as not needing to change Freemarker
code) to get the messages to appear to the right of the field as opposed to
the top?  And lastly, can I specify the color I would like the messages to
be.

Thanks,
Scott

On 4/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- [EMAIL PROTECTED] wrote:
> Beyond this, how do I get an S2 action class to
> display a message on the web page?

See


http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String)

It takes a String, I18N provided by ActionSupport's
standard getText method.

To display on a JSP page:

http://struts.apache.org/2.x/docs/actionmessage.html

> Also, is there a way to search through the messages
> from this forum?

Search via your email client, search one of the
archives (see below), or keep a knowledge base
containing only the important bits and tag it however
your system allows (this is the best solution for
several reasons).

> Does this not work like a NewsGroup?

Nope, it works like a mailing list. There are some
archives available; see:

http://struts.apache.org/mail.html

d.






We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265

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





--
Scott
[EMAIL PROTECTED]


Re: Somewhat OT: Forward to JSP in JAR file

2007-04-10 Thread Leon Rosenberg

resin does, tomcat doesnt.
:-)
Leon

On 4/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:

I'm working on an Struts plugin to try to work around (more like hack
around)  that and other fun stuff :)

musachy

On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> Frank W. Zammetti wrote:
> > Quick question... can anyone tell me if it's possible to forward to a
> > JSP that is stored in a JAR file (i.e., in a JAR located in
> > WEB-INF/lib), and if so, how?  I couldn't find a quick answer on the
> > first few pages of Googling, figured someone here would probably know
> > off the top of their heads.  Thanks!
>
> Not in any standard way, no. There may be container-specific solutions,
> but you'd be working outside the spec.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd



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



Re: Somewhat OT: Forward to JSP in JAR file

2007-04-10 Thread Musachy Barroso

I'm working on an Struts plugin to try to work around (more like hack
around)  that and other fun stuff :)

musachy

On 4/10/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Frank W. Zammetti wrote:
> Quick question... can anyone tell me if it's possible to forward to a
> JSP that is stored in a JAR file (i.e., in a JAR located in
> WEB-INF/lib), and if so, how?  I couldn't find a quick answer on the
> first few pages of Googling, figured someone here would probably know
> off the top of their heads.  Thanks!

Not in any standard way, no. There may be container-specific solutions,
but you'd be working outside the spec.

L.


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





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: Somewhat OT: Forward to JSP in JAR file

2007-04-10 Thread Laurie Harper

Frank W. Zammetti wrote:
Quick question... can anyone tell me if it's possible to forward to a 
JSP that is stored in a JAR file (i.e., in a JAR located in 
WEB-INF/lib), and if so, how?  I couldn't find a quick answer on the 
first few pages of Googling, figured someone here would probably know 
off the top of their heads.  Thanks!


Not in any standard way, no. There may be container-specific solutions, 
but you'd be working outside the spec.


L.


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



Re: Struts 2 Jasper Reports Plugin

2007-04-10 Thread ChristopherAngel

Apparently using HttpServletRequest request =
ServletActionContext.getRequest();

So why is the setServletRequest method not called?


ChristopherAngel wrote:
> 
> I have the following package defined in my struts.xml file:
> 
> 
>method="generateReport">
> 
>   reports/report.jasper
>   dataSource
> 
>   
> 
> 
> the generateReport method is called as expected except despite
> ReportAction implementing ServletRequestAware the setServletRequest method
> is never called.  
> 
> How can I get access to the HttpServletRequest object from within the
> generateReport method?
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-Jasper-Reports-Plugin-tf3552530.html#a9918621
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 module switch

2007-04-10 Thread Paul Benedict
Have you considered removing the use of modules? Modules are really a 
nuisance, and were originally developed to allow multiple Struts "apps" 
running under one context. There's a hard barrier between modules and 
almost all developers I know no longer use them. You can split up your 
struts config without using modules.


I know this advice doesn't answer your question, but think about it, 
because it will save you time.


Paul

Suman Maity wrote:

Hi,
   I was trying struts module switching and was successful doing it using
SwitchAction. I am also using tiles. The problem is I am not able to use a
separate tiles definition file for the other module (i have two modules).  
I have two struts config files. struts-config.xml for the default module and

struts-anotherModule-config.xml for the other module.
I have written the following in the default struts config file
(struts-config.xml):







I had created another tiles definition file for the other module with a name
tiles-anotherModule-defs.xml and created some definitions in that. 
I mentioned this file in struts-anotherModule-config.xml file in the same

way as above. In this struts config i wrote a action mapiping which has
forward tag like this: 
The definition of actionExamples is there in the second tiles definition
file that is the tiles-anotherModule-defs.xml file.

When I run the app, the module switch occurs with the help of SwitchAction
but finally it fails to load the definition actionExamples saying "Can not
get request dispatcher for path actionExamples". 


Now, the irony is that instead of specifying a seperate tiles definition
file, I write the following line in struts-anotherModule-config.xml file:

Put the definition actionExamples in the default tiles def file and it
works. I even don't need to mention the tiles def file's name here although
it simply works. But if i comment the above line, it does not work. I am
confused.
Can not I use separate tiles definition files for separate modules each
having its own struts config file?
Please provide example  if possible.
Thanking in advance.
  


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



Struts 2 Jasper Reports Plugin

2007-04-10 Thread ChristopherAngel

I have the following package defined in my struts.xml file:


  

  reports/report.jasper
  dataSource

  


the generateReport method is called as expected except despite ReportAction
implementing ServletRequestAware the setServletRequest method is never
called.  

How can I get access to the HttpServletRequest object from within the
generateReport method?


-- 
View this message in context: 
http://www.nabble.com/Struts-2-Jasper-Reports-Plugin-tf3552530.html#a9918148
Sent from the Struts - User mailing list archive at Nabble.com.


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



href in the display tag does not work

2007-04-10 Thread MAthuvathanan Mou.

Hi,

I use this jsp in my project






 
 
 
 
 
 
 
 
 
 

 
 
 
 


   



I made proper struts mapping via struts-config.xml and Actio servlet. But
when I click the link in the table it just goes to blank page with related
URls but no server error messages.

Any wrong in my code?

Or using form action and href together, is it giving that prob?

Thanks,

Regards
MAthu M.


Struts module switch

2007-04-10 Thread Suman Maity

Hi,
   I was trying struts module switching and was successful doing it using
SwitchAction. I am also using tiles. The problem is I am not able to use a
separate tiles definition file for the other module (i have two modules).  
I have two struts config files. struts-config.xml for the default module and
struts-anotherModule-config.xml for the other module.
I have written the following in the default struts config file
(struts-config.xml):







I had created another tiles definition file for the other module with a name
tiles-anotherModule-defs.xml and created some definitions in that. 
I mentioned this file in struts-anotherModule-config.xml file in the same
way as above. In this struts config i wrote a action mapiping which has
forward tag like this: 
The definition of actionExamples is there in the second tiles definition
file that is the tiles-anotherModule-defs.xml file.

When I run the app, the module switch occurs with the help of SwitchAction
but finally it fails to load the definition actionExamples saying "Can not
get request dispatcher for path actionExamples". 

Now, the irony is that instead of specifying a seperate tiles definition
file, I write the following line in struts-anotherModule-config.xml file:

Put the definition actionExamples in the default tiles def file and it
works. I even don't need to mention the tiles def file's name here although
it simply works. But if i comment the above line, it does not work. I am
confused.
Can not I use separate tiles definition files for separate modules each
having its own struts config file?
Please provide example  if possible.
Thanking in advance.
-- 
View this message in context: 
http://www.nabble.com/Struts-module-switch-tf3552250.html#a9917277
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 Action Validation

2007-04-10 Thread Antony Stubbs

Personally I would suggest nabble.com
google for "nabble struts user"


Dave Newton-4 wrote:
> 
> --- [EMAIL PROTECTED] wrote:
>> Beyond this, how do I get an S2 action class to
>> display a message on the web page?  
> 
> See
> 
> http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String)
> 
> It takes a String, I18N provided by ActionSupport's
> standard getText method.
> 
> To display on a JSP page:
> 
> http://struts.apache.org/2.x/docs/actionmessage.html
> 
>> Also, is there a way to search through the messages 
>> from this forum? 
> 
> Search via your email client, search one of the
> archives (see below), or keep a knowledge base
> containing only the important bits and tag it however
> your system allows (this is the best solution for
> several reasons).
> 
>> Does this not work like a NewsGroup?
> 
> Nope, it works like a mailing list. There are some
> archives available; see:
> 
> http://struts.apache.org/mail.html
> 
> d.
> 
> 
> 
>  
> 
> We won't tell. Get more on shows you hate to love 
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> http://tv.yahoo.com/collections/265 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/S2-Action-Validation-tf3549366.html#a9917015
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] can't access s:action tag result when validation fails

2007-04-10 Thread Antony Stubbs

I have a simple test case for using the action tag like so:

test=

the EventProfile.list() instantiates the EventProfile.test property.

Going to this jsp page via the !input method, the result is retrieved and we
get the ouput something like "test=testString", exactly as expected.

But, if i submit a form on the same page, and it's validation fails, the
input result is shown again, except this time I get "test=", as if the
property was null. However, the eventProfile action does show up on the
stack as an accessible parameter. 

It seems to be some sort of order problem when validation fails? As if,
because of the validation interceptor, the s:property tag is evaluated
before the s:action tag puts the result on the stack?
-- 
View this message in context: 
http://www.nabble.com/-s2--can%27t-access-s%3Aaction-tag-result-when-validation-fails-tf3552169.html#a9916991
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: Modeling Struts with UML

2007-04-10 Thread Leon Rosenberg

it doesn't depend on struts or not struts, but on what you want to
model and how deep you want to go.

I'd say use-cases and activity-diagrams for the first level.

class diagrams and collaborations for the seconds level (which can be
less or more detailed)

sequence if you like sequences.

everything else... depending on your goals, which can be moving. For
example a deployment diagram could make more sense at the end of the
design process and so on.

regards
Leon



On 4/10/07, Asaf Paris Mandoki <[EMAIL PROTECTED]> wrote:

What kind of UML diagrams are necessary to fully model a complete
struts application?

-
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]



datetimepicker problem

2007-04-10 Thread David Harland
If I use the datetimepicker in date format I can preset the date value
using an action and I can use the displayFormat to format the date. 

If I use it in type=time the time is always 12:00. I can't adjust the
time or the time display format.


__
Ufi Limited 
Registered in England No.  3980770 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

learndirect Solutions Ltd 
Registered in England No. 5081669 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

UFI Charitable Trust 
Registered in England No.  3658378 
Registered Charity No.  1081028 
Registered Office:  Dearing House, 1 Young Street, Sheffield, S1 4UP 

This email has been scanned by the MessageLabs Email Security System.

__

passing values that are entered dynamically

2007-04-10 Thread strutproject

how to pass dynamically entered values through or any using struts
-- 
View this message in context: 
http://www.nabble.com/passing-values-that-are-entered-dynamically-tf3551523.html#a9915135
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] How to keep a reference to a bean without using a session scope?

2007-04-10 Thread Alexis Pigeon

Hi all,

My application uses a bean to store a collection of values to display
in a select input. Since the generation of this collection is
time-consuming, I set this bean to a session scope, and using the
following code :

in jsp:
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>


in the Action (implementing Preparable and ServletRequestAware):
private Vector myCollection;
public Vector getMyCollection() {
   return myCollection;
}
public void setMyCollection (Vector v) {
   this.myCollection = v;
}
public void prepare() {
   ...
   setMyCollection( (Vector)
request.getSession().getAttribute("myCollection"));
   
}

This works perfectly as expected, as long as there is only one
instance of the application launched at a time in the same browser
(using Firefox or IE7 tabs for example). In that case, the bean is
shared between the different instances, which is problematic since its
content depends on previous data input.

I tried to change the scope of the bean, using "page" or "request".
Passing the bean from the Action to the jsp is ok, but I can't get the
jsp to pass it back to the Action.

Is there another interface I should implement in the Action, or
another tag I should use in the jsp? Or maybe there is a way to force
the creation of a new session when opening another instance of the
application?

Thank you all for the help,
alexis

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