newbie...but not stupid...so I thought

2005-07-27 Thread Chris Pat
Hello I have been trying for too long to get this simply to work. Below is very simple code that fails at the first attempt to retrieve the form bean method. What can possibly be wrong, it gives compiles, gives a NPE. The form bean variables are ="" in the reset method. I do know how to do it as

Re: newbie...but not stupid...so I thought

2005-07-27 Thread Chris Pat
Hi Dave That is just a leftover. The retrieved form value is from the fast of the passed in form bean. --- Dave Newton <[EMAIL PROTECTED]> wrote: > Chris Pat wrote: > > >header1Form header1Form_ = (header1Form) > form; > >String queryString = >

Re: newbie...but not stupid...so I thought

2005-07-27 Thread Chris Pat
without a cast. > > Also, a style point, by convention the names of > classes are capitalized in Java. > > -ed > > On 7/27/05, Chris Pat <[EMAIL PROTECTED]> wrote: > > Hello > > I have been trying for too long to get this simply > to > > work. Bel

Re: newbie...but not stupid...so I thought

2005-07-27 Thread Chris Pat
nonplused. ?xml version="1.0" encoding="UTF-8"?> http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> --- Dave Newton <[EMAIL PROTECTED]> wrote: > Chris Pat wrote: > >

submit action from html

2006-01-26 Thread Chris Pat
Hello I have a mini-webapp with an action/form and view. It works perfectly. However how can I simulate the submit from an html page without showing the form and requiring a manual submit from the form? I believe I want it to behave like a servlet, but process the parameters through the form bean

RE: submit action from html

