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
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
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
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
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
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
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-
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
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
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);
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
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
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'
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?
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
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
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
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
is this template tag part of Struts?
template:put
...
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
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:
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
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
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
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
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
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
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
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]
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
Anyone know of a hosting facility that offers Java
web hosting + Struts?
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
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
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
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
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
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?
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
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
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.
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
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
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
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
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
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();
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:
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.
--
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
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,
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
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.
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
68 matches
Mail list logo