RE: can't use JFreeChart plugin so ...

2007-10-09 Thread REMIJAN, MICHAEL J [AG/1000]
Do NOT use getRealPath("/")!!! If you read the API for this method it says this functionality is optional and does not have to be supported, particularly if the application is deployed as a WAR. It just so happens to work in Tomcat but in most real EE servers this method does not return anything.

Struts2 and JBoss 5.0.0 Beta2 deployment problem

2007-09-10 Thread REMIJAN, MICHAEL J [AG/1000]
DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Deployed: vfsfile:/C:/jboss/jboss-5.0.0.Beta2/server/default/deploy/moss-homepage. war Michael J. Remijan Senior Application Developer Web Portal Development Team G3619W (314) 694-5491 (w) (314) 288-4662 (c

Struts2 and JBoss 5.0.0 Beta2 deployment problem

2007-09-05 Thread REMIJAN, MICHAEL J [AG/1000]
DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Deployed: vfsfile:/C:/jboss/jboss-5.0.0.Beta2/server/default/deploy/moss-homepage. war Michael J. Remijan Senior Application Developer Web Portal Development Team G3619W (314) 694-5491 (w) (314) 288-4662 (c

RE: How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! REMIJAN, MICHAEL J [AG/1000] wrote: > Newbie question here. Suppose I have action, "helloworld.action" which

How to access the ActionForm in a JSP?

2007-09-04 Thread REMIJAN, MICHAEL J [AG/1000]
don't need to use tags. I just want to display data. Michael J. Remijan - This e-mail message may contain privileged and/or confidential information, and is intended to be received

Struts2 and JBoss 5.0.0 Beta2 deployment problem

2007-08-31 Thread REMIJAN, MICHAEL J [AG/1000]
DEBUG [org.jboss.deployers.plugins.deployment.MainDeployerImpl] Deployed: vfsfile:/C:/jboss/jboss-5.0.0.Beta2/server/default/deploy/moss-homepage. war Michael J. Remijan Senior Application Developer Web Portal Development Team G3619W (314) 694-5491 (w) (314) 288-4662 (c

Announcement: Easy Wizard Web Flow library

2005-04-20 Thread Michael J.
Hello guys, I looked in the Apache mailig list rules and found no restrictions on posting announcements, so I hope this message would not be considered unappropriate. I would like to announce a project, which helps to create robust and controlled flow of application pages. Easy Wizard is primaril

Re: Using checkbox to delete items

2005-04-20 Thread Michael J.
I was [virtually] beaten up for updating domain model in GET request ;) And I agree, this is not a good practice. I personally tolerate deleting an item from a table using link, because having table with links saying "Delete" is nicer, than having table with bunch of buttons. But in this particular

Re: single action for multiple forms

2005-04-20 Thread Michael J.
If these are input pages, then who cares how many of them and what are they. All they send to the server is an HTTP request. It is up to you to build search expression out of it. That is the power of Struts comparing to page-oriented event-driven frameworks ;) If you want to accept input from these

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
On 4/19/05, Shihgian Lee <[EMAIL PROTECTED]> wrote: > > What you demonstrate here I would also argue is worse for page authors, > > who now have to be concerned with script writing as well as layout of > > simple HTML tags. You can argue that a page author would know > > Javascript as well, and yo

Re: html:text area

2005-04-19 Thread Michael J.
On 4/19/05, Srilatha Salla <[EMAIL PROTECTED]> wrote: > Hi, > Can we restrict the length of textarea with any of the attributes? > I have textarea that should not accept more than 250 characters, so I want to > know if I can restrict the length with textarea attibutes. See: http://struts.apach

Re: Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-19 Thread Michael J.
1) You checked that button value does not contain whitespaces? By the way, cannot action strip whitespaces itself? It even generates error message about this! Stupido. A method cannot contain spaces anyway. 2) Get HTTP sniffer or use Firefox and Live HTTP Header plugin. Oh, you say it is IE-specif

Re: showing data

2005-04-19 Thread Michael J.
On 4/19/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > yeap. i have that... But i want to know what i have to do in the > detail jsp. I mean, how can i populate in the detail jsp using that > id. > > i have an lstCustomer object in my actionform. when i'm in detail jsp, > is it still populated? o

Re: JSF vs Struts

2005-04-19 Thread Michael J.
On 4/19/05, Murali <[EMAIL PROTECTED]> wrote: > > Hi, > > I was trying to find which would be best choice for a website development. > JSF or Struts. JSF looks similar to Struts. does any one know any articles on > which framework should go for. If you don't have experience with either, than o

Re: showing data

2005-04-19 Thread Michael J.
On 4/19/05, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks. I have a problem. i don't really know how to do that.. > > i have a jsp it shows a list of customers. but for each costumer there > is a link to another jsp called detail. > > my problem is i don't know how to connect both jsp. i p

