respected sir,
I want to download struts framework documentation. where can I get. please
tell me.
---ravikonam.
_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com
I want to add a function to all of my forms in which the
form is capable of initialising its contents. e.g.
public void initUsingSession(HttpSession session)
I want to pass the session to this function so that I can
populate values on the form depending on what is
stored in the session.
The
I'm finding a similar problem with Resin - under SSL it connects fine
but the html:link tags resolve to a /a.
I tried adding the handler at the command line (as also recommended by
http://java.sun.com/products/jsse/INSTALL.html - item 7).
java
Dear Sir,
I believe that if you downloaded the Struts framework, then you have
already downloaded the documenation. Let's say you unzipped Struts at
c:\jakarta-struts-1.0-b1. If you go to c:\jakarta-struts-1.0-b1\webapps,
you'll see a file called struts-documentation.war. Copy this file to
I recently asked this question (over and over and over). I pretty much
beat it to death. Using some suggestions from this list (check the
archives for 'session'), we came up with a pretty solid approach. Thank
you to those that helped. :) It is ugly, but it solves all situations.
The only
Hi All,
An other approach is to use a Flow Controller (a state machine) and a
Session Manager in your project. This is a pure server side solution (with
minimum javascript). The reason we have to go for this solution is because
our project is run on any device...so javascript is out of the
I'm working with Struts and I'm trying to build an error page for my JSP
application. In looking at the Struts tag code I see statements which
look like this:
throw new JspException(messages.getMessage("getter.bean", beanName)));
which looks like it should be populating the exception with
Hello,
I have seen this mentioned on several other messages but I have not
been able to get a resolution. I am attempting to use struts with
iPlanet 6.0 sp2. I have a tag that is html:html local="true". When
this is compiled in iPlanet I get the following error:
I'm trying to do something similar. I have a hashtable that I want to
serialize pass to the next page in a form bean.
Here's how I write store the hashtable in a string "s" to be put into a
hidden field.
// write hashtable sf
ByteArrayOutputStream bout = new ByteArrayOutputStream();
Hi! All,
I understand the function of an ActionForm, but do not understand the
function of ActionFormBean how it is to be used.
Can somebody be kind enough to explain.
Thanks
Rajan
__
Do You Yahoo!?
Get email at your own domain with Yahoo!
Nevermind. I found them in places like
org/apache/struts/util/LocalStrings.properties. I'm running Tomcat/Struts
from within VisualAge and I hadn't properly imported the Struts resources
and I was missing these properties files.
At 11:33 AM 4/11/2001 -0400, you wrote:
I'm working with
Hi guys,
I have a problem with relative urls. If I have an entry like
actionpath="/showDetails" type=""
forward name="success" path="/details/show.jsp" /
/action
and then /details/show.jsp starts to use relative paths, then things like
images do not get found, because the browser
You should be able to download that with the package itself. But you will
have to move the war file in your webapps directory restart your server
--- bommaku murali [EMAIL PROTECTED] wrote:
From: "ravi konam" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL
Your application's web.xml file (probably in your WEB-INF directory) should
include a servlet tag that defines and configures the ActionServlet. Part
of that is something like:
init-param
param-nameapplication/param-name
param-valuecom.yourdomain.yourpackage.Resources/param-value
When an action request is received by the ActionServlet, one of the things
it tries to do is set up the form bean (specified by a combination of a
form-bean tag and your action tag in your struts-config.xml file). It
tries to reuse one, and if it can't find one under the attribute name you
gave,
Hi,
may be a stupid question but I can't get the example (struts-upload)
working on a win2000 box with resin2.2+ .
As sun as I I hit the submit button I get an Servlet exception.
500 Servlet Exception
java.io.IOException: Das System kann den angegebenen Pfad nicht finden
at
Hi There,
I am developing my new website using struts and have found it to be
excellent. I use tomcat in stand-alone mode during development but on
deploying the web application to my web server I am experiancing a few
problems which I hope you learned fellows might be able to help me with.
Has anyone deployed Struts using Sun's RI deployment tool?
Where did you place the struts-config.xml?
I am getting an error when trying to access a page via the *.do
specification, and it appears as though the server is looking for a resource
called page.do instead of accessing the config
Title: RE: Url Rewrting and Cache problems
Hey James,
Do you know beside changing the LinkTag code which write out the jsessionid, can i configure; say turn on or off with URL rewriting (jsessionid) without any code is changed?
Thanks in advance!
David Lim
-Original
It is an internal class for storing information for a ActionForm. :)
I think, we should differentiate between framework classes from classes
which users of struts need to subclass or the naming convention could
change.
e.g. ActionMapping vs Action. Looking at it it is not possible to find out
Title: RE: Url Rewrting and Cache problems
I'm not sure. If you
turn off the session rewriting without enabling cookies then this will cause
problems for the struts engine. I think features like the message
internationalisation rely on the session info.
Hope this helps,
-James
-
I am trying to implement a webapp using weblogic51 model after the struts
example. One of the page contain a simple form just like the
'registration.jsp' in the example, here is a the piece of jsp where I have
the form:
---
html:form action="/saveEClient"
If your method is getEClientId, then your html:text
should be.
html:text property="EClientId" size="50"/
It's in the spec on JavaBean propertys.
David
--- Alex Tso [EMAIL PROTECTED] wrote:
I am trying to implement a webapp using weblogic51
model after the struts
example. One of the page
Someone posted a solution to the iPlanet mailing list. You may want to
look for it there.
At 10:32 AM 4/11/2001 -0500, you wrote:
Hello,
I have seen this mentioned on several other messages but I have not
been able to get a resolution. I am attempting to use struts with
iPlanet 6.0 sp2. I
Alex,
I'm guessing that the removal of the login bean from the session scope is
only something done for a login action in order to remove the users password
from the session. I can sorta see the sense in that. I copied/pasted the
login page myself when I started my first struts app and was
I was wondering where you put the images in a tomcat webapp. I have an
"images" folder at the top level of my app. and the following line in my
JSP:
A HREF="http://www.xxx.com"IMG SRC="/images/xxx.jpg" WIDTH="210"
HEIGHT="59" ALT=""/A
for some reason the app. can't find the image. Any ideas?
I was interested in the same issue and did not find a good solution, so
I submitted a bug report:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1289
It does make sense for an ActionForm to have access to the context: not
just the session, but also request, response, servlet context and
Thank you David! It works.
However, I still don't understand the naming convention, I have
'getEClientId' as the method, and 'eClientId' as the bean property, so I
thought I should put property="eClientId" within html:text. Is it an
exception to property with double capitalization in the
I found this paragraph in bean spec, which kind of explains it:
Thus when we extract a property or event name from the middle of an existing
Java name, we
normally convert the first character to lower case. However to support the
occasional use of all
upper-case
Hi,
some more information on the problem.
I just tested it on tomcat and it's working with the tomcat.
So could some one who is running a resin server test it?
Soeren
Hello,
I am using jakarta tomcat 3.1 and stuts.
I get this error
org.apache.jasper.JasperException: Unable to open taglibrary
/WEB-INF/struts.tld : Parse Error in the tag library descriptor: Element
"web-app" does not allow "servlet" here.
at
Hi Adrian,
Try putting all servlet tags together, and then all servlet-mapping tags
together. The DTD specifies the following:
!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?,
- Original Message -
From: "Iraklis Kourtidis" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 8:23 PM
Subject: RE: Parse Error in the tag library descriptor: Element "web-app"
does not allow "servlet" here
Hi Adrian,
Try putting all servlet tags together,
This is a good idea. I hadn't thought of that.
I really don't like using the javascript,, and this method removes the need for
it.
Correct me if I am reading this wrong... The Flow Controller will keep track of
the current user's state. (Where he was last, and where he is now)
This will then
Hi Chris:
Deployment Structure:
Frollowing directories contain the web-assets
default_host\default_app\web\*.jsp
default_host\default_app\web\web-inf\*.tld
default_host\default_app\web\web-inf\web.xml
default_host\default_app\web\web-inf\struts-config.xml
Further to my previous email, the caching in IE is becoming beyond a joke.
The browser seems to just pick files at random from the cache when it
displays a page.
In response to a request for the root index.jsp file for my site it returned
the source of an external javascript file linked to the
i think this is solution for all browsers...
use meta tag in html for pragma no-cache and
also use response.setHeader("Pragma","no-cache") from server side..
this should work for IE also..
Nishit
-Original Message-
From: James Maggs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11,
This may work for IE. IE has the option of either caching or not caching (if
you use this meta-tag option). Personally i would not trust this to work on
IE cause i have been there.
-Original Message-
From: Nishit Trivedi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 5:18 PM
Try to have a complete server-side solution. Basically use a flow
controller to map your flow and write a state machine which controls your
flow. This will then work irrespective of your client interface (i.e the
client can use a cell phone WAP browser also) and this would still work.
cheers,
For IE, in html page if you use meta tag for pragma, no-cache,
still it will cache it...but if you use response.setHeader,
IE won't do it...so to be on safer side, use at both place..
Nishit
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11,
Hi all,
I have a cheesy but functional solution that has seemed to work in the past.
Append a bogus argument to your URL, whose value is the current time in
milliseconds, so that your URL looks sort of like this:
http://localhost/somepage.jsp?dummyarg=94023134255
Your browsers will not cache the
Hello,
How do you use html:image tag inside my html:tag?
I need to have two image buttons namely login, forgotPassword. Which
is the right one to use, either the html:image tag or directly use the input
type=image?
Say for example I define the html:image inside my
Hi,
I'm having trouble getting an html:select tag to properly set an indexed
bean property. The tag I'm using looks like:
html:select property="values[0]"
My Action form includes the following:
protected String[]mValues;
public void setValues(int index, String value) {
Craig,
Thanks for that. I'd been passing stuff as session var's, but grabbing the next
page's form is much cleaner.
Having problems getting it working though - seems to be creating a blank new
form in the action I forward to.
In the action after the first page is submitted, I did the
I use mapping.getName() as part of my user input validation strategy.
Basically its part of the key for retrieving validation rules out from my
resources file.
For example, my "contactForm" would use the following keys:
contactForm.required.fields=firstName,lastName,emailAddress
I am not sure what the default is but you should specify redirect="false" if
you are passing things on the request object. That will cause a forward
instead of a redirect. If the default for redirect is true then the
/ShowLog.do action will be requested with a new request.
forward
Title: FW: FW: Fwd: China
And
while you are thinking about this email, ask your Congressmen why they vote
every year to send billions of your tax dollars to the World Bank to be spent on
development projects in China. Thisfrees up Chinese government funds that
can thenbe used toward further
Hello,I am using jakarta tomcat 3.1 and stuts.I get this errororg.apache.jasper.JasperException: Unable to open taglibrary /WEB-INF/struts.tld : Parse Error in the tag library descriptor: Element "web-app" does not allow "servlet" here.
at
Well, here I am again - new problem. :| (BTW, thanks to all for helping,
this is by far one of the best list I've been on).
Problem:
Okay, I've been working with WebSphere and JBoss to get a Struts app
working. So far my efforts have been very successful. However, today I hit a
new bug. Assume
Update to the latest nightly build, this problem was fixed about
5 weeks ago.
-Rob
"Assenza, Chris" wrote:
Well, here I am again - new problem. :| (BTW, thanks to all for helping,
this is by far one of the best list I've been on).
Problem:
Okay, I've been working with WebSphere and
I found my problem - sorry for the bother. I had an unitialized array in
there that was getting returned to the SelectTag. Thanks anyway..
Dennis
-Original Message-
From: Dennis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 4:03 PM
To: [EMAIL PROTECTED]
Subject:
Short of taking the nightly build, I just extracted the required DTDs out of
the struts.jar file and put them beneath WEB-INF/classes (I'm using resin).
That seemed to work fine, but, of course, it would be nice if the software
could find them in struts.jar. ;-)
Scott
-Original
I am having this same problem with i-planet App server v6.0 sp2 and struts
from the april 5th nightly build.
Did anyone else using struts on iAS face this problem? I had been playing
with just the binary distribution.
Does the change that Bram suggested still hold good? Or is my problem
Hi folks,
Can I format java.util.Date presentations with bean:write, or do I need to
do something at the property getter?
TKS. Matt.
Yes. This problem is solved after incorporating Bram's suggestion.
Going through the archive worked out well!!!
Thanks
-Original Message-
From: Vijaya Narasimha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 6:17 PM
To: '[EMAIL PROTECTED]'
Subject: Re: My
Hi Susan,
To patch the webgui, do this:
1) remove the tomcat/webapps/ROOT/WEB-INF/classes directory
2) copy the file 'classes.jar' from gate into
tomcat/webapps/ROOT/WEB-INF/.
3) run $JAVA_HOME/bin/jar -xf classes.jar (this will replace your old
classes dir)
4) restart the webgui - check the
Doh! that looks like it'll do the trick but it has highlighted another
problem...
The link is generated inside an iterate and each image iteration is given
it's own name so that the image swapping code can refernce it... the desired
output is supposed to be along the lines:
img name="image1"
Doh!
John Raley wrote:
Hi Susan,
To patch the webgui, do this:
1) remove the tomcat/webapps/ROOT/WEB-INF/classes directory
2) copy the file 'classes.jar' from gate into
tomcat/webapps/ROOT/WEB-INF/.
3) run $JAVA_HOME/bin/jar -xf classes.jar (this will replace your old
classes dir)
4)
I can't figure out the struts way to do this:
html:select property="staffId"
logic:iterate id="staffId" name="breakForm" property="staffIds"
scope="request"
OPTION value="bean:write name="staffId" property="key"
/"bean:write name="staffId" property="value" //OPTION
It appears that SP9 for WebLogic5.1 (recently released) fixes this problem.
The informative exception is now reported!
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 10:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Debugging struts
I'm just wrapping up a fairly major project which was built on top of
Struts (thereby giving me a chance to learn it). I'm a little mixed
about the experience, not being entirely sure the value add was there. I
definitely feel "helped" by Struts' form validation infrastructure, and
I would
Hello Matthew,
Thursday, April 12, 2001, 5:55:21 AM, you wrote:
MOH Can I format java.util.Date presentations with bean:write, or do I need to
MOH do something at the property getter?
You can do it in getter method and by special version of bean:write
tag - with parameters to define formatting
Bryan,
I am also interested in someone graciously providing a birds-eye view of
Struts and Turbine, with relative strengths and weaknesses. I'm sure
You might check out these
http://barracuda.enhydra.org/Barracuda/docs/landscape.html
Bryan,
I am also interested in someone graciously providing a birds-eye view of
Struts and Turbine, with relative strengths and weaknesses. I'm sure
You might check out these
http://barracuda.enhydra.org/Barracuda/docs/landscape.html
If you change staffIds to a Collection, i.e. staffIds.entrySet(), I
*think* this will work:
% Set set = staffIds.entrySet(); %
html:select property="staffId"
html:options collection="set" property="key" labelProperty="value"/
/html:select
Anthony Martin wrote:
I can't figure out the struts
65 matches
Mail list logo