How to capture this event

2008-10-05 Thread tom tom
Hi, We are using struts 2.0.6 with AJAX development features, we got couple of

Acces Control Within Struts2

2008-08-13 Thread tom tom
Hi, We are using struts2 2.0.6 and now we have a requirement to have some Access Control into it, That is we got some functions points and each ROLE got different access rigts against each function, if someone login to the System the UI will be presented based on these configurations. What I wa

Struts2 java script issue/bug with tabbed panel

2008-06-05 Thread tom tom
Hi, We use struts2 2.0.6 and we have the following, when the user click one of the tabs (div s), I want to know which div id is focussed or clicked, so I went I head and had javascippts functions(onClick, onFocuss) within

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-08 Thread tom tom
TED]> wrote: > tom tom wrote: > > Thanks Jeromy, > > > > Is there any reason why YUI datagrid instead of > dojo > > 1.1 grid, > > > > Isn't it risky to depend on YUI datagrid, > > > > Thanks > > > > > > Moving to YU

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread tom tom
Thanks Jeromy, Is there any reason why YUI datagrid instead of dojo 1.1 grid, Isn't it risky to depend on YUI datagrid, Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: > > Thanks Jeromy, > > > > If we use direct dojo calls (dojo 1.1) with

Grid working with Stuts2 Serverside

2008-05-05 Thread tom tom
Hi, Has anyone got any editable grid e.g dojo 1.1 (supports CRUD) working with server side Struts2 action classes. or any other grid working with struts2, If so, will it be possible to share some samples, We are in the process of finding a intelligent AJAX based DATA grid working with struts2

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-05 Thread tom tom
best practice for this. My first objective is to have dojo Grid inside a jsp, with CRUD/sorting and pagination And Link this Grid with the Struts 2 Action classes, Is there any practices to follow to achieve, is this doable Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-01 Thread tom tom
Hi Jeromy, Sorry, I forgot one more question, Eventhough we use dojo 1.1 directly, we need to have dojo.js, wouldn't this conflict with the one which comes as part of struts bundle --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: > > Hi, > > > &g

Re: dojo 1.1 in struts 2.0.11 portlets

2008-05-01 Thread tom tom
is a framework, with widgets and events, How can individual struts tags support the entire event model, am confused, isnt it a good idea to provide the practices to use dojo directly to utilize the full dojo features. Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: >

dojo 1.1 in struts 2.0.11 portlets

2008-04-30 Thread tom tom
Hi, In order to leverage the full capabilities of dojo 1.1 (latest) with the latest stable struts version. What exactlyt the best practice. The things we concerned are as followes 1) Will there be a conflict in the different dojo versions in struts 2.0.11 and dojo 1.1 2) Will it impact any stru

Ajax examples in the Struts2.0.11 download

2008-04-22 Thread tom tom
Hi, Is portlet Ajax examples are demonstrated in struts2-portlet-2.0.11.1.war in the distribution. I can see some pages but can't see the functionality in the main index Thanks Be a better friend, news

Re: Using DOJO in Struts2

2008-04-21 Thread tom tom
Hi, Instead of directly using DOJO 1.x, did you think about enhancing the ftl with a new theme type Thanks --- umesh awasthi <[EMAIL PROTECTED]> wrote: > Thanks Jeromy for the rply > we will try to impliment DOJO 1.x along with struts2 > > some point i want to confirm if u have any exp using

Re: Struts 2 AJAX editable grid

2008-04-21 Thread tom tom
x27;s > suitable: > http://www.satyam.com.ar/yui/DataGrid.html > > It supports client-side and server-side pagination > and sorting: > http://developer.yahoo.com/yui/datatable/ > > tom tom wrote: > > Thanks I will have a look, Lot of grids got the > > limitat

Re: Struts 2 AJAX editable grid

2008-04-20 Thread tom tom
AIL PROTECTED]> wrote: > tom tom wrote: > > Hi, > > > > What exactly the benefits of moving from struts > 2.0.6 > > to > > 2.0.11. > > > > > Mainly important bugfixes and security fixes. There > are few new features. > 2.0.x ->

