question about struts

2001-04-11 Thread ravi konam
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

Extending struts classes

2001-04-11 Thread Kristopher . Brown
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

Re: SSL and Struts

2001-04-11 Thread Ted Husted
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

Re: question about struts

2001-04-11 Thread Stanley Tan
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

Re: The Joy of File : New Window

2001-04-11 Thread Peter Alfors
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

RE: The Joy of File : New Window ... alternate approach

2001-04-11 Thread Nanduri, Amarnath
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

Where are Struts messages found?

2001-04-11 Thread James Howe
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

iPlanet - struts

2001-04-11 Thread jsmith
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:

RE: Session scope

2001-04-11 Thread Young, Wayne
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();

ActionFormBean

2001-04-11 Thread Rajan Gupta
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!

Re: Where are Struts messages found?

2001-04-11 Thread James Howe
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

relative url problems.

2001-04-11 Thread Ned Seagoon
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

Re: question about struts

2001-04-11 Thread Rajan Gupta
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

RE: Where are Struts messages found?

2001-04-11 Thread Scott Cressler
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

RE: Extending struts classes

2001-04-11 Thread Scott Cressler
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,

upload file not working

2001-04-11 Thread SPietsch
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

Url Rewrting and Cache problems

2001-04-11 Thread James Maggs
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.

Deployment on Sun's Reference Implementation

2001-04-11 Thread Anderson, Jessica
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

RE: Url Rewrting and Cache problems

2001-04-11 Thread See Yam Lim
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

ActionFormBean

2001-04-11 Thread Rajan Gupta
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

Re: Url Rewrting and Cache problems

2001-04-11 Thread James Maggs
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 -

problem getting form bean

2001-04-11 Thread Alex Tso
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"

Re: problem getting form bean

2001-04-11 Thread David Winterfeldt
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

Re: iPlanet - struts

2001-04-11 Thread Cecil Pang
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

RE: Please explain these lines to me.

2001-04-11 Thread Kurt Olsen
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

help with images

2001-04-11 Thread Derek Harding
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?

Re: Extending struts classes

2001-04-11 Thread Dmitri Plotnikov
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

RE: problem getting form bean

2001-04-11 Thread Alex Tso
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

RE: problem getting form bean

2001-04-11 Thread Alex Tso
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

upload file (2)

2001-04-11 Thread SPietsch
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

Parse Error in the tag library descriptor: Element web-app does not allow servlet here

2001-04-11 Thread Adrian Perju
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

RE: Parse Error in the tag library descriptor: Element web-app does not allow servlet here

2001-04-11 Thread Iraklis Kourtidis
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?,

Re: Parse Error in the tag library descriptor: Element web-app does not allow servlet here

2001-04-11 Thread Adrian Perju
- 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,

Re: The Joy of File : New Window ... alternate approach

2001-04-11 Thread Peter Alfors
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

RE: WebSphere 3.5.3

2001-04-11 Thread MA
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

Re: Url Rewrting and Cache problems

2001-04-11 Thread James Maggs
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

RE: Url Rewrting and Cache problems

2001-04-11 Thread Nishit Trivedi
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,

RE: Url Rewrting and Cache problems

2001-04-11 Thread Nanduri, Amarnath
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

RE: Url Rewrting and Cache problems

2001-04-11 Thread Nanduri, Amarnath
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,

RE: Url Rewrting and Cache problems

2001-04-11 Thread Nishit Trivedi
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,

RE: Url Rewrting and Cache problems

2001-04-11 Thread Iraklis Kourtidis
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

How to use the html:image tag?

2001-04-11 Thread Suriyanarayanan, Senthil Kumar
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

html:select with indexed property problem

2001-04-11 Thread Dennis
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) {

RE: Confusion with form beans

2001-04-11 Thread dhay
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

RE: Use of Mapping in ActionForm's validate() method

2001-04-11 Thread Cook, Levi
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

RE: Confusion with form beans

2001-04-11 Thread Deadman, Hal
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

FW: FW: Fwd: China

2001-04-11 Thread Ashley Tate
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

Parse Error in the tag library descriptor: Element web-app does not allow servlet here

2001-04-11 Thread Adrian Perju
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

Finding DTD when disconnected from Internet

2001-04-11 Thread Assenza, Chris
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

Re: Finding DTD when disconnected from Internet

2001-04-11 Thread Rob Leland
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

RE: html:select with indexed property problem

2001-04-11 Thread Dennis
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:

RE: Finding DTD when disconnected from Internet

2001-04-11 Thread Scott Cressler
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

Re: My struts-template is broken - repeat (newbie)

2001-04-11 Thread Vijaya Narasimha
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

Date formatting (simple question)

2001-04-11 Thread Matthew O'Haire
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.

RE: My struts-template is broken - iPlanet Application Server 6.0 sp2 and Struts (newbie)

2001-04-11 Thread Vijaya Narasimha
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

GUI classes, and a config file problem

2001-04-11 Thread John Raley
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

RE: rollover effects on html:link

2001-04-11 Thread Matthew O'Haire
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"

Re: GUI classes, and a config file problem

2001-04-11 Thread John Raley
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)

html:option

2001-04-11 Thread Anthony Martin
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

RE: Debugging struts exceptions - get SP9 for WL5.1

2001-04-11 Thread rhayden
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

A quick Struts project post-mortem

2001-04-11 Thread Bryan Field-Elliot
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

Re: Date formatting (simple question)

2001-04-11 Thread Oleg V Alexeev
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

RE: A quick Struts project post-mortem

2001-04-11 Thread Christian Cryder
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

A quick Struts project post-mortem

2001-04-11 Thread Christian Cryder
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

Re: html:option

2001-04-11 Thread Jim Crossley
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