Sorry for reposting but i had the date one year older. :) :)
Hi.
I have downloaded the latest struts stable version (1.0.2 ) and noticed the
bean:message tag misses the attributes 'name' and 'property' which allow
to get a message from ApplicationResources when the key is specified in a
bean
Hi.
I have downloaded the latest struts stable version (1.0.2 ) and noticed the
bean:message tag misses the attributes 'name' and 'property' which allow
to get a message from ApplicationResources when the key is specified in a
bean property.
i.e.:
with strust 1.0 i was able to do the following
Why using scriplet when you have struts ?
A better solution should be
html:link page=/viewUser.do paramId=UserID paramName=userid
link string
/html:link
the paramName parameter is a bean which contains the value to pass to
request.
hope this helps
Ivan.
- Original Message -
From:
You don't need to create a session variable.
Just put a bean named user into the session
(request.getSession().setAttribute(user, value) ).
form jsp just call bean:write name=user property=name/
Of course i suppose the user bean implements a getName() method.
Ivan.
- Original Message -
A question about showing errors.
let's suppose i have this page (just image the page on the browser):
first name: textfield
last name: textfield
phone n.: textfield
How can i reach the following result when showing error message ?
first name: textfield error
-Original Message-
From: Ivan Siviero [mailto:[EMAIL PROTECTED]]
Sent: Montag, 18. März 2002 11:09
To: Struts Users Mailing List
Subject: display error message
A question about showing errors.
let's suppose i have this page (just image the page on the browser):
first name: textfield
Thanx Mark for your answer.
I visited the link and found out what i was looking for.
Thank you
Ivan.
- Original Message -
From: Ivan Siviero [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 2:14 PM
Subject: Re: display error message
Thanx
the WEB-INF directory is protected.
You cannot access the jsp directly from the url.
You have to execute an action or a forward.
this should works:
html:link forward=myForward
in the struts-config.xml:
global-forwards
forward name=myforward path==/WEB-INF/pages/jsp/A.jsp/
/global-forwards
in the struts-config.xml:
global-forwards
forward name=myforward path==/WEB-INF/pages/jsp/A.jsp/
/global-forwards
Ivan.
sorry i did some typo :) :)
global-forwards
forward name=myForward path=/WEB-INF/pages/jsp/A.jsp/
/global-forwards
- Original Message -
From:
:
java.net.MalformedURLException: Cannot retrive ActionForward named
/pages/jsp/A.jsp
and the solution proposed by Ivan Siviero:
the WEB-INF directory is protected.You cannot access the jsp directly from
the url.You have to execute an action or a forward.this should works:
html:link forward
Anyway I think some jsp container do not support jsp pages under the
WEB-INF directory.
I tried with tomcat 4.0 and it all works, but i remind someone told me
weblogic doesn't.
I'm not sure about this, anyway. :) :)
Ivan.
- Original Message -
From: Ivan Siviero [EMAIL PROTECTED
I'm having the same exception on SunOS 5.8 and Weblogic5.1sp9 which is still
unsolved.
I suppose you already have the xerces.jar in the classpath.
Let me know if you get a solution on this.
Thank you.
Ivan.
- Original Message -
From: Suneet Shah [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
!-- bar.jsp --
logic:iterate id=path name=path type=dao.daobeans.BaseLink
a href=viewResource?id=jsp:getProperty name=path
property=id/page/a
/logic:iterate
Just a simple question: the null attribute value is the attribute 'path' in
logic iterate tag or in the jsp gerProperty tag?
I know
Yesterday i posted a message but no one has replyed yet.
I was having problems with xerces.jar in deploying my struts application on weblogic -
SunOs5.8.
After some searching i ended up to substitute the xerces.jar with xercesImpl.jar and
now a new exception is raised.
I suppose nobody has
hi everyone.
I'm delploying my struts application on weblogic51sp9 and SunOS 5.8.
when running weblogic server i get the following exception.
It seems to be an xml parser exception.
i put the xerces.jar at the beginning of the weblogic classpath but the
exception is always raised.
The
:461)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:495)
- Original Message -
From: Ivan Siviero [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday
error exception
while parsing struts-config.xml.
I do not know what to do.
Can someone give me a clue ?
Ivan.
- Original Message -
From: Ivan Siviero [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, March 05, 2002 9:20 AM
Subject: deploy weblogic51sp9 sunos
hi everyone.
I have an errorpage to which all the exceptions are forwarded.
This errorpage emails me the exception details and display a user friendly
message instead of the complete exception details.
Everything works fine when the exception occurs in some custom tag, i get
the exception by
Maybe this will be a little bit OT
i want to redirect all the exception occurred in all actions and custom tags
to a page which send me an email with exception details.
In my web.xml i set the following tags
error-page
exception-typejava.lang.Throwable/exception-type
i do not know if the following problem is due to Struts.
I do not think so but i try to post the message again to see if someone could help me.
I'm a little bit puzzled
i'm deploying my application on SunOS 5.8 and Weblogic 5.1sp9.
I followed all the steps described by jakarta for deplying
I'm a little bit puzzled about bean:message behaviour.
Let's suppose the following situation
ApplicationResources.properties
key1=defaultKey1
key2=defaultKey2
ApplicationResources_de.properties
key1=germanKey1
ApplicationResources_it.properties
key1=italianKey1
key2=italianKey2
To switch the
i'm always trying to deploy my struts application on Weblogic 5.1sp9 SunOS
5.8.
Evrerytime i access a jsp page the following error occurs:
Compilation of
'pathTOMyJSP.java' failed:
_
pathToMyJSP.java:39: Superclass
- Original Message -
From: Ronald Haring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 11:07 AM
Subject: help populating an array before perform action
Hi all,
request.setAttribute(formBean, formBean);
maybe it's something you don't like:
links like this: a href=ViewHeadlineAction.do?headlineID=XXYZ/a
supposing the logic:iterate id paramenter is set to element
It should be something like this
html:link page=ViewHeadlineAction.do paramName=element
paramId=headlineID paramPropery=getterMethodWhoReturnsX
instead of the static a/a
definition name=index path=/layouts/courseBuilder.jsp
put name=title value=Course Builder /
put name=header value=/common/header.jsp /
put name=menu value=doc.menu.main /
put name=footer value=/common/footer.jsp /
put name=body value=doc.portal.body /
/definition
Hi struts users.
I'm posting a question on struts validator.
Well, as you all know, the struts validator implements an email validation
which is defined in the org.apache...StrutsValidator validateEmail()
method. (Sorry if the names are not 100% equals to the original ones).
Anyway this
Yesterday i posted this but have received no reply yet.So i try to post it once again.
Hope someone would help me somehow.
I have this kind of problem but i don't know if it either depends on the
struts framework or something else.
The system configuration is Tomcat 4.0 and Apache Web Server.
i have downloaded deployed the struts-upload.war file. I use Tomcat4.0 as JSP
container.
when i access the upload.jsp page i get this error:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans
collection
i looked at the struts-config.xml and web.xml files and nothing
i'm using jakarta struts framework to develop JSP Servlet application.
I have this kind of problem but i don't know if it either depends on the
struts framework or something else.
The system configuration is Tomcat 4.0 and Apache Web Server.
So, i have a file upload in my web page and it works
I have this kind of problem but i don't know if it either depends on the
struts framework or something else.
The system configuration is Tomcat 4.0 and Apache Web Server.
So, i have a file upload in my web page and it works fine when i access the
application through the port number.
When i
30 matches
Mail list logo