Can these two co exists

2008-04-20 Thread tom tom
Hi, We have portlet based ajax application written using struts 2.0.6, With the introduction of the struts 2.0.11 we can see lot of bugs have been resolved. We would like to start the next project using struts 2.0.11, both application will co exist in the same tomcat server. Will there be any cl

Struts 2 AJAX editable grid

2008-04-20 Thread tom tom
Hi, What exactly the benefits of moving from struts 2.0.6 to 2.0.11. As far as the Ajax support is concerned, we do have a requirement to have a editable grid, Is this facilitated within struts 2? What is the best way to achieve it. Thanks

Re: Struts2 Portlets slowing down liferay portal

2007-09-18 Thread tom tom
Have one log4j setting for all the projects, Thanks --- Clark O'Brien <[EMAIL PROTECTED]> wrote: > Setting the freemarker_update_delay improved > performance for sure. > > Hate to ask such a simple question but just own do I > change the devMode option and logging - my log4j.xml > has ERROR set

Re: JAAS struts 2 Tutorial?

2007-09-16 Thread tom tom
ublic > information, a logged in > user can access his private data, and an logged in > admin user can access > the admin console. > > Regards, > Muhammad Momin Rashid. > > tom tom wrote: > > what exactly you are trying to do? > > > > > >

Re: SessionAware vs ActionContext access to session - confused..

2007-09-13 Thread tom tom
well. Thanks --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > In the next release, there will be *Aware interfaces > for the portlet objects. > > Nils-H > > On 9/13/07, tom tom <[EMAIL PROTECTED]> wrote: > > Yes in theory you are correct, but in side

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread tom tom
application etc? hope this helps --- Chris Pratt <[EMAIL PROTECTED]> wrote: > On 9/12/07, tom tom <[EMAIL PROTECTED]> wrote: > > If you are developing portlets with struts2 > > I doubt *Aware interfaces work properly, you have > to > > do it differently. >

Re: SessionAware vs ActionContext access to session - confused..

2007-09-12 Thread tom tom
Hi, If you are developing portlets with struts2 I doubt *Aware interfaces work properly, you have to do it differently. For example How we get a handler for Http request or session is not via *Aware interfaces for portlets. --- j alex <[EMAIL PROTECTED]> wrote: > Hi, > > In the Struts 2 docs,

Re: JAAS struts 2 Tutorial?

2007-09-12 Thread tom tom
what exactly you are trying to do? --- Muhammad Momin Rashid <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I am looking for a tutorial for integrating JAAS > into my Struts 2 + > Hibernate Application. Can anyone point me to the > right resources? > > Is JAAS the best way to go, or there

Re: What is the S2 equivalent

2007-09-03 Thread tom tom
replace JSTL, but > complement it in ways that are useful. There are > several tags that do > overlap with JSTL, such as the iterator tag, but > they are kept mainly > to keep backwards-compatibility. > > Don > > On 9/4/07, tom tom <[EMAIL PROTECTED]> wrote: >

What is the S2 equivalent

2007-09-03 Thread tom tom
Hi, In S2, how can we import a remote URL or file inside a JSP. JSTL I think we can use c:import, what is the S2 equivalent of that. Thanks, Ready for the edge of your seat? Check out tonight's top pi

Re: [struts2]: maturity / production experience ?

2007-08-07 Thread tom tom
Yes we got it working on production, works fine, there are tiny little areas you need to work out, What we did was struts2 portlets, which is one step ahead to the applications, Looks good so far, But have a look at the bug I raised recently. Look for the forum. Other than that, with thorou

why it change the SCHEME

