Re: How do I get a request parameter

2009-05-13 Thread mitch gorman
n't find any >>> examples >>> of how to do this. >>> >>> Clue anyone? >>> >>> >>> Jim C. >>> >> > > --------- > To unsubscribe, e-mail: user-u

EL question

2009-05-13 Thread mitch gorman
worked. in the end, since in practice it's only my dev environment that differs from my integration, staging, and production environments (which are all the same), i kludged my way through it by writing two complete sets of tags, wrapped by . isn&#x

Re: Dynamic property names

2009-05-11 Thread mitch gorman
Jon Pearson wrote: > Well, I didn't get any responses to this, but luckily I managed to > figure it out from the OGNL documentation > (http://www.opensymphony.com/ognl/html/LanguageGuide/basicExpressions.ht > ml): > > Under the 'Expression Evaluation' section, it describes how you can > write this:

Re: Undefined attribute name notifyTopics

2009-05-05 Thread mitch gorman
ot see warnings about struts attributes in my struts tags, inside the eclipse JSP editor. -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310 Skype: mitch.shadowtv.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Reusing GUI and Actions

2009-04-22 Thread mitch gorman
i've explicitly passed the name of the action to take into the page, in similar situations. my form has or, i've used the session, so the form tag looks like " > YMMV. -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310 Skype:

Re: How to do matematical operation in jsp.

2009-04-21 Thread mitch gorman
resentation! What > will happen when the presentation layer will change or someone starts > using REST plugin? He wouldn't be aware of such logic, hidden in jsp. > we took a vote, dave. i'm afraid you're going to have to turn off cookies i

Re: How to do matematical operation in jsp.

2009-04-21 Thread mitch gorman
>> Yes you can do that, but it's EVIL! DON'T DO THAT!!! Business logic >> has to be in your business model, not in a presentation layer! >> -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310 Skype: mitch.shadowtv.com ---

Re: recipes for 2.0.x?

2009-04-17 Thread mitch gorman
e small contributions to the project). i know there's a dwr plugin... would that cover everything i'm currently using the dojo tags for? would that be my best bet for a replacement, once i do finally get time to migrate to struts v2.1.x? -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310

recipes for 2.0.x?

2009-04-17 Thread mitch gorman
what i need is to find out more details about that ajax error object, but i don't know how to access it. anyone have any ideas how i can proceed with my debugging? TIA. -- Mitch Gorman mgor...@shadowtv.com (215) 764-6310 Skype: mitch.shadowtv.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: having the same form in many JSP pages

2009-04-17 Thread mitch gorman
far4ever wrote: > hi, > > i need to have the same form in all my JSP pages (a search form). so in such > situation can i use the same same bean and the Action class being used for > all these JSP. > > if so how should i specify the 'input' for the 'action mapping' . > or is there any other altern

Re: When using jsp:include or s:include in a JSP page the next Struts 2 tags will throw java.lang.NullPointerException on WebLogic 10.3

2009-04-15 Thread mitch gorman
Néstor Boscán wrote: > I created a simple project with an Action and two JSP pages and the problem > reproduces. > it might be helpful if you posted your source. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.or

Re: Struts access static list

2009-04-13 Thread mitch gorman
Baran wrote: > Hi Guys, > > This is about implementing reusability in the actions. I am struggling to > identify the ways how we can share some comming functionality between > different actions. Lets say I got a list of users i need to use as a > combobox list at multiple pages. Right now I have to

Re: jsp page not display data when using ModelDriven---class can get parameter from jsp file

2009-03-31 Thread mitch gorman
ng here; >> >> } >> >> >> in struts.xml file >> >> > class="com.qic.system.action.SortTiersAction"> >> /test.jsp >> >> >> >> >> jsp file >> >> >> > width="135"> &

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: > That is something I have complained about for a long time, time to do > something about it I guess. > I AM AN INSTRUMENT OF CHANGE!!! ;) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.

Re: one action with two buttons

