Accessing request.ServletPath()

2004-02-24 Thread Fedor Smirnoff
Hi, I am trying to compare the current path of a .jsp file to the link to make sure I display the correct button image active vs. inactive, so I would like to do request.getServletPath() but with logicEqual something like this It doesn't work, any ideas? Thanks Fedor --

RE: Two actionForm in the same Action

2003-11-12 Thread Fedor Smirnoff
Hi, You can do something like this: HttpSession session = request.getSession(); RechForm rechForm =(RechForm)session.getAttribute("rechForm"); Hope it helps Fedor -Original Message- From: Zakaria khabot [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 6:39 AM To: struts-user

calling previous ActionForm

2003-10-16 Thread Fedor Smirnoff
Hi, I need to access a method within an ActionForm that was used by the Action that send a redirect to my current action. So Action A using ActionForm A and after done processing redirects to Action B that uses ActionForm B, question how can Action B access ActionForm A Thank you Fedor ---

RE: Dynamically populating tile lists at runtime for menus - Is it possible?

2003-10-01 Thread Fedor Smirnoff
I am not using putList myself but if you looking to dynamically construct complex tiles have you looked into UrlController? http://jakarta.apache.org/struts/api/org/apache/struts/tiles/UrlControll er.html http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Hope it helps Fedor -Or

Re: problem with tiles after moving to rc2

2003-07-11 Thread Fedor Smirnoff
Ok, thats interesting. I had to specify a full path now to the tiles for them to be imported correctly so if before I had something like: now I have to do: I wonder why this was changed. Thanks, Fedor --- Fedor Smirnoff <[EMAIL PROTECTED]> wrote: > Hey guys, just

problem with tiles after moving to rc2

2003-07-11 Thread Fedor Smirnoff
Hey guys, just wanted to check if anyone had a problem with tiles after upgrading to rc2. All I get is a blank page now where tiles used, regular sections work without a problem after changing perform() to execute() Sincerely, Fedor __ Do you Yahoo!? SBC Yahoo! DSL

RE: Dynamically changing forward in ActionForm

2003-07-08 Thread Fedor Smirnoff
Hey, I think that global forward is the best solution for it as Neil mentioned. However, I havent tried this yet but would it be possible to include login check into lets say GeneralAction that extends Action, and than every other action will extend GeneralAction. So basically this action being in

findForward question

2003-07-01 Thread Fedor Smirnoff
explain I am confused in that case why forward wouldnt work. = Sincerely, Fedor Smirnoff Sun Certified Java Programmer http://www.olnix.com __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc

Re: setting input for action

2003-07-01 Thread Fedor Smirnoff
Thanks Troy, you right this does help. I was thinking actually between two solutions after some research, one utilizing DispatchAction and regular ActionForm and another simply separating create/update/delete into 3 actions, 3 .jsp views all using 1 formbean, more work but full control. However, yo

setting input for action

2003-06-30 Thread Fedor Smirnoff
Hi I have a following situation: 2 .jsp views (New and Edit) using 1 actionform (Product1) calling 2 separate actions(1 each) 1 is editAction product 1 is newAction product both actions will call third SaveAction at the end However depending on which Action(new or edit) user came from, differen

RE: ActionForm DB validation

2003-06-25 Thread Fedor Smirnoff
Hey, I wanted to find out if its acceptable to access database in the validation stage of SOMEActionForm. Basically when a user enters email address to subscribe, I need to check if it already exists in the database, should I do it in SOMEAction or SOMEActionForm? Thank you Fedor ___

search at nagoya.apache.org

2003-06-22 Thread Fedor Smirnoff
Guys, is it just me or search have not been working for a couple of days at http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED] Thanks, Fedor __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-22 Thread Fedor Smirnoff
roblem and I fixed it by > synchronizing the Arraylist during > the write(add) process. > > synchronized (this.myArrayList) { > this.myArrayList.add(someElement); > } > > Hope this helps. > > Kind regards, > > -Oorspronkelijk bericht- > Van:

Re: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-21 Thread Fedor Smirnoff
will get > this > error. > > If you are using EJB CMP then you need to know how > relationships work because it is easy to run into > this. > > sandeep > --- Fedor Smirnoff <[EMAIL PROTECTED]> wrote: > > Hi I asked similar question and yet did not

Re: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Fedor Smirnoff
Hi I asked similar question and yet did not get an answer, I dont know why its happening in my case, however, I know that ConcurrentModificationException is thrown when a thread is trying to modify a collection while another thread is still iterating it. Dont know if it helps you or not sorry. Sin

Re: ConcurrentModificationException when returning ArrayList

2003-06-19 Thread Fedor Smirnoff
Hmm, interesting, it works fine if colorOptions is returned as array of Strings, however ArrayList still not working and comes back with this exception, any ideas how to make ArrayList or other Collection work? Thanks, Fedor --- Fedor Smirnoff <[EMAIL PROTECTED]> wrote: > I am get

ConcurrentModificationException when returning ArrayList

2003-06-19 Thread Fedor Smirnoff
I am getting this problem and unfortunatelly search tool for the list is off line right now. So, I am trying to populate the form with general options before submitting. I am doing something like this, right off the struts HOW TO where colorSelected is a String with getter and

Re: Struts Studio

2003-06-17 Thread Fedor Smirnoff
Wow, didnt know there is one. Going to certainly try it and hey maybe its easier than with JBuilder 8 :) Fedor --- António Santos <[EMAIL PROTECTED]> wrote: > > Does anyone here use this Struts IDE? > > http://www.exadel.com/products_strutsstudio.htm > > I've been using it I'm finding it great

JavaServer Faces and Struts

2003-06-06 Thread Fedor Smirnoff
Hey guys, Just read an article on JSF and it sounds pretty interesting, one problem though, writer says its not compatible with Struts. Have anyone tried? What do you think of it, did anyone succeeded in making it work with Struts. Thanks, Fedor __ Do you Yahoo!?

Custom taglibs or .....

2003-06-06 Thread Fedor Smirnoff
Hey guys, I am very new to Struts and trying to write my frist application for it. Here is my question, I am used to using custom taglibs heavely in order to make designers life simple. Now if I am developing on Struts framework would the same rule apply or there is a better alternative. For exampl

Re: JavaServer Faces and Struts

2003-06-06 Thread Fedor Smirnoff
Oh this is great!! Yes, either they have no idea whats going on or, JSF cam a long way since article was published in April http://www.ftponline.com/javapro/2003_04/magazine/columns/weblication/default.asp THanks fedor --- Ted Husted <[EMAIL PROTECTED]> wrote: > Fedor Smirnoff wrote: >

Re: JavaServer Faces and Struts

2003-06-06 Thread Fedor Smirnoff
Here it is, its not much, just an overview: http://www.ftponline.com/javapro/2003_04/magazine/columns/weblication/default.asp Fedor --- Gene Campbell <[EMAIL PROTECTED]> wrote: > Where's the article? Sorry, can't answer your > questions. > > thanks - gene >

ServletException in a tile

2003-06-04 Thread Fedor Smirnoff
Hi, weird problem I got a tile that using some custom tags, its works fine in Tomcat 4.0, in 4.1 every other refresh it shows ServletException in menu.jsp(which is a name of the tile) I know its hard to tell what the problem is, Is there a way to get a more complete message on what is the generated