2007-07-30 Thread tom tom
Hi, We got a S2 application on https, but as recommende we use the Redirect Action Result to forward to another action but the issue is it changes the scheme from https to http. Can someone let me know why this is all about. Thanks, ___

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-25 Thread tom tom
I have tested the S2 portlet sample application in > both pluto and > uPortal, and the behaviour is indeed different. > > Something else you can try is to create a plain > JSR168 portlet (not > using S2/struts-bridge or anything else) and see if > the window state > is repor

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-23 Thread tom tom
-bridge or anything else) and see if > the window state > is reported differently. > > I'll also bring the issue up on the uPortal mailing > lists and see if > we can get any further there. > > Nils-H > > On 7/23/07, tom tom <[EMAIL PROTECTED]> wrote: &

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-22 Thread tom tom
we may be wrong. Thanks, --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > Which version of uPortal are you using? > > On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote: > > Hi, > > > > We got some portlets developed using S2 running of > > uPortal.

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-22 Thread tom tom
We are using uPortal 2.5.3. We still can't figure why it returns wrong window states. Waiting for a reply, Thanks --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > Which version of uPortal are you using? > > On 7/19/07, tom tom <[EMAIL PROTECTED]> wrote: > >

S2 send wrong Portlet Window States - May be a bug

2007-07-19 Thread tom tom
Hi, We got some portlets developed using S2 running of uPortal. It looks like When we switch between Window states and try to print window states in JSR168Dispatcher it prints window states incorrectly. For e.g When I minimize a portlet it says the window states is minimized but when I maximize

Re: Minimized Window State NOT working-NOT SOLVED

2007-07-09 Thread tom tom
t; a bit different from a "regular" portlet), so > this logic is missing. > > > This means, that for now, the responsibility of > what is rendered in > > > the minimized state is up to the developer. > > > > > > I'll create

Is the tooltip working in S2

2007-07-08 Thread tom tom
Hi, I got the following in S2, jsp. it shows nothing, infact when I saw the view source it shows nothing with regards to tooltip. Is there anything wrong in my usage, Cant I completely ingore the the tooltipConfig. Basically I want to give user a flavour of help where it says Enter display name

Re: Checkboxes problem

2007-07-04 Thread tom tom
because you have the list, you can do the following You dont need to iterate --- Andreja <[EMAIL PROTECTED]> wrote: > Thank you very much Sharad, that WORKS! :] > > > > Just for the archive, this is also a possibility: > > > fieldValue="${manyNames[cnt.index]}"> >

Why this inconsistency