2009-03-11 Thread mitch gorman
PEGASUS84 wrote: > it doesnt work mean that the action go to a jsp page but the data in the form > there aren't in the jsp page > okay, i just took another look through my code, and it looks like i incorrectly constructed the example in my response. what i *should* have suggested you t

Re: okay, this is driving me nuts

2009-03-11 Thread mitch gorman
doh... this one didn't show up in my business-gmail->thunderbird-filtered reader until just now. please ignore this thread... i re-asked the question in the "nucking futs" thread, and was quickly answered! - To unsubscribe,

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: > On Wed, Mar 11, 2009 at 4:47 PM, mitch gorman wrote: > >>thanks for your responses, wes! >> >> > > No problem, next time, include me in your list of gurus and I'll be happy lol! you got it! (i knew for sure i wa

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: > yeah, the for loop is just to illustrate the point. The #context > thingie will work in any version okay, well, as i just noted in my response to wes, i clearly must've boneheaded something else when i tried it the first time, because the simple, un-overthought appro

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: > On Wed, Mar 11, 2009 at 4:39 PM, mitch gorman wrote: > >> Musachy Barroso wrote: >> >>> Ok, first, you don't need to define variable for each url, you can just do >>> >>> >> >> >>>

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Wes Wannemacher wrote: > It seems like you are created a variable variable name... I am > assuming that there is a reason why you are using and wanting > to refer to the constructed URL by id, rather than just doing the > following - > > > >">blah > > In an iterator, rather than

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
Musachy Barroso wrote: > Ok, first, you don't need to define variable for each url, you can just do > > this was the very first thing i attempted... it was the logical first attempt. unfortunately, what i ended up with when i did that was a set of links to the last loop iteration's URL.

okay, this is driving me nuts

2009-03-11 Thread mitch gorman
is there any syntactical construct that will allow me to do the following (in v2.0.14): click for count # i want unique URL references

Re: this is driving me nucking futs!

