check JBoss-forums and more important:
JSP-compiling is done by the servlet-engine, so check Jetty or Tomcat-forums as
well (depending on the JBoss-Version you use)
hth
Alexander
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 4. Mai 2004 17:47
Hi,
I want to reload the configuration-files. I found the ReloadAction in 1.0, but
not in 1.1? Is the action not available? How can I reload the configuration?
Thanks,
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hello all,
i have written an small application with struts. Now i have a problem,
which is easily to solve with such languages as PHP.
But with Struts it seems not to be such easy. I have read all the
documentation and what i could find in the archives nor in google.
I have this pages (Tiles):
Hi All,
I have a problem in CMP entity bean.I have a 2 schema like contact and
address.It has the following fields
contact Address
=== ===
contactid(PK) addressId(PK)
addressId(FK ref address)
Hola,
no we won't.
_this_is _user_at_struts_ - in case you didn't notice ...
That makes your question *completely off topic*.
Since I'm a nice guy I'll still give you two pointers:
1.) ejbPostCreate()
2.) http://saloon.javaranch.com try the J2EE / EJB forum
(you might wanna *search* the
Hello all,
i have written an small application with struts. Now i have a problem,
which is easily to solve with such languages as PHP.
But with Struts it seems not to be such easy. I have read all the
documentation and what i could find in the archives nor in google.
I have this pages (Tiles):
Hello Christian Grobmeier,
on 05.05.2004 at 11:52 you wrote:
I have this pages (Tiles):
frontend.overview
frontend.details
frontend.results
there is a form, which is included in all three templates. It sets the
sort-order for my results. The Problem is, when i change this order i
would
There's a download on the publisher's site (http://www.manning.com/husted) that should
have everything you need.
It's always just been one thing after another, and I never had the chance to see about
moving these up from the sandboxes.
For database access, I would *strongly* recommend using
Hi,
I am trying to use HttpUploadBean and HttpDownloadBean of the Oracle JSP Tag
Library ojsputil.jar in a Struts application, but no luck. Are there any
issues about using these beans with Struts Action Classes.
I am getting this error:
04/04/28 18:40:10 Corrupt form data: premature ending
Hi !
I use struts 1.2 and Hibernate on Websphere 5.
I use the struts plugin to store the SessionFactory on applicaiton context.
Where is the best way to keep the current opened Hibernate Session ?
-in the HttpSession of each user ?
-in a singleton ?
-...
When to close this Session ?
-after each
I am not familiar with the oracle tags in question, but my guess is that the
problem is caused by the fact that struts will parse a multipart request so
that it can create a request wrapper from which to populate the actionform.
I reckon that whats happening is that when the bean in question tries
Is it possible to include a bundle attribute on html:javascript?
Pedro Salgado
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
My 2 cents
I have written an app running on jboss that uses hibernate.
The code that uses hibernate is embedded in a plugin, and a
Session is open and closed after every request
I m also waiting for suggestion on the topic :-)
Regards
marco
-Original Message-
Hi All,
When using struts rewrite tag
when we use href the session id is not generated in
the link (we have disabled cookies to check this)
a href='html:rewrite href=my action/?query_str'
Link /a
But When we use this the Session ID is generated
a href='html:rewrite page=my
Hi
What are the recommendations to deal with cross-site scripting in struts?
I'm got an app that a use can access at a URL , let's call it
http://localhost/myapplication , now doing something like
http://localhost/myapplication/applicationInit.do?mode=scriptalert(document.cookie)/script
Joe Germuska wrote:
Acutally, I have put the getHibernateSession() on a ActionFormBase.
After each SQL action (load, find...) I close the Session.
I don't believe this is a good design and would like to improve it.
This is actually how Hibernate is meant to be used. The session
lifespan is
I have a Collection of Strings that I
want to render with delimiters. Suppose
The Strings are AAA, BBB, and CCC.
For example, I want to delimit the strings
with /
So the insertion would look like this:
AAA/BBB/CCC
How would you recommend I go about it?
If I were doing this in Java instead of JSP
I
I think the validation you're looking for is beyond the scope of the
validate() method. The Struts form validation should concentrate on
syntactic validation, such as making sure a zip code field has the right
number of digits, a int field contains valid numeric data, a required field
was filled
At 2:10 PM +0200 5/5/04, Lionel wrote:
Nicolas de Amorrortu wrote:
Have you tried the following? http://www.hibernate.org/43.html.
this is what I was thinking about when I posted my question...but haven't
tried it yet.
I don't think it will solve my problem as the object I load is put in
session
Hi guys!
I was wonderng if anyone could help me with aporblem I have. I input data
into my input fields on my JSP page. If I press reset the fields are
cleared. I press submit and my ActoinForm reads the data in and my Action
processes it etc However, when I return to this page again the
Reset resets your form to the state it was in when loaded - ie how it was
shown *after* your submission.
To clear your fields you will need to code a javascript function do this
explicitly.
-Original Message-
From: Brian Boyle [mailto:[EMAIL PROTECTED]
Sent: 05 May 2004 14:40
To: [EMAIL
Hi Brian,
If you view the html source, you will see the value='x'.
Clicking on Reset button is initializing to this value for each field.
I have solved this problem by replacing Reset button with button and
onclick event javascript for that button which will clear all fields.
Let me know if
One solution would be the following:
c:forEach var=item items=items varStatus=status
c:if test=${!status.first}//c:if
c:out value=$item/
/c:forEach
robert
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 8:02 AM
To: [EMAIL PROTECTED]
Is there some way to return to the page / action that called to action
that is being executed?
I've 1 jsp that forwards to an action and I would like to return to the
same page that called the action, by setting the path in the
ActionForward object.
Thanks.
Yes, this will work: try it! :)
Geeta
-Original Message-
From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 11:06 AM
To: 'Struts Users Mailing List'
Subject: is this posible? return to the same page after being executed
Is there some way to
Hello Rüdiger
You could pass the name of the forwarding as a hidden field into the
form. The value of the field is defined in the tile definition of the
actual page template.
You might put tiles:importAttribute scope=request / into the page
templates to have access to that page attribute (not
If it needs to be cleared every time, why not just reset the form before
going back to the page? I had a problem similar to this w.r.t. to a
login page, it was unsafe because if someone logged out, their login
info was automatically populated back into the form. SO if they walked
away, another
Yeah... :) what I was trying to ask is what the best way to get in the
action the path to the page that originally called the action.
Thnks again.
-Mensaje original-
De: Geeta Ramani [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 05 de Mayo de 2004 11:56 a.m.
Para: Struts Users
Hello Brian Boyle,
on 05.05.2004 at 17:39 you wrote:
On my last page I have two buttons. One that will let me continue
with the applicaiton and the other is the button that will bring me back to
the original page. Will I need to have two forms and an differnent Action
class for each form?
Yes.
As long as your mappings are correct (and they would be if you're already
seeing the behavior you described), Struts will preserve the values in case
of a validation error and allow the user to correct the mistakes.
--- Daniel Kalcevich [EMAIL PROTECTED] wrote:
Is there a way that I can use
Brian,
Aside from putting your form bean in request scope, you really don't need to
do anything special to clear the form when a new form is being shown.
Javascript certainly isn't required to clear it. Try it out and mail back if
just putting it to request scope doesn't work as you expected.
Hi All,
I have a populated form bean with a property that returns an
int indicating a transaction type either(0,1 or 2). In
my jsp I would like to display some data depending on the state of this flag. The
evaluation is:
If(transType ==
0 || transType == 1)
else
if(transType ==2)
Jeff,
The way that I solved this was to implement my own subclass of the
TilesRequestProcessor (because we use Tiles) and then specify that request
processor in the controller element of the struts config file. In this
subclass, I override processValidate() and in my override I wrap the
incoming
It works, but only if I use the name attribute on my html:text tag. I
set it to name=searchForm. Although my first part of my form tag is
html:form name=searchForm. Shouldn't it work without having to
specify the name in the text tag?
Thanks.
Daniel
-Original Message-
From: Hubert
Hey Rudiger,
Please excuse my lack of knowledge about Struts! I've only started learning
it recently. First of all you said that I would need the two buttons with
the same but different values. Is this what you mean html:submit
property=x value=Continue and html:submit property=x
jeff mutonho wrote:
Hi
What are the recommendations to deal with cross-site scripting in struts?
I'm got an app that a use can access at a URL , let's call it http://localhost/myapplication , now doing something like
Why not use Tomcat 5, and increase the memory that the server uses?
I don't know that many people that took Tomcat 4 seriously for production in
its early stages, usually preferring Resin. However as 4.1.x stabalized and 5
came out, it seems its a non-issue anymore... I don't see the holy-wars
Hubert, thanks fo ryour reply. As I explained to Rudiger earlier, I am
farily new to Struts so please excuse my lack of knowledge! Would you be
able to explain to me how I put my form bean into the request scope, and
what difference does this make form putting it into the session scope?
Cool. It works great now. Thanks Hubert!
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:47 AM
To: Struts Users Mailing List
Subject: RE: Struts Form Beans Question
Messages sent as recently as a few hours ago say you'd run into
By default, Struts places your form bean in session scope. This means
everytime you bring up the form using this bean, it'll have the values
entered the last time it was used. You can put your forms in request scope
so that Struts will start with a new form bean instance everytime a form
needs
ah yes, that's what i was afraid of ( - what i meant by many ways of getting to that
action etc..)..
I suppose you don't want to use hidden vars..? Because that may be a simple solution
to your problem.. :)
-Original Message-
From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED]
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:47 AM
To: Struts Users Mailing List
Subject: Re: Dealing with XSS in struts
jeff mutonho wrote:
Hi
What are the recommendations to deal with cross-site
scripting in struts?
Hey guys,
I've been banging my head with this for sometime so I'm hoping someone has an answer.
We are running JBoss 3.2.3 and have successfully replaced Tomcat 4 with Tomcat 5 so we
can use the JSP 2.0 and Servlet 2.4 specifications. I decided to download Standard
1.1 which has support for
Hi all,
jamba! (lacated in berlin - germany) is recently
searching for good J2EE programmer ... so if your
interessed ... please send your cv to:
[EMAIL PROTECTED]
THX
Oliver
Senior Software Engineer J2EE (m/w)
Unternehmensprofil:
Die Jamba! AG (http://www.jamba.de) ist eines der
you can use javascript to do this job...
like this:
a href=javascript:document.forms[formIndex].submit() Enviar Formulário/a
where formIndex is the index of the form you want to submit (starts in 0 -
zero)
Henrique Viecili
- Original Message -
From: cacau_braga [EMAIL PROTECTED]
To:
The Struts-EL tags are essentially useless in JSP 2.0. Use the standard Struts
tags and JSP 2.0 will automatically allow EL expressions for attribute values.
At least for those that would normally accept runtime expressions...
Quoting Ricardo Cortes [EMAIL PROTECTED]:
Hey guys,
I've been
I sorted that problem out of clearing the fields by setting the scope to
request. It was set to session by default. Dennis set me a link to
http://j2ee.lagnada.com/struts/html-buttons.htm
It is very useful, but can someone please explain to me the need for the
class HTMLBUtton.java?
THanks for
thanks... but my problem is with the atributtes of
form, like codUf, operacao, that parameteres don´t go
to the action when i use the html:link.
Do you know, how do i submit that parameters ?
Regards,
Henrique, are u a brazilian ? - eu sou (i am.)
Van Riper, Mike wrote:
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:47 AM
To: Struts Users Mailing List
Subject: Re: Dealing with XSS in struts
jeff mutonho wrote:
Hi
What are the recommendations to deal with cross-site
Is there a way within Struts to reset all of the ActionForms within a web application?
I have a web application that allows users to enter information into a database. The
input is divided up into a series of forms, and once the final form has been filled
out, the information is committed to
Cacau, you must use a javascript function to submit
your form. You can render a link like :
a href=#
onclick=javascript:forms[0].submit();return true/
or using html:link
--- cacau_braga [EMAIL PROTECTED] escreveu:
thanks... but my problem is with the atributtes of
form, like codUf,
Hello,
I'm working on a Struts application using stand alone
OC4J (Oracle 9i AS) as my application server. I need
to deploy my application on a Windows NT machine
(remote), and run the application server as a
background process. Is it possible to run the server
as a Windows service?
Has anybody
Thanks Kris. Removing the use of the html-el tags solved my problem.
Ciao,
Ricardo
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 1:41 PM
To: Struts Users Mailing List
Subject: Re: JSTL 1.1 + HTML-EL Problem
Ugh. Change runtime to
Michael:
I think forms stands for the list (array?) of all forms in that document. So the
form which appears (physically) first on the document has index 0, the next one has 1,
etc. Is this what you are asking..?
Geeta
-Original Message-
From: Michael McGrady [mailto:[EMAIL
Hello all. I am a new struts user (but an accomplished web developer...
don't ask how those statements can possibly be logical consistent! :) ) ...
for my first learning project I decided to do a file manager app. I was
going OK with the basics, but then I ran into an issue I can't seem to
In struts 1.0, we do as follows to determine formName for situations
like this:
% String formName =
((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache
.struts.action.Action.MAPPING_KEY)).getName(); %
This attribute is set in processPopulate method of ActionServlet:
Excessive?
/action-mappings
action-mappings
Maybe the struts console could be of assistance?
http://www.jamesholmes.com/struts/
Dennis
None None [EMAIL PROTECTED]
05/05/2004 04:34 PM
Please respond to Struts Users Mailing List
To: [EMAIL PROTECTED]
cc:
See now I knew I was going to feel incredibly stupid... I must have been
staring at it too long because I didn't spoit that and it was completely
obvious. You are competely correct, that fixed it. I should have caught
that, it was obviously NOT valid according to the DTD with that. Thank
Someone else had a similar problem recently and it was caused by having an
additional html:form element on his jsp page. I'd start by checking your
jsp page.
Niall
- Original Message -
From: Daniel Kalcevich [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
I am trying to use indexed properties in a form, as described in James
Turner's Article Succeeding With Struts: Indexed Properties and Beans
as Properties at http://www.developer.com/java/ejb/article.php/2233591
The example shows you can use c:forEach with html:text
indexed=true/, like this:
Step 4 is be simple :
map success forward to a jsp, which has something like this :
script
function refreshAndClose()
{
opener.focus();
window.close(this);
}
/script
body onload=refreshAndClose()
/body
Step 5 is more tricky and depends upon your app design
HTH
-Amar
If I do this:
c:forEach var=item varStatus=loop items=${items}
html:text property=items[${loop.index}].code/
/c:forEach
It gives me the results I want:
input type=text name=interests[0].code value=ABC /
input type=text name=interests[1].code value=BCD /
...
But I can't get indexed=true to
You can take care of that your action class.
Something like this
Execute(ActionMapping)
{
result = saveToDatabase();
If(result == success)
{
forward = mapping.findForward(success);
}
else
{
forward =
I meant
input type=text name=items[0].code value=ABC /
input type=text name=items[1].code value=BCD /
Paul Barry wrote:
If I do this:
c:forEach var=item varStatus=loop items=${items}
html:text property=items[${loop.index}].code/
/c:forEach
It gives me the results I want:
input type=text
Hi,
We are currently stress-testing a struts-based application. We are using JBoss 3.2.3
(with integrated tomcat) on a 2-processor Dell with 1 Gig of RAM. We use struts v1.1.
The application just runs fine until we get to around 100 concurrent users. From that
point on, we get a
I have dependencies between a composite object that needs validation.
I have a composite DTO (CA), that has 1 BI, 1..* OI's, and 1..* Prod's. But
there are fields in the BI that are dependant on fields in the various OI's?
I.E:
CA:
|-- 1 BI
|-- BI.EIN
|-- BI.Type
|-- 1..* OI
Hmmm. The thinking behind my suggestion was is jstl working properly for
you or is the indexed thing just hinding some other root cause
I'm out of ideas - the only other thing I can think of is what version of
Struts are you using - I believe jstl was only catered for from Struts 1.1 -
so if you
It works!
Thank you Amar!
--- Jirole, Amar [EMAIL PROTECTED] wrote:
You can take care of that your action class.
Something like this
Execute(ActionMapping)
{
result = saveToDatabase();
If(result == success)
{
forward = mapping.findForward(success);
When using Struts, it is easy to download struts.jar and put it in your class path and
then you are done. What if you want to use source code instead of binary download. How
can we identify those classes included in struts.jar from the source download? This
seems not to be easy since source
Hi there,
I am new to Struts and I want to know if Sturts framework has any direct
support for building a Wizard kind of navigation. Basically, I want to build
a wizard, which navigates through about 5 pages where user can input data on
all the five pages and click on the Finish button to save
The source download includes alot more than just whats in struts.jar
(documentation, for automated testing stuff, examples etc etc) but all the
stuff in struts.jar is in the src/share directory.
Niall
- Original Message -
From: Zhang, Larry (L.) [EMAIL PROTECTED]
To: Struts Users
I looked at the zip file, and the files are all from 2002. Are these the
most current? I see that the commons-scaffold.jar is included in the
struts-scaffold.zip file. Do I have to then build this file to create the
commons-scaffold.jar file.
-Pete
- Original Message -
From: Ted
I only have questions rather than answers...
I'd been interested to know how you're automated emulation of 100 users
works - could it be that you have two requests operating on the same form
and your form has some kind of nested/mapped/indexed properties in it? Do
the 100 users all have separate
Frank L. Bowar wrote:
I have 3 different Struts (1.1) web applications all running in the same
Tomcat (4.1) server. When the user presses a button on a form of one of
the applications, tied to a Struts Action, I would like that Action to
be able to forward control to an Action within a different
Zhang, Larry (L.) wrote:
When using Struts, it is easy to download struts.jar and put it in your class path and then you are done. What if you want to use source code instead of binary download. How can we identify those classes included in struts.jar from the source download? This seems not to
Thanks Robert. It looks like I need to learn JSTL. Any
suggestions? Also, the original problem I posted has changed
a little. I am now stuffing a Vector of Vectors of SeriesCategory
(my object). SeriesCategory has a getSafeTitle() method that gets
an XML safe character string title for the
There are several good references on line for learning JSTL,
but I have found the actual spec itself to be great.
I'm assuming you want something like
brAAA/BBB/CCCbrDDD/EEE/FFF
etc...
c:forEach var=v items=${vectors}
br
c:forEach var=seriesCat items=${v} varStatus=status
c:if
JSTL in Action
by Shawn Bayern
Paperback: 480 pages ; Dimensions (in inches): 0.97 x 9.32 x 7.50
Publisher: Manning Publications Company; (July 2002)
ISBN: 1930110529
http://www.manning.com/bayern
Shawn Bayern is the reference implementation lead for JSTL. You can hear
him speak in a video clip
Hi,
Please help, I have following in the jsp:
html:select property=idCode
html:option value=T T/html:option
html:option value=C C/html:option
html:option value=D
Thanks again. Where is the spec?
I tried what you gave me, slightly edited, as follows:
c:forEach var=v items=${categoryLineages} varStatus=outerStatus
c:if test=${!outerStatus.first}br//c:if
c:forEach var=seriesCat items=${v} varStatus=status
c:if test=${!status.first}//c:if
c:out
Hi Julio,
There are 2 ways I'm aware of:
1.) In your struts-config.xml action-mappings, add a success mapping that
points to your mapping path; i.e.:
action
path=/myAction
type=com.desalvo.action.MyAction
scope=request
name=myActionForm
input=/pages/myActionForm.jsp
81 matches
Mail list logo