2007-07-01 Thread tom tom
Hi, I have the following iterator above expression get evaluated correctly but in the same iterator I got the following but this doesnt get evaluated, Why these two are handled differently, why cant we make it consistent.? The below one works when I make is %{studId} bu

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
lue of the arry is > > > > > > > tom tom wrote: > > I did further investigation, > > I think this is a bug, I think this is a very > scary > > bug. > > > > You dont need three iterators, I could reproduce > this > > very easily, &

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
index is variable, without introducting a scriptlet with int i=0 and the have i++, Is there any other inbuild way? Thanks --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > What did you mean by > > > > "is an issue iff

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
Hi, What did you mean by "is an issue iff you're using an id" What else can I use to get the value inside an Iterator? Thanks --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > WHAT it prints is following Issue is

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > WHAT it prints is following Issue is for the 4th > > index also it prints test, it should print empty > > > > Value of the arry is test0 > > Value of the arry is test1 > > Value of the arry is test2 > >

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread tom tom
> iteration is placed on the top of the value stack). > Although, if you > are explicitly defining the object (via id and > #test) there shouldn't be > a problem. > > /Ian > > tom tom wrote: > > >Hi, > > > >I got three iterations whi

Re: Struts 2.0 form bean

2007-07-01 Thread tom tom
Before anything try model driven interface if you are not doing any portlet developments. Thanks, --- [EMAIL PROTECTED] wrote: > Hi All, > > As there is no concept of Action form beans in > struts 2.0 we have to define > the field attributes in the Action class. > > I am using the same action c

Has anyone tried this in S2

2007-06-28 Thread tom tom
Hi, I got three iterations which I tried as below in the jsp, First two and Array of certain DTO and last iterator is a String array. There is no jsp compilation error, but the issue is it produced misleading results. Is there any limitation in S2 for the depth of the iteration. Is this way of us

Custom filter - Is this possible

2007-06-25 Thread tom tom
Hi, Can some one let us know, how to define a Custom filter which would do what the org.apache.struts2.dispatcher.FilterDispatcher does but in addition it checks a Cetain attribute (e.g. Window State) and shows nothing if a certain criteria is met. Is this something possible.? or How can I have p

Re: Minimized Window State NOT working

2007-06-25 Thread tom tom
> "When a portlet is in MINIMIZED window state, the > portlet should only render > minimal output or no output at all." Ealier we were using struts-bridge for portlet development, there it was showing no output for the MINIMIZED window state, also I have seen lot of other portlet development str

Minimized Window State NOT working

2007-06-24 Thread tom tom
Hi, In Struts2 portlets development, It looks to us that the minimize does not work as expected, When we presss the minimize button instead of minimizing it shows the same content. to my understanding it should not render anything at all. We trying this on uPortal. Can some one else try these t

How to solve following

2007-06-21 Thread tom tom
Hi, Is it possible to use Map-backed forms in S2. Existing application using the Map-backed form doesnt seem to work with S2, Thanks Got a little couch potato? Check out fun summer activities for kids

What exactly the scope of instance variables and Action instances

2007-06-21 Thread tom tom
Hi, As we dont have ActionForms seperately as in Struts 1.X. We introduce member variables in the Action classes. All our jsp field elements are mapped to these member variables. The question we have is, What exactly the life cycle and scope of these Actions and Member variables, When it will b

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
is a trade off, I guess, but using > javascript directly, ala dojo > > will > > be easier. > > > > musachy > > > > On 6/20/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > > > What is the best way(best practice) to have the

Why two behaviours

2007-06-20 Thread tom tom
Hi, I have a action class which get called by two ways in two different pages. 1) As a href 2)As part of a form submission In the action class I forward to another action instead of a jsp via the forward, hence struts.xml looks as follows. (note: testSetup action defined in the struts.xml) ..

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
; (bind, and binddiv), an others that extend the dojo > ones to add > functionality (autocompleter, datepicker, > timepicker, tree, treenode) > > musachy > > On 6/20/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > When it comes to custom widgets, what is

Re: Struts2 limitations with DOJO

2007-06-20 Thread tom tom
Just one word of advise, stay away from > the datetimepicker tag > until 2.1. > > regards > musachy > > On 6/20/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Can someone let us know the limitations of using > DOJO > > libra

Struts2 limitations with DOJO

2007-06-19 Thread tom tom
Hi, Can someone let us know the limitations of using DOJO library with S2 provided AJAX features. What exactly these limitations are? Any references or articles would be advantageous. Thanks, Lalitha Don'

How checkbox issue is solved in S2

2007-06-18 Thread tom tom
Hi, In S1.x as we got reset method is ActionForm we used to reset the corresponding property in the ActionForm, hence it correctly reflects what user did when submitting. In the absense of the Action Forms, What is the best practice to sort this out in S2. Thanks __

Re: why cant I have String[] with select tag

2007-06-17 Thread tom tom
Yes I tried the following but it doesnt work, also I gave multiple="true" that also doenst work. Thanks --- Jeromy Evans <[EMAIL PROTECTED]> wrote: > tom tom wrote: > > I have the following in the jsp > > > > >name="test

Re: why cant I have String[] with select tag

2007-06-17 Thread tom tom
find my answers below > You're trying to assign a String to an array which > would give you an > error But it nicely work with S1 eventhough it has been left in S2, I can't figure is out why these little features are left over. It got lot of benefits, for e.g if that feature there i can use t

why cant I have String[] with select tag

2007-06-17 Thread tom tom
I have the following in the jsp in the action class there is a instance variable called testForm and inputAnswer is an array string[] in the testForm. I am reusing the inputAnswer for different UI tags, for .e.g with checkboxes as well. Hence inputAnswer is an array. In struts 1.x for select I

Re: URL Parameters not working in Struts 2.0.6

