What happens with this instead of JSTL:
jsp:useBean id=comptest
scope=request
type=org.ttemplating.internal.dataobjects.Component/
jsp:getProperty name=comptest property=name/
Paul Daniell wrote:
From: Kris Schneider [EMAIL PROTECTED]
I suppose this could be a
there is struts upload example in the struts download package
u also can use the commons package.
Clement
- Original Message -
From: Edgar Silva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 7:52 AM
Subject: Struts upload
Hi Folks...
Anybody can send to me
Hi
If you are using a a href or html:link you cannot hide the
parameters.
The url you'r using should be the path configured in the struts-config.
Med venlig hilsen
Claus Weng Madsen, Teamleder
TELMORE A/S
Carl Gustavsgade 3, 2630 Taastrup
Telefon 70218700, Mobil 30242875
www.telmore.dk
Try to deploy an extracted .war (as a directory named name.war)
-graste
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Monday, January 26, 2004 8:32 PM
To: [EMAIL PROTECTED]
Subject: Re-deploying in JBoss3.2.3
Importance: High
Hi,
Can
If you want to stop the 'ugly' urls showing in the address bar of the
browser, you can have all the contents of the site show in a frame, whose
frameset is found at the url you want to show.
-Original Message-
From: Claus Weng Madsen - TELMORE [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 27
The problem is neither with Struts nor Torque but rather with the reflection
API, which exhibits strange behavior when asked to deal with classes named
Component. Strangely enough, I found a thread on the struts-user thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg60817.html
dealing with
Hi!
Thanks for the response.
http://localhost:8081/log4jdemo/loginScreen.do is what I see in my url.
I would like to keep this a constant at http://localhost:8081/log4jdemo only.
I am using both a href and html:link.
But, even in cases where i use direct action like /loginScreen.do, on
invoking
Hi Shankarr
Your best choice will be frames...that way you can hide the details of your
navigation to the end user.
But frames has some disadvantages, tooIt is somehow a pro/con situation
where you have to decide if you can live with request parameters or not...
Regarding the
Hi Edgar
Check out the demo applications in the Struts distribution (source code I
guess).
There is a wonderful simple example there dealing with uploads..
HTH
/Henrik
- Original Message -
From: Edgar Silva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:52
Hi you,
I do have a silly problem with style sheets-linking.
I have a css-File in the folder /theme/formats.css.
I access this file from a jsp-page of the folder /help/info.jsp with this
link:
LINK href=../theme/formats.css rel=stylesheet type=text/css
This works, if I call the jsp-Page
Hello,
how is it possible to get the url of the prior visited site ?
I have a struts application which has page with a back button using
the javascript:history.go(-1) function.
On this page a session could be created, which would be lost when
going back using the javascript function.
How do I get
Hi,
you can do this in this way (static path to css file):
%
String context_path = request.getContextPath();
%
LINK href=%=context_path%/theme/formats.css rel=stylesheet type=text/css
Regards,
Frank
-Ursprungliche Nachricht-
Von: Manuel Lenz [mailto:[EMAIL PROTECTED]
Gesendet:
put
[EMAIL PROTECTED] contentType=text/html session=false%
or
%@ page session=false %
In the header of your jsp that you dont want caching.
Chris
-Original Message-
From: VERMA, SANJEEV (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 18:33
To: 'Struts Users Mailing List'
Try using an html:base tag in your jsp. (See the docs for details , I
forget the syntax)
-Original Message-
From: Manuel Lenz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 27 January 2004 16:15
To: Struts Users Mailing List
Subject: WebGroups css
Hi you,
I do have a silly problem with
- Original Message -
From: shankarr [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 3:47 AM
Subject: RE: constant url
Hi!
Thanks for the response.
http://localhost:8081/log4jdemo/loginScreen.do is what I see in my url.
I would like
I've found this to be the cleanest way (aside from using a custom tag):
head
...
...
style type=text/css media=screen
@import url(html:rewrite page=/stylesheets/style.css /);
/style
/head
The benefits here are:
* The URL is relative to the root of the server.
An application named
use ssl or create an outer html-doc containing one frame in that frame call your
struts-application.
In the address-field of the browser you will only see the url with which you call the
outer html-doc...
Still leaves you vulnerable to a skilled hacker, but protects the url from tha
standard
This appears to be fixed in Sun's 1.4.2. A quick test failed with 1.4.1_06-b01
but passed with 1.4.2_03-b02.
Quoting P. Daniell [EMAIL PROTECTED]:
The problem is neither with Struts nor Torque but rather with the
reflection
API, which exhibits strange behavior when asked to deal with classes
The best choice is to use html:rewrite :)
i m with james
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 1:06 PM
Subject: Re: WebGroups css
I've found this to be the cleanest way (aside from
Hi!
Thanks again for the responses.
Yes, I do plan to implement ssl for security.
Thanks again,
Richie
At 01:07 PM 1/27/2004 +0100, you wrote:
use ssl or create an outer html-doc containing one frame in that frame
call your struts-application.
In the address-field of the browser you will only
What is considered the best way for a business bean to handle errors so that
they eventually get to ActionErrors? And what about business logging?
Thanks,
jim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I can set initial values for String[] in a dynaActionForm in the
struts-config.xml however when I try to set initial values for Integer[]
I get the following error:
2004-01-26 13:40:49,224 [ERROR] RequestUtils: Error creating form bean
of class org.apache.struts.validator.DynaValidatorForm
Isn't it still
logic:messagesPresent message=true
html:messages id=message message=true
bean:write name=message/br
/html:messages
/logic:messagesPresent
- for messages, and
logic:messagesPresent
html:messages id=error
bean:write name=error/br
/html:messages
Hello,
I have a MultiPageFrom with 7 seperate JSP-Pages.
I want to validate all these pages.
When I run the application and whould test if the validation works well,
I get the following error when I hit Submit.
---
type Status report
message No input attribute for mapping path /newUser
Hello,
I have a MultiPageFrom with 7 seperate JSP-Pages.
I want to validate all these pages.
When I run the application and whould test if the validation works well,
I get the following error when I hit Submit.
---
type Status report
message No input attribute for mapping path /newUser
struts validation uses the input attribute of the action tag to send you
back to where you came from if validation fails. Here's the excerpt from
the dtd:
input Module-relative path of the action or other resource to
which control should be returned if a
Hello
I saw this in the dtd, but I don't knowe what I should enter as value of
input. I tried newUser, newUser.do, newUserFrom nothing worked es expected.
I would to get back the form where the validation find the failure, so
the User could corret his failure an procced the applikation.
BTW:
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
If these ain't it, can somebody post what is?
Thanks! I'm looking for the Java code that goes in the Action to
manually put an error in for display when you forward to the form.
I have this in another app, but is this right for errors? I'm sure
You want to put validate=true for the action you are submitting to.
That's also where you specify the input. The input is an application
relative path beginning with a /, so if you're using /do/* mapping in your
web.xml you'd want something like this
action name=newUserFrom
Hi all.
Still no answer to my other question regarding entities in tiles-defs.xml
but now I have another question.
I have 2 forms on the same page. I want javascript validations to work for
both forms, but it's not happening. It looks like the first form is using
the required() function from
Hi again - yet another question from me, sorry.
I am trying to have the admin area of my project use modules, but so far it
is a no go. I setup the module as:
init-param
param-nameconfig/admin/param-name
param-value/WEB-INF/struts-config-admin.xml/param-value
/init-param
and if I type urls
Hello
I've got a strange behavior when using ApplicationResources:
In web.xml I've defined the following:
init-param
param-nameapplication/param-name
param-valuech.mera.pvs.common.Resource/param-value
/init-param
I've got two resource.properties (in both resources are
hhlow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
there is struts upload example in the struts download package
u also can use the commons package.
You should avoid using Commons FileUpload yourself in a Struts application.
You'll only run into problems. File upload functionality
Robert,
is there a reason, why you dont use
DynaValidatorActionForm ?
you can define in validator.xml
which attributes a needed for e.g. /submit2
--
formset
form name=/submit2
field depends=required,email property=email
...
greetings,
matthias
-Original Message-
From: Ben
using DynaValidatorActionForm would be the best way, you can use attribue page and
use one Action form for all your 7 pages. tell me if you need more info, I'll describe
it in details
-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
I upload all resources (CSS, GIFs, JPEGs, SWFs, etc.) with an action class
to avoid all these maddening URL problems caused by the differing
perspectives of the client and server. If you get away from the URL
solution, and use the .do solution, then URLs are no longer an issue. If
you look
19 people signed up so far. Cool. Price goes up tmrw.
.V
Vic Cekvenich wrote:
At nyhotel.com on April 3rd, convenient by train from Boston, NJ, Philly
and DC.
1 day early registration rate at baseBeans.com now!
Price will go to $495 and up as the date approaches, and there are
limited seats in
Jim,
Throw custom exceptions in your business beans and then use the struts
declarative exception handling feature so that your custom exception handler
class(es) handle the exceptions by populating ActionMessages and logging the
error if neccessary.
Check out this article by Keld H. Hansen
Thanks very much, the article is just what I was looking for.
jim
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Best Practices question
Jim,
Throw custom exceptions in
Hallo
I'm using *.do mapping in my web.xml so I must use input=/newUser ?
This does not work!
Ben Anderson wrote:
You want to put validate=true for the action you are submitting to.
That's also where you specify the input. The input is an application
relative path beginning with a /, so if
I t seems Struts lets you use action mappings that it figures out and forwards for
you, but I have had no luck testing this.
action-mappings
action path=/setUpEmployeeForm
type=net.strutstest.SetUpEmployeeAction
name=employeeForm
scope=request
validate=false
forward name=continue path=/steve/
Thanks Guys
I will check this example
Regards my Friends...
Edgar Silva - Brazil
From: hhlow [EMAIL PROTECTED]
Reply-To: hhlow [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts upload
Date: Tue, 27 Jan 2004 16:01:54 +0800
there is struts upload
I am having a curious problem with form validation. I submit a form, see in
the logs that the form fails to validate, however, the webapp does not
return to the input page (I get a blank page with no HTML in it), so I do
not see the form with error messages as expected. If I put text in the
field,
Andy:
What do you see in the source of the html page..? Maybe it is just a question
of display not working right..?
Geeta
Andy Kriger wrote:
I am having a curious problem with form validation. I submit a form, see in
the logs that the form fails to validate, however, the webapp does not
Of course.
[EMAIL PROTECTED] 1/27/2004 12:45:01 PM
I t seems Struts lets you use action mappings that it figures out and
forwards for you, but I have had no luck testing this.
action-mappings
action path=/setUpEmployeeForm
type=net.strutstest.SetUpEmployeeAction
name=employeeForm
Hi!
I have integrated log4j with struts.
I need to know how to ensure that the changes done to log4j.properties file
is taken into account at run time.
TIA,
Richie
To achieve all that is possible, one must attempt the impossible
hi
enter
input=/myFormular.jsp
so validate goes back to formular
there you can display
action-messages (or even errors if you use)
cheers,
matthias
-Original Message-
From: Robert Lehner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 7:13 PM
To: Struts Users Mailing List
I'm trying to use a String[] property and preselect the none option
which corresponds to an empty String. If it were a simple string
property, I could do:
form-property name=account type=java.lang.String initial= /
What do I put in the 'initial' attribute for this one?
form-property
Hello!
Currently, in my design, I am using a DO class and a DOService class for my
business logic.
In my case, I make a db query to get a list of all employees.
But, at the end, the result has to be set in a session or in a request object.
Given a case where we have lots of users making a get, I
What is the error when it errors out?
-Original Message-
From: struts fox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 12:45 PM
To: [EMAIL PROTECTED]
Subject: Action mappings
I t seems Struts lets you use action mappings that it figures out and
forwards for you, but I have
Hi!
I am afraid I am sending this mail for the second time.
Last time, I had pasted my code for some queries and I am yet to see the post.
So here goes.
I have integred log4j with struts1.1.
I need to know how to ensure that if changes are done to log4j.properties
file, they are taken into affect
This is OT. The word struts in a message is not the only thing it
needs to be struts related...
Try PropertyConfigurator.configureAndWatch, I think that is what you are
searching for...
You cand find a simple example at
http://www.jguru.com/forums/view.jsp?EID=1130416
Un saludo, chicos.
You need to have a value for the input attribute on your action mapping
definition for your newUser action.
When enabling validation, what struts does is that if validation fails,
it does not give control to your action class but directly forwards to
the target defined by the input attribute.
So
Maybe you can use the application scope:
foo.Employees employees = (foo.Counter)getServletContext().getAttribute(employees);
if (employees == null) {
employees = new foo.Employees();
getServletContext().setAttribute(employees, employees);
}
and then
jsp:useBean class=foo.Employees
I see an empty page - no HTML, no nothing. It's as if the handoff to the
input path never happens, even though the logging informs me that validation
failed and the input path is being returned to. When you say 'a question of
display not working right', what do you have in mind?
-Original
Do you have web.xml configured with /do URLS going to struts.
If so, your entry should be, Notice that the path is the complete path with
the prefix.
action path=/setUpEmployeeForm
type=net.strutstest.SetUpEmployeeAction
name=employeeForm
scope=request
validate=false
forward name=continue
Ritchie:
Just make sure the log4j.properties is in your class path.. (like maybe right
in your classes directory). that should do it..
Regards,
Geeta
shankarr wrote:
Hi!
I have integrated log4j with struts.
I need to know how to ensure that the changes done to log4j.properties file
is
Your orderForm does extend ValidatorForm instead of ActionForm right? The
struts validator plug-in relies on your forms extending ValidatorForm in
order to do server-side validations.
Out of curiosity, you may want to see if client-side validation works first.
html:form action=SubmitOrder.do
Andy:
Any reason why you have the unusual input param..?
action path=/SubmitOrder
type=MyClass
name=orderForm
validate=true
input=/OrderForm.do
scope=request
forward name=success path=/OrderThanks.do/
/action
I woud have thought you'd
OrderForm.do = /web/forms/orderForm.jsp
That shouldn't make a difference. I like to refer to actions rather than
JSPs to minimize the number of things I have to change if a JSP changes to a
different JSP or to another action.
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Hello
Matthias Wessendorf wrote:
hi
enter
input=/myFormular.jsp
so validate goes back to formular
there you can display
action-messages (or even errors if you use)
Yes this would work if I hade one JSP-Page, but I have (now) one
Form(getter and setter methods), one ActionForm and seven
Hello can anybody help me with this problem I'm having please?
I am using the same action to perform two functions
action path=/clientaction
type=ie.sentenial.application.actions.ClientAction
name=clientForm
scope=request
input=/pages/addClient.jsp
orderForm was extending DynaValidatorForm. I changed this to
DynaValidatorActionForm - now the form validates (though it shouldn't -
there's a required field missing). Looks like I'm one step closer to a
solution.
Thank you for the idea.
-Original Message-
From: Barnett, Brian W.
BTW, if you can't use 1.4.2, a couple of workarounds to try:
Introspector.setBeanInfoSearchPath(new String[] {});
or provide an org.ttemplating.internal.dataobjects.ComponentBeanInfo class.
Quoting Kris Schneider [EMAIL PROTECTED]:
This appears to be fixed in Sun's 1.4.2. A quick test failed
Are you using something like .do for your servlet mapping in the web.xml
to map requests to the ActionServlet.
The forward continue you have defined for you action
/setUpEmployeeForm needs to have the servlet mapping extension, so it
should look something like:
forward name=continue
I have a .jsp page which submits through a post using SUBMIT button. If I
type in a value for my one field and hit the submit button, all is well. If I type in
a value and hit enter, I get an NullPointerException in my ActionForm as I am
checking for which button is clicked using
Personally, I would try to use the same page for add, update and delete,
which would solve this problem. If this is not an option for you, you may
have to deal with it in ClientAction.
Remove the input attribute from your action mapping, add validate=false,
and add a couple of forward elements.
I generally explode the ear and war files creating a directory structure in
the 'deploy' directory. I can then added and amend JSP's at will within the
directory structure. If I have a new class or changed any of the xml's
(struts-config, tiles-config) then I simply touch the application.xml and
That fixed it!! Thanks.
I was getting the application resource not found, which now obviously makes sense.
Loving struts!
Gopalakrishnan, Jayesh [EMAIL PROTECTED] wrote:Do you have web.xml configured with
/do URLS going to struts.
If so, your entry should be, Notice that the path
Ciaran,
When all else fails, cut and paste. :-)
Seriously, I don't know of a way to make the input value dynamic. I wish
it could be done like tile definitions with one action mapping extending
another, but, I know that is not supported. So, the simplest solution is to
have two separate action
Ok, maybe, I'd have to check into struts code to really be certain(input
surely has some significance is what i'm thinking..) So just for the heck of it
though, what happens if you do say /web/forms/orderForm.jsp instead?
Andy Kriger wrote:
OrderForm.do = /web/forms/orderForm.jsp
That
- resending: hope this doesn't end up as a duplicate -
Another option would be to call the validate() method yourself and return the
appropriate forward.
add validate=false to your mapping, plus your forms as forwards so you can
still configure them in your struts-config:
action
Do you mean changes made after the initial configuration of log4j? You can
use
PropertyConfigurator.configureAndWatch( cfgFile, delay )
This will load your log4j configuration file and create a thread that looks
for changes to the config file reloading when necessary.
--Norm
--
Norm
After a restart of the server this version works.
Thanks,
Manuel
Hi,
I'm bringing up an old topic here regarding multipage form validation.
In the example shown in the previous message, am I suppose to set
validate=true in struts-config?
If yes, what's the value of the 'input' attribute, since there are
multiple pages?
Or should I set validate to false and call
Hi,
I am using the action errors to set the userdefinable description in the action class
and setting it in the request so that the description can appear at the JSP using
html:errors tag.
My requirement is also to show the actual exception at the JSP how can I get this.
Any pointers will be
Quoting shankarr [EMAIL PROTECTED]:
Hi!
Thanks for the response.
http://localhost:8081/log4jdemo/loginScreen.do is what I see in my url.
I would like to keep this a constant at http://localhost:8081/log4jdemo
only.
I am using both a href and html:link.
But, even in cases where i use
Hi!
In fact, I got two responses for the question as I had sent the same
question twice.
My mailbox was acting funny yesterday, so I had to send it twice.
Well, I do have the log4j.properties file under web-inf/classes
I had thought of using the PropertyConfigurator too.
But, when you integrate
78 matches
Mail list logo