Re: Using checkbox value in Validator validwhen test

2005-04-19 Thread Michael J.
It is a classic. Look on Ted Husted's website for tip. Basically, you need to clear checkbox value each time in the reset() method of a form bean, because cleared value is not sent to server. So you think that you cleared it, but it is still set (do you use session-scoped form bean?) Michael Jou

Re: Token question

2005-04-19 Thread Michael J.
On 4/19/05, Derrick Koes <[EMAIL PROTECTED]> wrote: > > if (null == request.getParameter(Constants.TOKEN_KEY)) { > saveToken(request); > } > else { > if (!isTokenValid(request, true)) { > response.sendError(HttpServletResponse.SC_CONFLICT, "The request > received was out >

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
On 4/19/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > I like fast download times, but I hate the web: I want any page that's > more complicated than "Here, download this, you'll be better off" to > have functionality that doesn't make me wait all the time. For a server > round-trip. Sometimes it'

Re: Using validate() and returning to original page dynamically

2005-04-19 Thread Michael J.
On 4/19/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 11:06 PM -0700 4/18/05, Michael J. wrote: > >2) You can set the params too, it is not a big deal. Do not edit > >existing ActionForward from findForward, instead create a new one and > >append query parameter

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
> Sometimes it takes more developer effort/technology to create something > that's easier to use. Sometimes it doesn't. But to say that > client-side scripting is completely unnecessary for "well designed" > application UIs is incorrect, IMO. It depends on what your users need > to do. People j

Re: AJAX: Whoa, Nellie!

2005-04-19 Thread Michael J.
Since this group is more crowded, I took the liberty to crosspost a portion of my message, that I mistakingly sent to dev group. Struts-only or JSP-only solution is not good enough. The more portable is the better, so when I read Frank's proposal I thought, why those input controls are generated w

Re: Using validate() and returning to original page dynamically

2005-04-18 Thread Michael J.
Hi Nic, Struts does not allow to do things like this declaratively, but you can do it manually. 1) you can obtain mapping name from the ActionMapping. This will solidify the mapping name where you want to return, in code. I am not sure that this is worse that to solidify it in struts-config.xml,

Re: Identify users

2005-04-18 Thread Michael J.
Struts and web browser already verified it for you. The whole point of establishing a session is to correlate a browser to the server. Browser already sends a cookie containing session ID to the server along with each request. So as long as you can retrieve the user object from the session, corresp

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Michael J.
>From wiki: > No one should be under the impression that you have to deal in XML > or that you have to use the XMLHttpRequest object at all, contrary > to the meaning of the AJAX moniker. Not that I really care about the name, but for me you do not use Ajax if you do not use async HTTP calls, eith

Re: AJAX: Whoa, Nellie!

2005-04-18 Thread Michael J.
This is all great, and ajax definetely rules, but is it OK to use other's pictures without giving credit to their author, who by the way, came up with this name: http://www.adaptivepath.com/publications/essays/archives/000385.php ---

Re: getResources(HttpServletRequest) in ActionForm?

2005-04-17 Thread Michael J.
On 4/17/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael J. wrote the following on 4/16/2005 2:24 PM: > > Action class defines getResources(HttpServletRequest) as follows: > > > > protected MessageResources getResources(HttpServletRequest request) { >

Re: getResources(HttpServletRequest) in ActionForm?

2005-04-16 Thread Michael J.
Oh, it is protected. Then just cut and paste: return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); Michael. On 4/16/05, atta-ur rehman <[EMAIL PROTECTED]> wrote: > Hi all, > > Action class defines getResources(HttpServletRequest) method, thru > which I can get access to Messa

Re: getResources(HttpServletRequest) in ActionForm?

2005-04-16 Thread Michael J.
Action class defines getResources(HttpServletRequest) as follows: protected MessageResources getResources(HttpServletRequest request) { return ((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)); } I don't see why this method is not static. Hopefully, this will be refactored. Anywa

RE: SessionState vs. request state.

2005-04-15 Thread Michael J.
I prefer to store everything on the server. It gives better control over data and application state. > Brian > > I vote for storing information in session variables for > the simple reason most Admins do not allow Browsers > writing cookies on the hard drive for fear of introducing > viruses to

Re: Multi Step Forms

2005-04-15 Thread Michael J.
> I have a situation where i need to have a multi screen form, lets say 3 > steps. On \ > the successfull validation of the 3rd step. I want to save the data into the > DB. \ > This data would have been collected starting on step one, through step 3 and \ > ecapsulated in 1 or more objects. >

Re: How to create a web flow with Struts

2005-04-15 Thread Michael J.
Hi guys, I am using Struts for three years, but only now decided to join the user group. About the web flow: would you like to take a look at approach, alternative to Spring Web Flow? I started thinking on flow engines when IBM's Servlet Manager still was around, but only lately I came up with some