2007-06-14 Thread tom tom
What exactly the tag you are using, Better to use the url tag with param which does the encoding properly Thanks --- Mike Jennings <[EMAIL PROTECTED]> wrote: > Can anyone tell me why this is happening to me. I > am using jdeveloper 10g > as my development platform. > > I want to call a action w

Re: What is the equivalant for reset in S2

2007-06-13 Thread tom tom
I can't see any clean() method in the ActionSupport, I am using struts 2.0.6. Is there any other way to do this. Thanks, --- Rikard <[EMAIL PROTECTED]> wrote: > > Hi well in webwork i use the clean(); method of the > class ActionSupport i > think its the same in S2. Just make a reset() method

What is the equivalant for reset in S2

2007-06-12 Thread tom tom
Hi, In struts 1.x. we had reset method in the action forms to do the final cleanup before the form data get populated. It helped quite well with occasions like check boxes. Please let us know what is the same equivalent in struts 2. How can we achieve the same. Thanks, __

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

2007-05-24 Thread tom tom
Hi, I got a form with following syntax When I press the submit it gives the following exception, all the actions defined in the struts.xml file javax.portlet.PortletException: Could not find action testAction at org.jasig.portal.channels.portlet.CPortl

portletUrlType Constants

2007-05-24 Thread tom tom
Hi, What are the constants for the portletUrlType attribute in Struts 2 url tag. Thanks Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. h

Re: Is this a BUG in S2

2007-05-24 Thread tom tom
extra processing (a lot) > to convert into a > URL. The behaviour depends on whether you're in > portlet mode or not. If > you put a break-point in the end(writer, body) > method of > org.apache.struts2.components.URL.java you'll see > where it's goin

Re: Is this a BUG in S2

2007-05-23 Thread tom tom
wrote: > --- tom tom <[EMAIL PROTECTED]> wrote: > > for the second one there is no href > > attribute for the URL tag hence doesnt work. > > The "value" attribute creates the href if th

Re: Is this a BUG in S2

2007-05-23 Thread tom tom
oach but > it's somewhere on the > wiki) > > 2. Alternatively, work-around it by using the href > attribute: > > > > href definitely does work. > > tom tom wrote: > > Hi, > > We are experiencing that action attribute of the > > > > >

Is this a BUG in S2

2007-05-22 Thread tom tom
Hi, We are experiencing that action attribute of the . . Is there any way to overcome this kind of requirements. Thanks __

Re: JSTL Integration fails - S2

2007-05-22 Thread tom tom
t; > http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi > > musachy > > On 5/22/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I just wanted to integrate some JSTL features to > my > > existing S2 application, &

JSTL Integration fails - S2

2007-05-22 Thread tom tom
Hi, I just wanted to integrate some JSTL features to my existing S2 application, I followed the following steps 1)copied jstl-1.1.2.jar to WEB-INF lib directory 2)had following in the jsp <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %> <%@ taglib prefix="fmt" uri="http://ja

Re: How to do the following in S@

2007-05-22 Thread tom tom
a portlet, Should I code differently because this is a portlet,(I havent done it yet) Does S2, UI tag syntax changes based on it is Web or Portlet Thanks, --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Did you try this? > > > > L. > > tom tom wrote: > > Hi, >

Re: How to do the following in S@

2007-05-21 Thread tom tom
In Struts 1.x we achieved the following by wrote: > Hi, > > One page we got a Iterator containing the Action > Names, which means Actions names are not known > earlier, > > How can we retrieve the value inside the URL tag. > > How can we retrieve the dynamic action names like > this > in S2 >

How to do the following in S@

2007-05-21 Thread tom tom
Hi, One page we got a Iterator containing the Action Names, which means Actions names are not known earlier, How can we retrieve the value inside the URL tag. How can we retrieve the dynamic action names like this in S2 that is in

ScopedModelDriven issues

2007-05-17 Thread tom tom
Hi, Has any one successfull getting ScopedModelDriven with session scoped form beans, I tried several times and it failed, the values only remains for request scope, it get reset each time. Is this a bug. Plese let us know how to proceed. Thanks