2009-03-11 Thread mitch gorman
mitch gorman wrote: > okay, can anyone (musachy, david, martin, i'm looking in your > direction!) tell me how to do what i'm trying to do, here? > > i've got a list of items i'm iterating over. for each item, i want > to have one or more links to acti

this is driving me nucking futs!

2009-03-11 Thread mitch gorman
okay, can anyone (musachy, david, martin, i'm looking in your direction!) tell me how to do what i'm trying to do, here? i've got a list of items i'm iterating over. for each item, i want to have one or more links to actions, with parameterization from the item's data. this means, using

Re: one action with two buttons

2009-03-11 Thread mitch gorman
PEGASUS84 wrote: > good evening, > in my project i've to create a form with two buttons wich make two different > process: > i try this method: > > SOME table here or some fields > > > > formId="configureform">Cancel > > > but it doesn't work. > > well, lacking a clear definition o

Re: Struts Ajax Newbie

2009-03-10 Thread mitch gorman
chumbobumbo wrote: > This is probably so basic - I'll put my flame proof suit just in case. > > I have a 2 combos and (yes ;-) I would like the second one to be loaded > depending on what's been chosen in the first one, so in my action execute > method I have: > take a look at . -

Re: Cross Browser issues!

2009-03-10 Thread mitch gorman
sajidbigler wrote: > Hi friends, > is > How to resolve cross browser issues.i was doing dynamic tree in firefox it > works fine but in IE the div wont be updated .later i come to conclusion its > bcoz if innerHTML or table,tr,td tags.in the showcase example we don't use > any tables so it works fi

Re: FreeMarker error when trying to use AJAX Theme

2009-02-26 Thread mitch gorman
Ignacio de Córdoba wrote: > I see actionerror.ftl exists for simple theme but not for ajax theme. Any > workarrounds? > i don't have a solution to your actual problem, but the issue you note in the sentence above is actually not an issue. if a template doesn't explicitly exist for a theme,

Re: Hiding s:select control: SOLVED!

2009-02-17 Thread mitch gorman
Martin Gainty wrote: > glad to hear simple theme worked for you.. > i'm wondering if you can produce inconsistent results wihen theme='ajax' if > so you found a BUG > can you display a small snippet of your jsp? > > >> didn't see the original post, so i'm not sure if ajax was required >> (i

Re: Hiding s:select control: SOLVED!

2009-02-16 Thread mitch gorman
Rajeshwari Godbole wrote: > So I had to write my > own and 's and draw the table but I set the theme for all the tags > in the form to "simple" didn't see the original post, so i'm not sure if ajax was required (in which case what i'm about to say should be disregarded), but just setting the

Re: submitting a form without a submit button ajax-style

2009-02-12 Thread mitch gorman
Musachy Barroso wrote: > 2.1.6 is GA :) > DOH! hadn't checked in a while, obviously... - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Musachy Barroso wrote: > What you are looking for is the "bind" tag. Check: > > http://struts.apache.org/2.x/docs/bind.html > > in your example: > > > > id="statusCheckbox"/> > > showLoadingText="false" formId="myStatusForm"/> > > Look at the docs, the "bind" tag can do a few other t

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
Felipe Fraga wrote: > Hello, > > Using Struts 2 built-in dojo, you could just: > > function submitForm(namespace, action, formName, targetDivName) { > var theForm = dojo.byId( formName ); > //remove initial slash > var theUrl = namespace.substring(1,namespace.length) + "/" + actio

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
and TagLibDocs. > > the code, as posted, worked correctly. i tested it before i posted. > mitch.gorman wrote: > >> mitch gorman wrote: >> >>> >>> >>> >>> >>> Go home>> >> actually, the form do

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
mitch gorman wrote: > > > > > Go home

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > Thanks for all the input on this one! > > alas the form.submit(), causes a reload of the page :( > doh! okay, so the issue is, you need the 'targets=""' attribute, but unfortunately for you, s:select doesn't have that bad boy. what i think you'll need to do, to get ar

Re: Text link to submit a form ¿struts2 way?

2009-02-11 Thread mitch gorman
Ignacio de Córdoba wrote: > OK... I know I must use javascript. My question really was about if struts2 > s:a or sx:a tags had an option to generate that javascript submit text link, > in a similar way as s:submit generates the input type="submit". I guest not. > :-( > Go home

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread mitch gorman
ulf n wrote: > the Form: > > > >onclick="javascript:someHowSubmitTheFormWithoutReload();"> > > the modified form: the javascript: function submitForm(id) { var form = document.getElementById(id); form.submit(); }

Re: getter for a property problem

2009-02-06 Thread mitch gorman
elyes sallem wrote: > Hello, > i use a property in a jsp , "shortcomment" , which depend of another > property, "CAjustComment": > > public String getShortcomment() { > if (CAjustComment.length()>15) > return CAjustComment.substring(0,14); > else >

Re: Executing action in a new tab?

2009-02-05 Thread mitch gorman
wow... having a real issue this morning with sending replies before i'm actually ready... guess the coffee hasn't made it down to the fingers, yet... sd9 wrote: > Is this possible? > perhaps it is (i have no idea if there's javascript to explicitly open a tab), but that's certainly goin

Re: Executing action in a new tab?

2009-02-05 Thread mitch gorman
sd9 wrote: > Is this possible? > I tried this: > "> > > > But it doesn't work! > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.o

Re: populate items using struts2

2009-02-05 Thread mitch gorman
juni stephen wrote: > Hi all, > > i am new to struts2.. am struggling to get the result for populating items > from DB. > > my requirement is to populate country, which is stored in DB, using struts2 > and when u choose a particular country, another select box populate its > cities, which also stor

Re: populate items using struts2

2009-02-05 Thread mitch gorman
juni stephen wrote: > Hi all, > > i am new to struts2.. am struggling to get the result for populating items > from DB. > > my requirement is to populate country, which is stored in DB, using struts2 > and when u choose a particular country, another select box populate its > cities, which also stor