Passing parameters

2025-03-06 Thread Ed
Hi, I tested an example with struts 7.x (https://github.com/apache/struts-examples/tree/main/control-tags) and when edit `personBean` can't send to the form. If I have a string or a map can send to the form, but object not. Thank

RE: How to auto submit a jsp page after loading

2019-10-06 Thread Rouse, Ed
From: Lukasz Lenart Sent: Thursday, October 3, 2019 8:27 AM To: Struts Users Mailing List Subject: Re: How to auto submit a jsp page after loading [External email: Use caution! Do not open attachments or click on links from unknown senders or unexpected emails.] czw., 3 paź 2019 o 13:57 alber

Re: Problem with LocaleAction

2009-05-23 Thread Ed
I have realized that LocaleAction is not receiving the form bean, the error message "No bean specified" triggers. Why ?? Ed escribió: Hi, my links to change local dont work !!, here my code: --- links: Español · English --- form-beans:

Problem with LocaleAction

2009-05-22 Thread Ed
Hi, my links to change local dont work !!, here my code: --- links: Español · English --- form-beans: type="org.apache.struts.action.DynaActionForm"> --- actions: Also having the corresponding ApplicationResources_en_US.propert

Login page first time display

2009-05-14 Thread Ed
Im using Tiles, in my sidebar "tile" I have a link to a login action, as follows: Login and mapped in struts-config like this: Then I have the corresponding ActionForm and Action The problem comes when I click the link, Action's execute method is invoked. In execute method I do s

Re: Struts 2 j4 and spring Error

2007-10-18 Thread Ed Knutson
I also have noticed some classloading issues with the j4 distro. In my case, WebSphere 6.0 is not able to load a retrotranslated version of the sitemesh plugin. I think in your case, the preferred method of integrating Spring is to put the following line in struts.properties (this file is searche

Re: Struts2 sitemesh problem finding xwork2

2007-09-18 Thread Ed Knutson
I am having a similar problem with WebSphere 6.0 using the j4 distro (I had to retrotranslate the Sitemesh plugin). In my case, the NoClassDefFoundError was for org.apache.struts2.sitemesh.TemplatePageFilter, which per the docs is to be used in place of com.opensymphony.module.sitemesh.filter.P

Is it hard to migrate from struts 1.2.x to 1.3.x ??

2007-09-05 Thread Ed snooper
Hello, In general is it hard to migrate an existing application from struts 1.2.x to 1.3.x? Ed - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.

HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-30 Thread Ed snooper
Hello kind person, I have a struts application that was working fine, but when I tried to move it to another server it started throwing the below error messages. Why is it trying to pull the DTD remotely? How can I fix? Thanks for any and all help Ed struts-config_1_2.dtd

WebSphere 6.0 Sitemesh plugin issue

2007-07-19 Thread Ed Knutson
I am building an application using Struts 2.0.8 on a WebSphere 6.0.2.17 ND server. Another application on this server uses Webwork 2.2 with Spring and Sitemesh 2.3 and I was hoping the transition to Struts 2 would be relatively smooth. This app server uses the 1.4.2 JVM and I am using the j4 b

Re: Populate two fields with one value

2007-05-18 Thread Ed Griebel
You should probably be doing this in your action class, not your JSP. If it should always be set to acc.firstName, then you could just hardcode a hidden field: On 5/18/07, Mansour <[EMAIL PROTECTED]> wrote: how to populate 2 fields in my action with one value ? for example I need to populate th

Re: IDE for struts-enabled web application

2007-03-30 Thread Ed Griebel
n probably get away with using Tomcat for development and deploying the war/ear to ServletExec occasionally to verify correct functioning. -ed On 3/30/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > I don't want to use MyEclipse too as my company > won

Re: Book recommendations for performance tuning

2007-03-22 Thread Ed Griebel
I'd second that book recommendation. I've read it and there's a lot of good tips in there. On 3/22/07, Karr, David <[EMAIL PROTECTED]> wrote: One I like is "Pro Java EE 5 Performance Management and Optimization", by Steven Haines. Note that Steven Haines is associated with Quest Software and Jp

Re: Time of displaying data on the page

2007-03-20 Thread Ed Griebel
lso get a fourth javascript function to run in so you could get a timestamp of how long it takes for the browser to render your page. Good luck, -ed On 3/20/07, puchacz <[EMAIL PROTECTED]> wrote: Hi Hi If anybody could tell me, how can I measure the time of displaying some data on the s

Re: Please help: Struts tags don't evaluate any expressions

2007-03-16 Thread Ed Griebel
I've done EL expressions like you want to do. Try using the -el version of the html tag: On 3/16/07, irene <[EMAIL PROTECTED]> wrote: Hi, I have a problem with Struts tags. I can't use any expression (EL, runtime) in the tag attributes : The result is an error: Invalid argument l

Re: Need Help -Urgent

2007-03-14 Thread Ed Griebel
Textarea doesn't support the maxlength attribute: http://www.w3.org/TR/html4/interact/forms.html#h-17.7 On 3/14/07, Sachin <[EMAIL PROTECTED]> wrote: > > Hi , i am using below snippet and i am getting the following error : CP Description Error: [3/14/07 14:57:52:094 EST] 715b61a

Re: Two Struts validation problems

2007-03-03 Thread Ed Griebel
us" conversions like above, but if native types are used then the formbean can also be used as a data transfer object for the database layer, removing a set of DTO (a.k.a. DO, VO, etc) classes. Of course, using LazyDynaBeans and their ilk let you have the best of both worlds :-) -ed On 3/

Re: DynaValidatorForm and BigDecimal problem

2007-03-01 Thread Ed Griebel
ng display field and a second field that is a non-string, and have this populated by your action after validation succeeds. -ed On 3/1/07, Gundersen, Richard <[EMAIL PROTECTED]> wrote: Hi Has anyone had problems with BigDecimal and DynaValidatorForms? I've got a form with two f

Re: Validation Framework and DispatchAction

2006-12-28 Thread Ed Griebel
s.apache.org/1.x/struts-extras/dispatchValidator.html HTH, -ed On 12/28/06, Andy Foster <[EMAIL PROTECTED]> wrote: Thanks Wendy, Switching validation off in struts-config and invoking manually in each method where required will work. This can be done as follows: // validate ActionMes

Re: Preprocessing of request

2006-12-15 Thread Ed Griebel
On 12/15/06, Anil Kumar T <[EMAIL PROTECTED]> wrote: Hi ... Thanks to Ed and Frank for explaining this.. I understand it. One more question was .. is there a way to avoid mandatory calling it in all the sub actions, instead the call should happen automatically. For Ex : I b

Re: Preprocessing of request

2006-12-14 Thread Ed Griebel
() or super.doSetup(). But, like Frank said, it would be better to decouple your logic from Struts by implementing a servlet filter which will work regardless if using struts 1.2, 1.3, 2.0, or just plain old servlets+JSPs. HTH, -ed On 12/14/06, Anil Kumar T <[EMAIL PROTECTED]> wrote: Hi

Re: log4j configurations?

2006-12-13 Thread Ed Griebel
I've never used Exadel, but you can try to look for a WEB-INF/classes or WEB-INF/lib directory in your project, they are usually included in IDE-based execution. HTH, -ed On 12/13/06, Mallik <[EMAIL PROTECTED]> wrote: Hi friends i am working on struts in Exadel studio i am gettin

Re: Displaying a JSP in a pop-up window

2006-12-05 Thread Ed Griebel
The trick is to use the target="xx" parameter in the generated tag. Try something like this: In your jsp you will have . In your struts-config you will have http://struts.apache.org/1.2.7/userGuide/struts-html.html#link http://www.onjava.com/pub/a/onjava/2002/10/30/jakarta.html?page=

Re: Query

2006-12-05 Thread Ed Griebel
Start here, it doesn't get much clearer than this, and google for unfamiliar terms: http://www.learntechnology.net/struts-lesson-1.do On 12/5/06, Jagaran Bubai Das <[EMAIL PROTECTED]> wrote: I hav done that... but how to install and run the sample application i am not clear.. it would be gre

Re: How to get a dynaform in the Action class ?

2006-12-01 Thread Ed Griebel
I prefer dynaforms as I don't need *any* explicit formbean classes. With a good-sized application there's 30 classes I don't need to maintain. For a further reduction, use Lazy-flavor Dyna beans, then no changes to XML are required, just change the action class and JSP. -ed On

Re: VALIDATION

2006-11-30 Thread Ed Griebel
Sorry, I assumed you were using S1, I don't know how for s2. On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? -Mensaje original- De: Ed Griebel [mailto:[EMAI

Re: VALIDATION

2006-11-30 Thread Ed Griebel
;Errors detected!!"); return mapping.getInputForward(); } HTH, -ed On 11/30/06, Juan Espinosa <[EMAIL PROTECTED]> wrote: hi to all, im having some problems with validation i have an action named RegisterCustomer with three methods and an object RegisterCustomer implements ModelDriven

Re: Validation XMl entity

2006-11-24 Thread Ed Griebel
the J2SE java XML libraries. -ed On 11/24/06, Vishal Seth <[EMAIL PROTECTED]> wrote: Hi, Does struts validation support XML entity. Thanks Vishal MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the

Re: need help in Tag-lib

2006-11-24 Thread Ed Griebel
. As far as having iterated fields populate into a vector (usable in your Action via a formbean, I assume?), there are many examples on the internet of how to do this, you could start with http://struts.apache.com or http://www.learntechnology.net/ HTH, -ed On 11/24/06, Prashant Saraf <[EM

Re: html form

2006-11-22 Thread Ed Griebel
In short, no. You should create hidden fields for each of the params you want to pass. On 11/22/06, temp temp <[EMAIL PROTECTED]> wrote: I have a html form Display OptionsShow 10 Show 20 Show 50 Show 100 Show 200 When I receive request posted

Re: can not reach the jsp file

2006-11-17 Thread Ed Griebel
ly already done this, but make your jsp very simple, just "hello" will do HTH, -ed On 11/16/06, Ken Hu <[EMAIL PROTECTED]> wrote: Dear All: I'm doing a simple strus test, but all I can see after I try to visit "ShowDocs.do" is a blank page. struts-config.xml:

Re: Dynamically adding row!

2006-11-15 Thread Ed Griebel
It's worked for me using a LazyDynaBean as the formbean and java.util.Map as the contained object for a given property, and the framework does populate new records into the contained map for me. -ed On 11/15/06, Lance Semmens <[EMAIL PROTECTED]> wrote: I realize your field names hav

Re: setting an an html:text value with another html:text

2006-11-14 Thread Ed Griebel
This general approach would work, but if you can use JSTL, it could be written much cleaner as: ... You may be able to get away with not even having the statement and using just ${editable} On 11/14/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: On 11/14/06, Adam K <[EMAIL PROTECTED]> wrote:

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-14 Thread Ed Griebel
I use the NitroX 2.x plugin for Eclipse (now BEA Web developer or somesuch) and I too have this problem occasionally. Usually when this happens doing Project->Clean... will clear it up as this forces the NitroX plugin to rebuild its internal database. It doesn't always work, though. -e

Re: Dynamically adding row!

2006-11-14 Thread Ed Griebel
You can have a form auto-populate from the javascript-generated fields, you just need to be careful what you call the generated field names. It will be hard-coded and none too attractive, but it will work. Look at the rendered HTML to see what format the field names are as an example. HTH, -ed

Re: Validation + multiple Submit buttons

2006-11-14 Thread Ed Griebel
/1.2.7/api/org/apache/struts/actions/LookupDispatchAction.html HTH, -ed On 11/14/06, Andrew Martin <[EMAIL PROTECTED]> wrote: JS Free, clunky UI you don't have to tell us! But those are the restrictions we are working on. It basically means additional actions/forms/JSP's wh

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-14 Thread Ed Griebel
Guide/configuration.html#dd_config_taglib_23 -ed On 11/10/06, robin bajaj <[EMAIL PROTECTED]> wrote: Or actually you can just get it from your project structure, depending upon your jsp and tld location. Say your jsp is in WebRoot/ [[ webRoot/abc.jsp ]] and your tld is lying in web-Inf/struts-logic.

Re: DispatchAction help?

2006-11-13 Thread Ed Griebel
equest); if ( errors != null && errors.size() > 0 ) { saveErrors(request, errors); return mapping.getInputForward(); // if action defines input= in struts-config.xml } -ed On 11/13/06, Mallik <[EMAIL PROTECTED]> wrote: HI friends i am using DispatchAction but i don't wa

Re: html messages tag

2006-11-13 Thread Ed Griebel
with debugging support) will contain the line in the JSP that caused the exception which can help a lot in localizing the problem. -ed On 11/13/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: I am using html messages tag to do custom formatting of my error messages on different pages. I have som

Re: logging initialization order

2006-11-12 Thread Ed Griebel
it is much simpler to just put a minimal log4j.xml file in your classpath, which would solve your problems with this. HTH, -ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: object[] to string[]

2006-11-10 Thread Ed Griebel
On 11/10/06, Martin Gainty <[EMAIL PROTECTED]> wrote: I dont know 'pendantic' so I would suggest System.arrayCopy as in (Sorry for being pedantic...) LOL, TGI Friday! :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: iterate through two collections

2006-11-10 Thread Ed Griebel
Try using . indexId should be replaced with 0, 1, 2, ... as it iterates and the underlying BeanUtils will extract the n-th element from the collection. I don't think this will if you are using an unsorted collection (set, map) because they don't support get(int) On 11/10/06, Van Nguyen <[EMAIL P

Re: object[] to string[]

2006-11-10 Thread Ed Griebel
Maybe I'm just being pendantic, but this isn't really related to Struts at all. java.util.Arrays and java.util.Collections provide a lot of methods to transform between arrays and collections. You will find your answer after some reading and some experimentation. On 11/10/06, temp temp <[EMAIL P

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Ed Griebel
act value of off the top of my head, you probably want to use ${requestScope.contextPath}. If you're not in a JSTL 2.0 environment you'll have to surround it with . Also, the path after the ${} will have to match what directory you put it into when you build your war file. -ed On 11/9/06,

Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread Ed Griebel
What happens when the JSP is converted to HTML, it is sent to the browser. The browser then tries to access the css and js files from the webserver, but since the HTML points to web-inf, it won't serve them. One way to do it is to create an action mapping that is just defined as a ForwardAction,

Re: Struts problem, random properties after every restart of server

2006-11-08 Thread Ed Griebel
try to isolate that problem. -ed On 11/8/06, Philippe Schober <[EMAIL PROTECTED]> wrote: Hi, I am using Struts on Orion 2.0.5 and have some languages (de, sv, en, tr and so on). "en" is the default language (ApplicationResources.properties). The problem I have only occurs on

Re: how recover a map of a bean in a "select list" of the jsp and to post the data ?

2006-11-06 Thread Ed Griebel
You need to use either or to iterate over your beans. This deals with arrays but is useful for how to use the iterator and how to populate a select list: http://husted.com/struts/tips/006.html HTH, -ed On 11/6/06, nalimoussa <[EMAIL PROTECTED]> wrote: Hi everybody, I have to create

Re: DynaActionForm indexed properties

2006-11-02 Thread Ed Griebel
If you are using basic arrays you need to create an array for the item before the JSP is displayed. You might want to use a java.util.List instead, you don't need to pre-allocate when using Dyna forms. HTH, -ed On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi, This is the f

Re: logging system initialization

2006-10-30 Thread Ed Griebel
.xml files in the classpath, the first one log4j finds is what is used, which is probably not the one intended. -ed On 10/30/06, Chris Pratt <[EMAIL PROTECTED]> wrote: If you need to initialize anything before the rest of the system gets a hold of it (like

Re: logging system initialization

2006-10-30 Thread Ed Griebel
sing. HTH, -ed On 10/30/06, Ping Yu <[EMAIL PROTECTED]> wrote: People in the list, I have my own log.java, and I would like to make a call to my own log definitions before initialize/using the digester (org.apache.commons.digester.Digester). However, I have no idea how to call my ow

Re: Session tracking in struts?

2006-10-28 Thread Ed Griebel
dated, you can set a flag in the session that they have been validated and don't worry about re-authentication. -ed On 10/28/06, Mallik <[EMAIL PROTECTED]> wrote: HI friends In my application i want to test session valid or not before affaring any service to the user. that means, on

Re: Tags nested

2006-10-27 Thread Ed Griebel
Or in a JSP 1.0 environment, use the EL Struts libraries: wrote: Juanjo Cuadrado wrote: > > > I think that JSP spec firbids this. The inner ${dataQueries.name} -- Mikolaj Rydzewski <[EMAIL PROTECTED]> - To unsubscr

Re: new line char in xml

2006-10-26 Thread Ed Griebel
To generate a blank line I've used HTH, -ed On 10/26/06, Chris Pratt <[EMAIL PROTECTED]> wrote: You can't specify a newline character in XML. XML specifically normalizes all whitespace out of the data. If you need to handle data that contains specific formatting, you ne

Re: Drag-and-drop struts-aware IDE?

2006-10-25 Thread Ed Griebel
closely to what VisualStudio has, just not out of the box unfortunately, and there's nobody going around giving demos of Struts + Eclipse, at least not for free. -ed On 10/25/06, Bruno Melloni <[EMAIL PROTECTED]> wrote: Probably because managers are always looking for the famous "silver bull

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Ed Griebel
ss is that there is a way to transform resultsset.getBlobl(), maybe even java.sql.Blob.getBinaryStream() would suit your purposes? http://java.sun.com/j2se/1.3/docs/api/java/sql/Blob.html -ed On 10/25/06, Anuraag Shinde <[EMAIL PROTECTED]> wrote: Thanks a lot friend for ur detailed expla

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Ed Griebel
form bean to know what file to serve up. In your situation, your method or StreamInfo class will likely pull the blob from the database as a byte array and set up this byte array as an InputStream. your DownloadAction superclass will automatically hand this stream to the browser. - Add an action-mappi

Re: Debugging struts applications with eclipse

2006-10-24 Thread Ed Griebel
This should answer all your questions: http://tomcat.apache.org/faq/development.html Google is your friend, this is the first link for "tomcat eclipse debugging" search. -ed On 10/24/06, Joe Yuen <[EMAIL PROTECTED]> wrote: Can anyone tell me how to debug an application runn

Re: Performance of my code

2006-10-24 Thread Ed Griebel
On 10/24/06, Daniel Chacón Sánchez <[EMAIL PROTECTED]> wrote: Hi all, this is not a question about struts, but is a question about java, Well then it probably shouldn't be asked here :-) Is there a tool that let me check performance issues in my code, like example the variables that I declar

Re: Forward Action to Action

2006-10-23 Thread Ed Griebel
/session and extract params from there. HTH, -ed On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setat

Re: Struts Validation DTD

2006-10-23 Thread Ed Griebel
either compare the size of the jar file with that on an official commons-beanutils download site, or run 'sum' or 'md5sum' on the jar file and compare it to the md5sum on the commons-beanutils download site. -ed On 10/23/06, Enzo <[EMAIL PROTECTED]> wrote: Excuse my drop

Re: render trademark symbol

2006-10-11 Thread Ed Griebel
e job done, at least as a proof-of-concept. If you can limit the filter to only a few pages in the app and the page generated is not "big", you may get away with the above code. -ed On 10/11/06, Van Nguyen <[EMAIL PROTECTED]> wrote: OK... so I've been playing around with t

Re: html form instantiating form bean

2006-10-11 Thread Ed Griebel
n use BeanUtils.populate(formbean, "param_1", value1) to get your values into the formbean. Hopefully I have not missed the point of your question. HTH, -ed On 10/11/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi, This has to be one of the most bewildering thing I have faced in my 3 months of l

Re: render trademark symbol

2006-10-10 Thread Ed Griebel
EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, October 10, 2006 6:14 PM Subject: RE: render trademark symbol Is escapeXml an attribute for the bean:write tag? I do not see that in the Struts 1.2.9 API. -Original Message- From: Ed Griebel [mailto:[EMAIL PROTEC

Re: render trademark symbol

2006-10-10 Thread Ed Griebel
bean:write may be escaping the & so maybe you could try adding escapeXml="false" inside the bean:write tag. -ed On 10/10/06, Van Nguyen <[EMAIL PROTECTED]> wrote: That displays: (r) We need it to display: (tm) -Original Message- From: Martin Gainty [mailto:[E

Re: content management system

2006-10-10 Thread Ed Griebel
http://opensourcecms.com will tell you all you need to know, it even has demos set up for every CMS. Now, as this has absolutely nothing to do about Struts, can further conversations occur offline? Thanks. -ed On 10/10/06, Stein Erik Berget <[EMAIL PROTECTED]> wrote: On Tue, 10 Oct 2006

Re: jsession id in url

2006-10-04 Thread Ed Griebel
rom future requests. -ed On 10/4/06, sunil virmani <[EMAIL PROTECTED]> wrote: Hi All, In my application in each request jsessionid is passed both in cookie as well as in url. I have enabled the cookie then why it is appearing in the URL also.

Re: session management

2006-10-04 Thread Ed Griebel
e approach would be to be able to re-establish the user's session if they happen to time out, but that is no small task. good luck, -ed On 10/3/06, sowjanya chimmani <[EMAIL PROTECTED]> wrote: Hi All, In our webapplication (struts based) we are using Ajax code (as part of h

Re: Avoiding multiple validation messages

2006-10-03 Thread Ed Griebel
Let me clarify, in your html:form statement, try adding a return like so: On 10/3/06, priya <[EMAIL PROTECTED]> wrote: Hi Ed, Thank you for your response! Since I am using Struts client side validation, I am not creating the validate method.. Struts is creating it for me.. Do you

Re: Avoiding multiple validation messages

2006-10-03 Thread Ed Griebel
In your form's onclick="validate()" method (or whatever it may be called in your case), it may work to add "return" to the javascript method call. The validate method will return false if validation fails, and the form will not be submitted back to the server. HTH, -ed

Re: Session Timeout

2006-08-30 Thread Ed Griebel
rue"...' in JSP), which all will create a session if none exists. If it's buried deep enough in a chain of filters it could *appear* to be magic :-) There is a method isNew() on the session that you can check to see if it's a new session that might help in your case. -ed On

Re: Has anyone had this problem? Getting 3 question marks ??? at top of HTML page using action class and rendering JSP in browser

2006-08-02 Thread Ed Griebel
There's not much to go on, but check to see that all keys referenced in are defined in the appropriate message properties files. Look at in your struts-config.xml file to see what properties files are included. -ed On 8/2/06, Patterson, Marie E [CPB] <[EMAIL PROTECTED]> wrote: Has

Re: Can you use a LinkedList or similar as the type for a FormElement?

2006-08-01 Thread Ed Griebel
struts will throw an exception if your list instance is null. It doesn't even need to be a LinkedList, as long as it implements List (and possibly Collection??). As to the validator, I'm pretty sure it handles it, just don't know off the top of my head how it does it. -ed On 8/1/06,

Re: Some JSP Taglib help needed

2006-08-01 Thread Ed Griebel
You could try something like: or create student_name as a java.util.List if using a POJO for an ActionForm - Create a setup action that is called before the JSP is initially rendered which does a '((MyFormType)form).student_name = new java.util.ArrayList();' - In the JSP form: ...

Re: dynamic casting in Action class

2006-07-26 Thread Ed Griebel
ot;someProperty"); BeanUtils.setProperty("someProperty", somePropertyValue); -ed On 7/26/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote: Gareth Evans wrote: > You can't do either of these things! Right. > > AFAIK you can't do dynamic casting in java, although in > java 5 y

Re: problems using validation framework in struts

2006-07-11 Thread Ed Griebel
I haven't seen this error, but my guess is that you have referenced a form bean in your validation.xml that is not defined in struts-config.xml. Look for a typo in the name. -ed On 7/11/06, Anil Kumar Pippalapalli <[EMAIL PROTECTED]> wrote: hi all, iam new to struts and iam

Re: Eclipse plugin

2006-06-29 Thread Ed Griebel
expensive, but it is better integrated and has a nice JSP and struts-config.xml editor. I probably use the JSP and XML editors the most, and I've found the "AppXRay" feature isn't terribly useful except for very simple apps. I've been meaning to fire up eclipse's WTP,

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Ed Griebel
before the and change the to followed by HTH, -ed On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote: My worked fine. But if the ... come before the , I got the runtime JSP error: "cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope". The complain

Re: Validate just certain fields

2006-06-27 Thread Ed Griebel
It's not the most elegant, but it does work well when you have a linear page flow. -ed On 6/26/06, Jennifer Jacobs <[EMAIL PROTECTED]> wrote: I'm using the Struts Validator framework. I have a form with two buttons on it, one that calculates a subtotal and one that submits th

Re: handle to form w/i jsp?

2006-06-23 Thread Ed Griebel
If you know the formbean it's a simple as If you don't konw the formbean name or want to make it generic you can get the current action's form bean name and then populate it something like below. Modify requestScope/sessionScope as appropriate. HTH, -ed On 6/23/06, Bri

Re: Why My JSTL Tag Cannot Do What Struts Tag Does?

2006-06-22 Thread Ed Griebel
You don't need to do the intermediate assignment to user, it should be sufficient to do: --- --- Al

Re: how to download a file

2006-06-22 Thread Ed Griebel
o get away with "File tmp = File.createTempFile("web", null);" Store the data to this temp file, passing the file as a stream in the aformentioned StreamInfo object. To eliminate creating the temp file, stream the file directly without having an intermediate file. -ed On 6/22/06

Re: seeking quick start struts tutorial

2006-06-21 Thread Ed Griebel
rials/struts.html -ed On 6/21/06, hicham <[EMAIL PROTECTED]> wrote: hello I'm a newbie to struts framework if anybody knows of a quick start easy tutorial that can get me on the road links ? pdf ? Thank you hicham - To uns

Re: need urgent help

2006-06-20 Thread Ed Griebel
This exception is caused by outputting a message without specifying a message resource in your struts-config.xml file. You can learn some more about Struts starting at these links: http://struts.apache.org/struts-action/index.html http://struts.apache.org/struts-action/userGuide/index.html -ed

Re: web.xml specifications from 2.4 to 2.3

2006-06-14 Thread Ed Griebel
You can't do it without changing your JSPs. It isn't as simple as wrapping everything with as JSP tags cannot be nested within attributes. Also, to my knowledge there is no way to just include some jar file to enable EL exprs. A suggestion too, your code: can be rewritten as: HT

Re: struts-config xml file throws a java exception

2006-06-07 Thread Ed Griebel
c void setLoginRequired(String x)' -ed On 6/7/06, Olivier Bex <[EMAIL PROTECTED]> wrote: Hi everyone, When I start Tomcat 5.0.28, it says that I have a parsing error in my struts-config.xml, but I think it's not. The log file throws a java.lang.NoSuchMethodException : bean

Re: Object size in App Server

2006-05-25 Thread Ed Griebel
For interactive session viewing look at http://messadmin.sourceforge.net/. It's not something I'd put on a production server, but it is useful for testing. -ed On 5/25/06, Chaudhary, Harsh <[EMAIL PROTECTED]> wrote: I just wrote the object to a file as a bit blob and looked

Re: Getting a list of fields in a form along with their values

2006-05-24 Thread Ed Griebel
Take a look at jakarta BeanUtils.describe() -ed On 5/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, The DynaActionForm class has a method called getMap which "Returns the Map containing the property values" We've found this quite useful for some of the thing

Re: How to disallow opening a page directly from URL

2006-05-17 Thread Ed Griebel
Put your JSPs unde WEB-INF and forward to the JSP in struts-config.xml: http://www.onjava.com/pub/a/onjava/2002/10/30/jakarta.html?page=3 For roles, use declarative roles: http://wiki.apache.org/struts/ApplicationSecurity http://www.onjava.com/pub/a/onjava/2004/02/18/strutssecurity.html -ed On

Re: How to dertermine the url from which a request is made ?

2006-05-15 Thread Ed Griebel
the current URL in a session variable and then referring to this variable in the next access. However, you will encounter a problem if the user has two windows open with the same session. -ed On 5/15/06, temp temp <[EMAIL PROTECTED]> wrote: The method request.getServletPath returns current

Re: how to display a message for every request

2006-05-08 Thread Ed Griebel
() -ed On 5/8/06, Adam Hardy <[EMAIL PROTECTED]> wrote: Srinivas Vakkalanka on 08/05/06 11:32, wrote: > Hi, > > I am new to struts. I have a request that, for every request I want to > display a message or log a message using struts frame work. How this could > achieve. Pleas

Re: page validation in wizzard app

2006-05-07 Thread Ed Griebel
ould be enough to give you the idea. The problem is that i use autovalidation. Yes, I understand you want to use autovalidation, but if turn it off and call form.validate() manually it's only a few additional lines in your action classes an

Re: page validation in wizzard app

2006-05-07 Thread Ed Griebel
You could have the ActionForward mapped to an Action class in your struts_config.xml file just as easily as a JSP, e.g. and then just 'return ActionForward("validation_failed")' if validation failed on page1. HTH, -ed On 5/6/06, Jakub Milkiewicz <[EMAIL PROTECTED]> w

Re: page validation in wizzard app

2006-05-06 Thread Ed Griebel
have to trap it from going below zero, for instance if they keep failing validation on the first screen. One way to find out for sure is to try it out and see how it goes! -ed On 5/6/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: Hi I have a wizzard application with 5 screens. All user i

Re: Struts filter help

2006-05-05 Thread Ed Griebel
and specify the filter and what URLs map to the filter in web.xml - Once on startup (or shutdown) of the web app (including deployment), create a ContextListener by implementing ServletContextListener and specify the listener in web.xml HTH, -ed On 5/5/06, Stanislav <[EMAIL PROTECTED]> wrot

Re: How to create a Waiting Page for long requests?

2006-05-03 Thread Ed Griebel
Great link, thanks!! -ed On 5/3/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote: Hi I think JMS is only valid , i.e. following specification solution. Take a look at: http://www.javaranch.com/newsletter/200403/AsynchronousProcessingFromServlets.html 2006/5/3, Dave Newton <[EMAIL

Re: How to create a Waiting Page for long requests?

2006-05-03 Thread Ed Griebel
ould then start the asynchronous process. The receiver process [thread] would do what it needed to do, set the magic status flag, and then wait for another request. -ed On 5/3/06, Shshank Jain <[EMAIL PROTECTED]> wrote: I have used div and js and it works fine. but if u dont want to use it

Re: jsessionid problem fix for weblogic servers

2006-05-02 Thread Ed Griebel
idea is the one that I'm using on a project now. -ed On 5/2/06, Braun, James F <[EMAIL PROTECTED]> wrote: I had a problem with jsessionid trashing all my images and urls until I refreshed my browser. Ted Husted points out this phenomenon on page 66 of SIA. The symptom is that ;

Re: Validator rules not loaded

2006-05-02 Thread Ed Griebel
probably throw an exception at app startup (in an app context listsener) so the app won't even be out there if the validation rules are not loaded. -ed On 5/2/06, Lance Semmens <[EMAIL PROTECTED]> wrote: Struts is not loading validator rules if the validator dtd can not be retrieved. On

Re: StrutsTestCases

2006-04-27 Thread Ed Griebel
There was a question about this a couple of days ago where web.xml was not being found. Also, it looks like you have a leading slash before the "D:" in setConfigFile(), that could be the problem. HTH -ed On 4/27/06, Chaitanya Parkhi <[EMAIL PROTECTED]> wrote: > hi friends i m

Re: Synchronization of dispatch Action

2006-03-21 Thread Ed Griebel
a half-dozen pages about this on the Struts wiki that you can find at http://struts.apache.org/ HTH, -ed On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it a good idea to synchronize DispathAction to make sure all requests > to DB and results which come back d

  1   2   >