Struts 2 migration ISSUES- missing properties in ...

2007-05-16 Thread tom tom
Hi, We have the following in the struts 1.x when I try to convert this to S2 I can't see the size and the maxlength properties for e.g. What I can see is only name and id attributes only. I thought S2 tag library got all. Let me know how to overcome this. thanks

Re: S2 life cycle

2007-04-11 Thread tom tom
should I have the following in my jsp Let me know? Thanks, Lalitha --- tom tom <[EMAIL PROTECTED]> wrote: > Yes I know we can do this, > > but the argument is the previous struts ActionForm > sharing across many action classes is achieved by > ScopedModelDriven in

Re: S2 life cycle

2007-04-11 Thread tom tom
Bean bean = (Bean)= > session.getAttribute("MY_BEAN"); >bean.getWahtever(); > } > > } > > Is that what you want to do? > > Thanks, > > Hf > > > On 4/11/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > Works but the valu

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

Re: S2 life cycle

2007-04-10 Thread tom tom
ts1.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 propert

Re: S2 life cycle

2007-04-03 Thread tom tom
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

Re: S2 life cycle

2007-04-03 Thread tom tom
. Thanks. --- Mark Menard <[EMAIL PROTECTED]> wrote: > On 4/3/07 8:13 PM, "tom tom" <[EMAIL PROTECTED]> > wrote: > > > 1) Will introspecttion works as in struts 1.x > > (automatic population from the jsp form fields, > > provided the pojo got

Re: S2 life cycle

2007-04-03 Thread tom tom
which will fire before the control delegate to the Action class. Can I achieve the above using ScopedModelDriven mechanism. Thanks --- Mark Menard <[EMAIL PROTECTED]> wrote: > On 4/3/07 7:46 PM, "tom tom" <[EMAIL PROTECTED]> > wrote: > > > We can have one A

Re: S2 life cycle

2007-04-03 Thread tom tom
las myFooBar{ >filed pars (foo, bar) > setters and getters > } > > class MyA extents ActionSupport{ > private myFooBar fooBar; > > public String execute(){} > > } > > > Now, in the HTML page, you have to say name the > param myFooBar.foo and > m

S2 life cycle

2007-04-02 Thread tom tom
Hi All, What is the life cyle of S2 with regard to ActionForms,Actions etc Because S1 got the life cycle where it executes ActionForm validate method and if success only it goes to the Action Class. How this life cycle is addressed in S2, Won't there any Action form and also validate method's in

Global Exception in configuration

2007-04-02 Thread tom tom
Hi, S1 in strusts-config.xml we used to have the following global exception directive The errors.general is the key from the resource bundle. How can we do the same in S2 with the following in the struts.xml Can't we pass a key value from the

Re: S2: Use of s:if tag

2007-04-02 Thread tom tom
ve a typo (unbalanced } ) > > > >^ > I bet you meant > > > Thank you again. > > Harring > > > Both way works. > > On 4/2/07, tom tom <[EMAIL PROTECTED]> wrote: > > > > I normally use this, > > >

why S2 ignored S1 html image tag

2007-04-02 Thread tom tom
Hi, What is the S2 equivalent for the following of the S1. I used plain but the image is not appearing in my portlet as it ignores the application context. I tried both the following doesnt work looked after everything. How to proceed on this with s2 equivalent. Thanks, ___

Re: S2: Use of s:if tag

2007-04-02 Thread tom tom
I normally use this, no complications, did you try above Thanks --- Harring Figueiredo <[EMAIL PROTECTED]> wrote: > Mark, > > Thank you very much for the reply. > > I did slightly different and it works. > > > > Thanks again. I think it would be helpful to place > something like this on

Re: if tag doesn't seem to work(Struts 2)

2007-03-27 Thread tom tom
try any of these, dont get confused with jstl, also be careful using % vs # Hello World Hello World let us know if further problem exists Thanks --- joey <[EMAIL PROTECTED]> wrote: > I thought it may be like this: > Hello World or > Hello World > > On 3/27/07, Darren Salomons > <[EMAIL PRO

