URL encoded request parameters

2001-05-30 Thread Jan Fredrik Øveraasen
hi How can I read request parameters with URL encoding from a FormBean? Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49

RE: Solution: bean attributes not displaying (please comment)

2001-05-30 Thread Lacerda, Wellington (AFIS)
If there is an ActionForm bean stored either on the request or on the session, remove it. The getAttribute method will return the name of the attribute in the session or in the request where the bean is stored under. The getScope says either session or request. This fragmnent is to be executed

Re: URL encoded request parameters

2001-05-30 Thread Helmut Rubasch
Hi! I don't know, if this is what you are looking for, but usually to decode URL-Encoded Strings you would use String decodedString=java.net.URLDecoder.decode(encodedString); Helmut Rubasch At 09:31 30.05.2001 +0200, you wrote: hi How can I read request parameters with URL encoding from a

RE: How do i use entity beans in Action class

2001-05-30 Thread Jon.Ridgway
Hi Ameer, Can you be more specific about the error, do you get it after deployment or during compilation? Can you provide a stack trace ? Jon. -Original Message- From: ameer [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 04:55 To: Struts Subject: How do i use entity beans

problem with using forms

2001-05-30 Thread René Boere
Hi, i am trying to create a jsp page with a form on it using the Struts framwork. The problem is that i get an exception when i try to load the jsp page. The error is the following: May 30, 2001 11:53:31 AM GMT+02:00 Error HTTP [WebAppServletContext(66629 69,form)] Root cause of

RE: Server caught unhandled exception from servlet [jsp11]: cant remo ve Attributes from request scope

2001-05-30 Thread Jon.Ridgway
Hi Siva, This is a problem that has been addressed on this list before. If I recall the solution is a *hack* unfortunately. Edit org.apache.struts.taglib.FormTag.doEndTag so the first two lines read : // Remove the page scope attributes we created

RE: Multiple Buttons

2001-05-30 Thread Jon.Ridgway
Hi Steven, There is probably a more *struts* oriented approach, but give your buttons unique names, then in your action class perform method, call request.getParameter (button name) if the value returned is not null, then that button was clicked. Jon. -Original Message-

html:button and html:radio in 1.0b2

2001-05-30 Thread Klaus Thiele
Hello, i'm currently switching our application from struts-0.5 to 1.0b2 and i have to made some stupid changes in some of my jsp-pages: 1) html:radio accepts no 'tabindex' 2) html:button does not get his label from the tag-body (html:submit does it) is there a reason for this changes? thanks

RE: bean attributes not displaying - please help

2001-05-30 Thread Jon.Ridgway
Hi Thomas Martin, I believe this problem has been addressed on this list before, I can't remember the solution but if you check the archive you should find it. I think it has something to do with the reset method getting called. Store your form under a unique tag in the request, then pop it

RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2

2001-05-30 Thread Jon.Ridgway
Hi All, Opps and apologies, adding a getRequest may resolve this little one, I tried editing org.apache.struts.taglib.FormTag.doEndTag as follows : // Remove the page scope attributes we created pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);

Ideas (and a quick implementation) for extending Struts

2001-05-30 Thread SRadford
All, If anyone read my last (and first) posting to the list they'll know that I'm new to Struts. Anyway, after deciding to plan on using Struts in my next project, I felt that for the application many Beans would be required for the many, many, many, forms. All of which will need extensive

Fw: How do i use entity beans in Action class

2001-05-30 Thread ameer
Hi Jon, thanx for replying . i am facing problems in deployment descriptor .. compilation is fine and the application is getting deployed. im refering to entity bean inmy action class and i am facing problems like May 30, 2001 5:09:39 PM GMT+05:30 Error Kernel ExecuteRequest

template and I18N

2001-05-30 Thread Gregor Rayman
Hi all, I've just started to use Struts and I have some questions: 1. How can I use the I18N features in the template tags? In my template.jsp I've got the following tag: titletemplate:get name='title'//title In the page using this teplate the following: template:put name='title'

use JSP variable as a value of property in html:select ... tag

2001-05-30 Thread someil
Hi, I would like use an expression such as : html:select property=%= var% size=1 but I can't do this. The error obtained is : Attribute value should be quoted So, I tried : html:select property=%= var% size=1 then it results a new error : Attribute % has no value that is the problem?

Re: Sample HDML/Wireless Struts Application

2001-05-30 Thread Jeff Trent
Never wrote a wireless app, but the code looks real nice... - Original Message - From: Richard Backhouse [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 29, 2001 7:55 PM Subject: Sample HDML/Wireless Struts Application For anyone who is interested, I have put together a

RE: template and I18N

2001-05-30 Thread Johan Compagner
look at the bean:message tag: bean:message key=title/ johan -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 2:12 PM To: [EMAIL PROTECTED] Subject: template and I18N Hi all, I've just started to use Struts and I have some

Re: template and I18N

2001-05-30 Thread Gregor Rayman
Johan Compagner [EMAIL PROTECTED] writes: look at the bean:message tag: bean:message key=title/ johan Hi Johan, this does not help me. bean:message key=title / prints the internationalized word Title. But I want to use it in the template to print various titles. Example (without

RE: template and I18N

2001-05-30 Thread Alexander Jesse
try bean:message key=%= title % / == call teh bean and pass the key using a jsp-value good luck Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: Re: template and I18N Johan Compagner

Which component employs the template:put tags ??

2001-05-30 Thread Jonathan Asbell
is this template tag part of Struts? template:put ...

RE: problem with using forms

2001-05-30 Thread Jon.Ridgway
Hi Rene, A quick glance and I can't see anything wrong in your conf files. Have you got the examples app to work? I ask because I suspect you have a classpath issue. What web server are you using? Jon. -Original Message- From: René Boere [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001

RE: Which component employs the template:put tags ??

2001-05-30 Thread Jon.Ridgway
Hi Jonathan, It certainly is. The template example provided with struts shows how to use it. The role based templating is particularly useful. Jon. -Original Message- From: Jonathan Asbell [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 14:16 To: [EMAIL PROTECTED] Subject:

RE: use JSP variable as a value of property in html:select ... tag

2001-05-30 Thread someil
any change with : html:select property='%= var%' size=1 there is still an error : Attribute % has no value - Cyril - -Message d'origine- De : Mikkel Bruun [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 30 mai 2001 14:58 À : '[EMAIL PROTECTED]' Objet : SV: use JSP variable as a value of

Re: Resources clarification :^)

2001-05-30 Thread Peter Alfors
You could combine all of your property files during your build. This would allow you to have as many different property files as you want. However, you need to be careful that you do not have duplicate names across multiple files. HTH, Pete Jonathan wrote: Hello all. It appears that the

RE: problem with using forms

2001-05-30 Thread René Boere
Hi Jon, The example applications are working fine, so the classpath is correctly set. I have isolated this problem to the html:text tag in my JSP file. If i remove this line from the JSP file it shows correctly. The second problem i have with this test jsp file is that when I press the submit

RE: problem with using forms

2001-05-30 Thread du Clos, John
I received this error message when i didn't have my form bean class compiled and created in the package as specified in the type attribute of the form-bean tag definition of the struts-config.xml file I noticed your definition is as follows: form-beans form-bean

RE: problem with using forms

2001-05-30 Thread René Boere
I am pretty sure that the TestForm class is correctly compiled in the correct directory to be sure i have listed the contents of the form.war i have deployed in WL6.0 filesystem.attributes form.jsp test.jsp META-INF\MANIFEST.MF WEB-INF\struts-config.xml WEB-INF\struts-html.tld WEB-INF\web.xml

RE: html:button and html:radio in 1.0b2

2001-05-30 Thread Deadman, Hal
I think problem 1 was fixed last night. Problem 2 was an accidental regression and has been reported as a bug. -Original Message- From: Klaus Thiele [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 6:20 AM To: STRUTS-USER Subject: html:button and html:radio in 1.0b2

generate ActionForms

2001-05-30 Thread Michael Schommer
Hi, I want to generate the ActionForm-classes. Do somebody know something about tools to generate Java-classes? Gruß Michael -- Java - write once, run anywhere

Re: generate ActionForms

2001-05-30 Thread SRadford
TogetherJ by togethersoft will (www.togethersoft.com) They have a free 'lightweight' version that will do what you want. Regards, Sean -- Dr Sean Radford, MBBS, MSc Senior Consultant Agora Professional Services Ltd [EMAIL PROTECTED]

Re: Solution: bean attributes not displaying (please comment)

2001-05-30 Thread Thomas Peters
The struts documentation indicates that 'mapping.getAttribute()' returns the mapping name. In the case of the perform method in an Action instance, this is a passed in property. Therefore, 'request.removeAttribute(mapping,getAttribute())' removes the stored attribute from the request context

Any hosting sites that use Struts?

2001-05-30 Thread Jeff Trent
Anyone know of a hosting facility that offers Java web hosting + Struts?

RE: Any hosting sites that use Struts?

2001-05-30 Thread TJM Todd McGregor
Check out MMA Web at http://www.mmaweb.com/ http://www.mmaweb.com/ . They offer hosting accounts with a private VM so you can install Struts on your own. They also have support for Cocoon. -Original Message- From: Jeff Trent [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 9:12

Multipart and IIS

2001-05-30 Thread Michael Binette
I just created a jsp page with a html:file tag on it, setup the ActionForm to accept the file, etc. The Action class gets called, I do what I need to do with the file and then return mapping.findForward(success). The mapping is returning /admin/index.jsp which is correct. In struts-config, I

Re: Any hosting sites that use Struts?

2001-05-30 Thread Anders K. Olsen
You can take a look at http://www.webappcabaret.com I don't have any experience with their service. /Anders. - Original Message - From: Jeff Trent To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 6:12 PM Subject: Any hosting sites that use Struts? Anyone know of a

RE: Any hosting sites that use Struts?

2001-05-30 Thread Deadman, Hal
I looked around for sites that host jsp/servlet based apps awhile ago and came up with these links: http://www.irdesign.com/services/hosting/website_hosting.html http://www.hostjsp.com/ http://www.mmaweb.net/ http://www.servlets.net/index.html http://www.infinitehost.com/ I can't vouch for

Re: getting a specific ArrayList element

2001-05-30 Thread David Winterfeldt
The iterate tag has 'offset' and 'length' as attributes. You should be able to use both of these to retrieve a specific element. http://jakarta.apache.org/struts/struts-logic.html#iterate length - The maximum number of entries (from the underlying collection) to be iterated through on this

RE: Any hosting sites that use Struts?

2001-05-30 Thread Thane Eisener
http://www.webappcabaret.com/ -Original Message-From: Jeff Trent [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 30, 2001 12:12 PMTo: struts-userSubject: Any hosting sites that use Struts? Anyone know of a hosting facility that offers Java web hosting + Struts?

SV: Any hosting sites that use Struts?

2001-05-30 Thread Mikkel Bruun
or www.aoindustries.com Its run by (among others) a guynamed Dan. Until about a year ago Dan offered hosting for free!! including jsp, servlets, mysql to anybody Unfortunaltely some punks took advantage of this, and used his servers in a DOS attack... He the moved on and founded

problems with radio tag in html tag library

2001-05-30 Thread Cukovic, Mirela
I'm having problems using radio buttons on my jsp. One would expect it to be very straight forward, and it is as long as I have just one group of radio buttons (i.e. the same property). But for some reason, as soon as I introduce another 'group' of radio buttons, it chokes at that tag. Has

RE: getting a specific ArrayList element

2001-05-30 Thread Deadman, Hal
Each element in the collection is exposed as a bean with name determined by the id attribute of the iterate tag. So inside your tag you can access that bean in a scriptlet or with the bean:write tag. The bean will be of type Object unless you use the type attribute of the iterate tag.

RE: getting a specific ArrayList element

2001-05-30 Thread Charlesworth, Chico
excellent, missed that one, cheers chico -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 5:22 PM To: [EMAIL PROTECTED] Subject: Re: getting a specific ArrayList element The iterate tag has 'offset' and 'length' as attributes. You

Re: Question on the ActionForm design for dynamic data?

2001-05-30 Thread Jeff Trent
Here are two examples: logic:iterate id=product name=products html:multibox property=productsInstalled bean:write name=product property=id/ /html:multibox bean:write name=product property=name/br /logic:iterate

redirect errors back to initial frame

2001-05-30 Thread dhay
Hi everyone. I have the same problem that David Firmin posted back on the 8th March, but have not seen any solution posted. I have set the target frame in my html:form tag to be a different frame. However, if errors occur with the first filter page, the errors should be displayed in the

extract key/value from HashMap

2001-05-30 Thread Steve A Drake
Hello. I have a bean (referred to as resultBean) that contains a HashMap (called properties) and would like to extract key/value pairs from this HashMap. Presently, I'm iterating through the HashMap with: logic:iterate id=element name=resultBean property=properties bean:write

RE: Multipart and IIS

2001-05-30 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Michael, Could you give more information on the nature of the failure? Are any error messages displayed? Also, what build of Struts are you using? There was a short period of time (a few days maybe) where this would be broken. If not already doing so, I'd suggest you try out a nightly build

RE: redirect errors back to initial frame

2001-05-30 Thread Abraham Kang
Hi Dave, Can you set the target to be the parent of both frames and reload both frames every time? Another way of doing it would be to forget targeting the other frame and dynamically building the subframe from the error frame using DHTML's parent.targetedFrame.document.open();

RE: template and I18N

2001-05-30 Thread Niall Pemberton
1. This was answered before. See following message: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05207.html 2. IMHO avoid scriptlets. Niall -Original Message- From: Gregor Rayman [mailto:[EMAIL PROTECTED]] Sent: 30 May 2001 13:12 To: [EMAIL PROTECTED] Subject:

Re: SV: Any hosting sites that use Struts?

2001-05-30 Thread Ted Husted
Here are two other Java hosting sites: Imagine Internet Services - www.imagineit.com Web APP Cabaret - www.webappcabaret.com (free, Tripod-style ISP) -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. --

RE: Multipart and IIS

2001-05-30 Thread Michael Binette
I am using the 1.0 b1 build of Struts, not a nightly version or b2. I will give that a shot tomorrow. The error message I get in IE 5.5 is Server not Found, possible DNS error. Of course that is wrong because if I just type in the exact path it was redirecting to, it works fine. And if I

RE: Any hosting sites that use Struts?

2001-05-30 Thread David Noll
I can recommend Servlets.net quite strongly. They recently switched to Resin 1.25 which works very well with Struts. I've successfully hosted a 50,000 session/month site with them. They are a small shop, but their support staff is responsive and they offer a plethora of services--CVS, MySQL,

Re: ActionErrors inside perform() methods; application context; andi18n issues

2001-05-30 Thread Craig R. McClanahan
This response is horrendously late because of my schedule, but the answers are still useful. On Mon, 23 Apr 2001, Regular Expression wrote: These are three unrelated questions that have arisen as I've learned Struts; I thought I'd lump them together for brevity's sake. I've perused quite a

Re: Resources clarification - is there a work around

2001-05-30 Thread Jonathan Asbell
Thanks Pete. However it just seems strange that Struts just offers one big resource file for each Local. I have developed 3 international sites, and I can safely say that when a set of resources are associated with a particular page it is much easier to manage than 1 resources for all pages.

Re: jsp:useBean -vs- DefineTag

2001-05-30 Thread Craig R. McClanahan
On Tue, 24 Apr 2001, Peter Alfors wrote: Hello all, Sorry this is a bit off topic...I posted this on the taglibs-user list but haven't had any luck. How do you make an object available to the page as a script variable in a taglib without having to use a getAttribute() method to

Re: File upload/download design question

2001-05-30 Thread Craig R. McClanahan
On Wed, 25 Apr 2001 [EMAIL PROTECTED] wrote: I have a design question regarding file upload/download which is not completely Struts related but I was hoping someone could provide some suggestions. I have succeeded with the upload using the struts upload package, and then I load the file

RE: Help me defend Struts taglibs!!!

2001-05-30 Thread Niall Pemberton
I submitted an if/else and switch/case set of tags a couple of weeks ago under the Struts developer list. http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01372.html It uses three tags If, Then Else (based on existing Struts CompareTagBase logic) logic:if op=GreaterThan

Re: Correctly using token mechanism

2001-05-30 Thread Craig R. McClanahan
It appears this never got answered, so better late than never ... On Sun, 29 Apr 2001, Jonathan Asbell wrote: After studying how the token mechanism works, I understand the following: 1) The token is a unique identifier (value) which may be found in the Session and Request, which is used

Re: Solution: bean attributes not displaying (please comment)

2001-05-30 Thread Martin Cooper
Actually, the getAttribute() method returns the name of the attribute used to store the form bean, not the mapping. The mapping is maintained internally within the Struts controller, and is not saved under an attribute. Also, the form bean may be in request scope or session scope. This is

Re: problem with using forms

2001-05-30 Thread Martin Cooper
The problem is in your JSP page. First, you are closing the form tag immediately. That's why you are seeing the error - because the other tags are not, in fact, in the form. Second, you have the wrong closing tag. Try this: html:form action=test.do %-- No '/' character here --% test: html:text

Re: use JSP variable as a value of property in html:select... tag

2001-05-30 Thread Martin Cooper
I think you just need a space on each side of 'var'. Try this: html:select property=%= var % size=1 Hope this helps. -- Martin Cooper - Original Message - From: someil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 5:42 AM Subject: use JSP variable as a value

Re: Resources clarification - is there a work around

2001-05-30 Thread Martin Cooper
Personally, I would have thought that per-page resources would introduce more problems than they solve. If there is text that needs to be consistent across pages, it's much better to have it in only one place. Even if keys are the same across pages, there is no assurance that the text will be.

Re: Suggestion for Inclusion in HTML Bean

2001-05-30 Thread Martin Cooper
If what you want is the name of the form appearing in the output stream, there is a way to do that (albeit a little unconventional, I suppose): bean:write name='org.apache.struts.taglib.html.FORM' property='name'/ The value of the 'name' attribute here is the value of the constant

Re: Potential Security Flaw in Struts MVC

2001-05-30 Thread Craig R. McClanahan
On Mon, 7 May 2001, Jeff Trent wrote: Ah, this maybe a problem in the way I've adapted Struts. I reflect all UserForm method calls directly into the contained User object owned by the UserForm. So for instance, I have public class UserForm extends ActionsForm { protected User

RE: Potential Security Flaw in Struts MVC

2001-05-30 Thread Craig R. McClanahan
On Tue, 8 May 2001, Manabendra Sarkar wrote: but if i use external security mechanism, will it be dynamic? i mean to say, if the admin wants to change his/her password from the application (using admin interface), how can he/she do that without restarting the server? There is no global

Re: Struts on Tomcat 4.0-b3

2001-05-30 Thread Craig R. McClanahan
On Wed, 2 May 2001, Nanduri, Amarnath wrote: Hi Guys, I was trying to use Struts on Tomcat 4.0 Beta 3. I am getting the following errors when starting up Tomcat. Anybody out there can point out my problem ? Thanks a lot. cheers, Amar.. As the error message points out, it's

Re: unload database

2001-05-30 Thread Craig R. McClanahan
On Wed, 2 May 2001, Ying Teng wrote: How do I unload database to its persistent storage version? If we are running directly out of a WAR file, saving cannot occur. How do we make the save possible? The short answer is you can't. Remember, that the whole point of this example is to focus

Re: Usage of include or forward in Action definition

2001-05-30 Thread Craig R. McClanahan
On Thu, 3 May 2001, James Howe wrote: Could someone explain a little more about when you would want to use either the include or forward attributes of the action tag (used in struts-config.xml) instead of the type attribute? An example or two would go a long way to clarifying when and

Re: Potential Security Flaw in Struts MVC

2001-05-30 Thread Jeff Trent
I've sure my ears will be ringing at home that night :^) - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 31, 2001 1:01 AM Subject: Re: Potential Security Flaw in Struts MVC On Mon, 7 May 2001, Jeff Trent wrote: Ah, this

Re: regd. action classes --- please help

2001-05-30 Thread Craig R. McClanahan
On Fri, 4 May 2001, Manabendra Sarkar wrote: Hi All, is there init() and destroy() like methods in Action class so that we can be sure that those methods will always be called by the action servlet? actually i need to aquire some resources (like database connection) and