2006-01-26 Thread Chris Pat
Do you mean > that you want to simulate a form submission but > without the browser? > > > > --- On Thu 01/26, Chris Pat < [EMAIL PROTECTED] > > wrote: > From: Chris Pat [mailto: [EMAIL PROTECTED] > To: user@struts.apache.org > Date: Thu, 26 Jan 2006 11:30:42

Re: submit action from html

2006-01-26 Thread Chris Pat
Jouravlev <[EMAIL PROTECTED]> wrote: > Check where the HTML FORM is posted from form.jsp > ("action" > attribute). Send your parameters to that location > directly, instead of > sending them to form.jsp. > > Michael. > > On 1/26/06, Chris Pat <[EMAIL P

Re: submit action from html

2006-01-26 Thread Chris Pat
Hi Rick, et. al. Of course, sorry. Now I see it. I was thinking my form was my action. I know better, the form is calling the action and that is what I call from the html. Sorry for wasting bandwidth,grin. --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Chris Pat wrote the followin

non-visual automatic jsp design issue + tiles-def

2006-05-19 Thread Chris Pat
Hello In a tiles-def.xml is/how it possible to have a Without going to the complexity of a making it a tile then a controller for the tile? It appears that value can only be a jsp. Alternatively is it possible to create a "non-visual" jsp that will automatically either post a value in

action -> servlet

2005-10-05 Thread Chris Pat
Hello Is/how possible to forward from an Action to a servlet even indirectly? I try with a global forwards and cant get the path right. This is to get around the design that I have the Action create the file and I just want to serve the file to a browser. My servelet does it with ServletStream

findforward w/session objects

2005-10-11 Thread Chris Pat
Hello When I use the code below the Action "playThis" claims the file attribute is null. It is not unless I am loosing the session on the findforward. How can I store a value in the session and forward to an Action? The first line of the "playThis action is String file = (String) request.getAttr

Re: findforward w/session objects

2005-10-12 Thread Chris Pat
OTECTED] wrote: > Chris Pat <[EMAIL PROTECTED]> wrote on 10/11/2005 > 05:31:03 PM: > > > Hello > > When I use the code below the Action "playThis" > claims > > the file attribute is null. It is not unless I am > > loosing the session on the findforw

Re: findforward w/session objects

2005-10-12 Thread Chris Pat
pulated before the findForward. What am I obscenely not recognizing here? Many thanks for any enlightenment. --- [EMAIL PROTECTED] wrote: > Chris Pat <[EMAIL PROTECTED]> wrote on 10/11/2005 > 05:31:03 PM: > > > Hello > > When I use the code below the Action "

html post vs javascript onclick

2005-10-14 Thread Chris Pat
Hello If I have an "strut-i-fied" html form that also has JavaScript event handlers, and onclick function calls, can I be guaranteed that the js will fully execute first before the html post in both NS & IE? It has to right? It would be preposterous otherwise. Just paranoid about all the adhoc c

multibox error

2005-10-29 Thread Chris Pat
Hello I am using TC5.5.9,JSTL1.1,Struts1.2 With this code:           I have made sure my actionForm has the s/getter for checkbox1, checkbox2 & strArray. Made sure the reset is setting the booleans to false. The page comes up without the html:multibox tag, s

cant reset form

2005-11-09 Thread Chris Pat
Hello I have an app with three fields on the form. It all works fine and I even have the Reset method assigning blank strings. The problem, Reset never works. I submit the form and the form values do not clear. This is even more unbelievable, I down TC, recompile the war, place it in webapps,

Re: cant reset form

2005-11-09 Thread Chris Pat
am not aware of anyone using reset(). If you also > need to clear the form fields, why not use a > request scope form? It sounds like you have your > form in session scope so the last submit is > always in memory; set scope="request" on the > definition and this will sol

Re: cant reset form

2005-11-09 Thread Chris Pat
hat > you have to clear it out of memory when you're > finished. > > -- Paul > > --- Chris Pat <[EMAIL PROTECTED]> wrote: > > > Thanks Pat & rajasekhar > > I will do that. > > However is there a way to stop the serialization > or > >

Re: cant reset form

2005-11-09 Thread Chris Pat
Hi Paul Sorry. The more I think about there are probably better and more secure ways to do and not to do it. I was thinking of form with fields that "remembered" the last n number of entries and made then available on a combo box in the field for repeated entry. It definitely would not be good f

struts ActionForm w blank fields

2005-11-10 Thread Chris Pat
Hello What is the best way to handle, in an Action, form fields that are blank? If you have a simple getter that just returns the field, how do you handle it when the field is not in the session b/c it was not filled in? Do I just check for fieldName==null in the getter of the ActionForm? tia.

getInitParameter struts TC5

2005-11-21 Thread Chris Pat
Hello What is the correct syntax in the struts-config.xml and the syntax in the Action, to establish/retreive an default parameter for the default application. I have tried: web.xml totalSamples 3 action String textNum =totalSamples = servlet.getInitParameter("totalSamples"); What i

odd return error

2005-11-23 Thread Chris Pat
Hello In my Action I am creating an object and storing it in a db. It works fine. The next line I then call a method on the object, does some lookups printoutsa proof that it is working and then on the return gets this message: java.lang.NullPointerException org.apache.struts.action.RequestProce

Re: odd return error

2005-11-23 Thread Chris Pat
=null"); q.setResult("count(this)"); Long count = (Long) q.execute(); System.out.println("from isAllowed count= " + count); q.close(count); pm.close(); boolean returnValue=(samples wrote: > Chris Pat wrote: > > >Can anyone provide any i

Re: odd return error

2005-11-23 Thread Chris Pat
pool of these sampleRequest. Is there a special forward that needs to be setup for these type of helper classes to return properly? I never would have expected that. --- Dave Newton <[EMAIL PROTECTED]> wrote: > Chris Pat wrote: > > >Okay the code is below. What I am d

I18n Struts problem

2007-12-08 Thread Chris Pat
Hello In my app I write the labels with and I have an ApplicationProperties.properties, ApplicationProperties_el.properties with the modified \uXXXx encoding of the labels in language. I then used this for local switching and I still get the . Am I missing something? tia.

form bean directly into session

2007-12-11 Thread Chris Pat
Hello I have a form with many, many fields on it. I would like to process some of them in my Action but get all them into the session object so my forwarded jsp can use them as the values. So may I ask: 1. How can I put the entire form bean from an action into the session scope without extrac

Re: form bean directly into session

2007-12-11 Thread Chris Pat
Hi Alberto Thank you. However, how do I refer to my placed formBean from a struts tag? How does it know the difference from my formBean and the default formBean created from ApplicationResources? Can I refer to it as: "Alberto A. Flores" <[EMAIL PROTECTED]> wrote: > I have a form with many,

formBean I18N

2007-12-14 Thread Chris Pat
Hello Is it possible to have the reset() of a formBean be internationalized? I can do it on the jsp. However how do I refer to the correct language message resource bundle in the formBean itself? tia

Re: formBean I18N

2007-12-14 Thread Chris Pat
Hi Alberto The second. To result with a localized text string for the value of the field when reset() is called. "Alberto A. Flores" <[EMAIL PROTECTED]> wrote: Do you mean changing the name of the method? Or calling the resource bundle to generate a string (using the proper

validation w/additional onsubmit

2007-12-28 Thread Chris Pat
Hello Is there a syntax to execute javascript functions before the validateFormBea? Is it simply a ";"? Also is the onSubmit handler element in tag different than the onSubmit handler in the ?

Re: just a simple onclick

2008-01-29 Thread Chris Pat
manually call the submit for testing and experimentation. Why I cant get the same call to work from the onclick tag is beyond me. I hope you can help, because the semantics says it should be trivial and simply work. Dave Newton <[EMAIL PROTECTED]> wrote: From: Chris Pat > I have

just a simple onclick

2008-01-29 Thread Chris Pat
Hello I have a simple in a set. and it just does not fire the function. However if I make the same onclick call in a it calls the function perfectly. Can someone explain? It is not typos, I have copied and pasted perfectly. I am nonplused. tia.

webapp url within action

2008-03-02 Thread Chris Pat
Hello I am trying to embed a webapp url within an html email message within an action. I am not quite sure how to make it work elegantly. I can force it with using struts to generate the url and pass it as a parameter, but that just seems wrong. Is there a better way? Also any suggestions on

setAttribute

2007-06-04 Thread Chris Pat
Hello When an object is saved to the session is it persisted anywhere or only in memory? Even transiently, is it never persisted. Now I understand how the OS may page the entire memory space, however that is beyond the level that the programmer of tool can control and is monolithic. I assume

email within action

2007-06-25 Thread Chris Pat
Hello Is it possible to send an email within an action? How/What are the issues? Is this scalable? How does it play with the framework and multiple simultaneous clients? Any insight would be appreciated.

Re: email within action

2007-06-25 Thread Chris Pat
at sort of volume are you looking at and what's the environment? Oz On 25/06/2007, at 9:35 PM, Chris Pat wrote: > Hello > Is it possible to send an email within an action? How/What are the > issues? Is this scalable? How does it play with the framework and > multiple si

Re: email within action

2007-06-25 Thread Chris Pat
deployed on tomcat5x. Oguz Kologlu <[EMAIL PROTECTED]> wrote: On 25/06/2007, at 10:33 PM, Chris Pat wrote: > Hello > How can I send the email asynchronously? My timeframe is the > lifecycle of the action and my browser session. Well you will probably not be doing the emailing a

token html

2007-08-17 Thread Chris Pat
Hello I understand half how to process the token, however what is needed on the html side to prevent re-submission of a form? If I use a struts form tag is it handled automagically? Presently, without the struts protection, I keep the url of the action in the address bar. So on refresh it re-

Re: token html

2007-08-17 Thread Chris Pat
Hi Paul Okay thanks. However for the other use cases can you answer it. Is there special html tag that is needed or do I get that for "free" with the struts:form tag? Paul Benedict <[EMAIL PROTECTED]> wrote: Redirection is the correct approach.

bean:page

2007-02-07 Thread Chris Pat
Hello I need to get the full string of my webapp, ie, http://localhost:8080/webapp/ so I can refer to it in other html tags. I see how I can use the bean:write tag with the property of application. However I dont know where is a listing of the properties that I can get out with a bean:write ta

Re: odd tiles deployment

2007-03-14 Thread Chris Pat
deployments I know it is impossible, I have been reiterating that to myself by the hour, but empirically it is true. I event tired the latest struts 1.3.8 and eliminated any conflicts, still no error but no display of data. Dave Newton <[EMAIL PROTECTED]> wrote: --- Chris Pat

caching and reload

2007-04-06 Thread Chris Pat
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 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

now inscrutable

2007-04-06 Thread Chris Pat
Hello Sorry for a second post, however I cant also fathom this. A TC5.028 project was working fine several months ago. Went back to it and it apparently still works however if I put in a simple queryStr=request.getQueryString(), I impossibly get WebappClassLoader.java cannot be found. Further

an odd application...but doable?

2007-04-09 Thread Chris Pat
Hello I need to talk to a server and parse the response. I will be running TC on a specified port. I would like to use an Action to format and process the request parameters and then forward to the full web url of the server. I believer I can do this with a simple forward in the Struts framewor

newbie alert: forward to a php script

2007-04-16 Thread Chris Pat
Hello Is it possible to have an Action that processes some data and then posts to a url completely out of control of the framework? I want to process and write to a db first and then using the same parameters and any added session variables post to a php script, initially running on localhost b

Re: newbie alert: forward to a php script

2007-04-16 Thread Chris Pat
scalable, but I just have to get it done. Thanks for even the slightest insight, even if saying it is utterly stupid, grin. Laurie Harper <[EMAIL PROTECTED]> wrote: Chris Pat wrote: > Hello > Is it possible to have an Action that processes some data and then posts to a > url co

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hello Sorry for the persistence/naivete of this, however can someone tell me if this is possible and how? It will be a learning experience for me and I appreciate any insight. Chris Pat <[EMAIL PROTECTED]> wrote: Hi Laurie Thanks. All I need is to send a HTTP Post request to the php

Re: newbie alert: forward to a php script

2007-04-17 Thread Chris Pat
Hi IG That looks like the object. Thanks. Information Guzzler <[EMAIL PROTECTED]> wrote: Hi Chris, HttpClient would be an alternative to generate HTTP POST request. For info. refer http://jakarta.apache.org/commons/httpclient/ /I On 4/17/07, Chris Pat wrote: > > Hello >

Re: newbie alert: forward to a php script

2007-04-18 Thread Chris Pat
by another poster, would probably be the easiest way to build and submit the HTTP request. L. Chris Pat wrote: > Hi Laurie > Thanks. All I need is to send a HTTP Post request to the php script with > the parameters that the Action received, but having done some processing in > the A

action forward to servlet

2007-04-30 Thread Chris Pat
Hello Is/how it possible to forward from a action to a servlet at another url and preserve the parameters and session objects? I am doing all the processing in the Action and just simply need to send a data stream back. I can do it with servlets, but cant seem to do it with an action and a ser

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Felipe Thanks, that I got. My conceptual difficulty is I dont see how to define a global forwards for the servlet and call it in my request.mapping.FindForward("forwardToServlet"), or maybe it is brain-fade Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Preserver de session? Session is already

Re: action forward to servlet

2007-04-30 Thread Chris Pat
Hi Laurie I had used Request.dispatcher before but only in servlet code; didnt know/realize I could do it in an Action. I see the key is to make that one of the states that will always be called and just trick Struts with the return of the null. I assume the technology is orthogonal enough tha

populate form bean

2008-03-11 Thread Chris Pat
Hello Excuse my niavete, but I have never used a formbean for other than retrieving string data from a form. For output I have just used simple struts and jstl for output. Now I want to reverse it and would like to use more sophisticated struts tags with collections in the form bean. Simple (

tc5.x caching jsp

2008-04-10 Thread Chris Pat
Hello I have a reset() that generates a random number. However after the first page view the same number persists. How do I stop this caching by the server? tia.

xerces problems

2008-04-12 Thread Chris Pat
Hello I get the following when I run a app with TC 5.0.28+ but oddly NOT with 5.0. Can someone help me with the understanding and proper config to fix this Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

tiles problem

2008-04-16 Thread Chris Pat
Hello I two different deployment of Tomcat with an app that work fine in 5.0.27 but fails in 5.0.28. Looking at the startup the only difference I can see this time is that the 5.0.27 loads this: org.apache.struts.tiles.TilesPlugin initDefinitionsFactory and the 5.0.28 does not. Is there a way

Re: tiles problem

2008-04-16 Thread Chris Pat
server.xml and web.xml. Could it be an extra library? But obviously it is in the struts library and it is being loaded. tia Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2008/4/16, Chris Pat : > > I two different deployment of Tomcat with an app that work fine in 5.0.27 > but fails in 5

tiles catch-22

2008-04-25 Thread Chris Pat
Hello Is it possible to parameterize the from an "inner tile"? I have a template that specifies the pagewrapper,banner, menubar, left column. I want to change the right column content with a jsp fragment and on that fragment create a bean name="titleThis" that has the specific title of page fr

javascript struts

2008-06-04 Thread Chris Pat
Hello Is/how it possible to process a js array into an array structure or multiple name/values input elements with struts? Then how would the form bean be structures? As a simple field of type arraylist? Finally what would the action be as simple as a getter of the arraylist? tia.

programatically unload action

2008-06-19 Thread Chris Pat
Hello Is/how possible to unload an action? I am using TC5.028. This is for demo only, I will fix it in production, but need it now. Thank you for any enlightment

page level bean into value

2008-07-09 Thread Chris Pat
Hello I have defined a page level bean () and I can get at its members, however I cant get the damn syntax right to expose the members in a struts html:text tag.  I have tried or even "/>.  Is it possible?  What is the syntax?  tia.

Re: page level bean into value

2008-07-09 Thread Chris Pat
e it didnt here.  What framework/jars do I need to get this to work with Tomcat 5.0.28?  Yes I should upgrade, I just want to get this work first.  Any ideas/edification appreciated. --- On Wed, 7/9/08, Chris Pat <[EMAIL PROTECTED]> wrote: From: Chris Pat <[EMAIL PROTECTED]> Subject