Re: Struts 2 and Content Management

2007-03-27 Thread tom tom
My suggestion is, try hypercontent, and have jstl import pointing to the hypercontent resource, This is something I can give u a hand. But hypercontent does not use any struts 2. thanks. --- Jim Young <[EMAIL PROTECTED]> wrote: > Anyone have any ideas on Content Management Software > and using

Re: HttpServletRequest - in a Portlet

2007-03-26 Thread tom tom
yet. Thanks, --- Nils-Helge Garli <[EMAIL PROTECTED]> wrote: > As mentioned, this is not possible in a container > independant manner. > I would recommend that you consider refactoring your > code so it uses > Map objects instead, as xwork/struts 2 does. > > Nils

Re: HttpServletRequest - in a Portlet

2007-03-25 Thread tom tom
> dispatching a request to a servlet that is in the > same web > application. > > Nils-H > > On 3/23/07, tom tom <[EMAIL PROTECTED]> wrote: > > Hi, > > > > In my porlet I got the following > > > > public class MyProfileAction extends ActionS

struts migration - ActionError Server Side

2007-03-22 Thread tom tom
Hi, How can I convert the following struts 1.x to struts 2.0.6. ActionError actionError = new ActionError(""); ActionMessage actionMessage = new ActionMessage("error.test.error1"); actionErrors.add(ActionErrors.GLOBAL_MESSAGE, actionMessage); above is in a action class and error.test.error1 is

HttpServletRequest - in a Portlet

2007-03-22 Thread tom tom
Hi, In my porlet I got the following public class MyProfileAction extends ActionSupport implements ServletRequestAware Hence I implemented the public void setServletRequest(HttpServletRequest arg0) { but what I can see is arg0 is null. What is the reason for this. How can get hold to the Http

Re: JSTL Empty equivalent for struts 2.0.6

2007-03-20 Thread tom tom
I believe the simple answer in struts 2.0.6 is The property is null which is same in struts 1.x as The property is null Pls let me know if any other alternative or a better approach Thanks --- tom tom <[EMAIL PROTECTED]> wrote: > Hi, > > What is t

JSTL Empty equivalent for struts 2.0.6

2007-03-19 Thread tom tom
Hi, What is the struts 2.0.6 equivalent for the empty check for the following do something Thanks TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ -

Why following is not working

2007-03-19 Thread tom tom
Hi, Can some body let me know why following is not working "> Personal Details can't we have "> Personal Details

Re: How to session attributes Struts 2.0.6

2007-03-18 Thread tom tom
approach you use should work, but if it > doesn't, try using > the ActionContext to get the session map and put it > there. > > Nils-H > > On 3/16/07, tom tom <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I implemented the following interface >

Re: How to session attributes Struts 2.0.6

2007-03-15 Thread tom tom
Hi, I implemented the following interface org.apache.struts2.interceptor.SessionAware; hence implemented the public void setSession(Map session) method and did add the following attribute session.put("NAME","USER1"); and in my jsp I have the following It works fine in a normal struts We

How to session attributes Struts 2.0.6

2007-03-14 Thread tom tom
Hi, How can we set the session variables which we used to do in stuts 1.x. and thereafter access in the jsps. e.g. session.setAttribute("NAME","USER11"); and in jsp This message is for user 1 How can we access to the session, should it be as follows In execute method Rend

Re: Struts 2.0.6 portlets

2007-03-14 Thread tom tom
ks. You should only > create links using > the form and url tags. > - Ajax have some limitations. > - You can't generate a complete HTML document, only > what's between the > tags of what would have been a regular web > app. > > > Otherwise, you should be

Struts 2.0.6 portlets

2007-03-13 Thread tom tom
We were alble to successfully deploy the struts 2.06 portlet sample on our portal container which is uPortal. What we want to know is Can we write the portlet applications simillar to the Struts 2.0.6 web applications(not portlets). Does Struts 2.0.6 portlets got limitations compared to the norm