Off-topic: JSP documents (Was: nesting tags)

2001-09-07 Thread John Yu
This raises an interesting question. "JSP documents", the XML verion of JSP, is defined in JSP spec 1.2 (Let's call them xJSP.) I think Tomcat 4.0 implements it. In xJSP, expressions like <%= blah %> are represented as   blah So, does a JSP 1.2 compliant JSP container handles an xJSP containing s

WG: struts or tomcat 3.2.1 bug?

2001-09-07 Thread juraj Lenharcik
hello, the stange thing is, when i get the bean with useBean then i can access all elements and put them out. no problems perform. then i put my iterate tag to the jsp. when i debug the jsp i can see that the bean is correctly in the scope and CAN BE ACCESSED! the iterator runs ONCE trought the

RE: Error 500--Internal Server Error

2001-09-07 Thread Chandana Perera
Hi Steven Thank you very much indeed for the replay. I did not find any useful answer form the weblogic console. I stuck with this problem more than two day, if you have any idea just let me know. Weblogic console displayed error is <[WebAppServletContext(6591192,struct)] Root cause of Ser

AW: Struts vs. JADE (from IBM) - feature and usability comparison - need help!

2001-09-07 Thread D. Veniseleas
Hi, in their Redbook for the Websphere Appl-Server they describe struts in detail. I had the impression, they liked struts. Dimitris > -Ursprüngliche Nachricht- > Von: Esterkin, Alex [SMTP:[EMAIL PROTECTED]] > Gesendet am: Donnerstag, 6. September 2001 19:49 > An: [EMAIL PROTECTED] >

RE: Examples anyone?

2001-09-07 Thread Keith Bacon
Maybe you need to use the struts tag wrote: > If I take out the useBean for task I get the following error: > > javax.servlet.ServletException: Cannot find bean task in scope null > > Any suggestions? > > Aaron > > -Original Message- > From: Bill Clinton [mailto:[EMAIL PROTECTED]] >

RE: Run Struts in Entry Editon Visual Age for Java 4.0?

2001-09-07 Thread VIAUD Cédric
Title: RE: Run Struts in Entry Editon Visual Age for Java 4.0? Can you explicite your probleme. I am actually using VAJ 3.5 and WAS 3.5.3, and everything is OK. A+ Cédric -Message d'origine- De : Julia Yang [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 7 septembre 2001 00:36 À : [EM

RE: Stability of Struts

2001-09-07 Thread VIAUD Cédric
Title: RE: Stability of Struts My company is evaluating Struts in an internal project. We use it in a full J2EE environment. We develop with VisualAge for Java, and the target application server is WebSphere. There is no particular problem on deployment. Struts seems to work well, and greatly

RE: Stability of Struts

2001-09-07 Thread Chandana Perera
Title: RE: Stability of Struts Hi   Do not worry about the stability of the strut technology. All the software Giants use struts in USA.   we did a very good project for the one of the leading software company in the USA, I do not want to the mentioned the name but that company is the on

Struts I18N doesn't work in Windwos 2000 environment

2001-09-07 Thread 林志鵬 Vincent Lin
Hi, I run struts in weblogic in Win2k (tratitional Chinese version) platform. But tags always display Chinese message no matter what locale I set to the session with key org.apache.struts.action.Action.LOCALE_KEY. But the same code worked correctly on Linux platform. Has anyone encountered

DataBase Controller in Struts

2001-09-07 Thread bruno . o . faure
Hi all, I'm new to J2EE application design. I would like to get advices on how to best get access to DB in struts&J2EE applications (through datasource). I don't want to code JDBC access in all struts action classes that need to access database. What would be the best way to access database ? Wo

state dependent look&feel of HTML elements in struts/JSP

2001-09-07 Thread Roland Berger
Hi all Offten one need severel JSP pages which looks almost the same. The only difference could be that a field in one page is visible in the other not or a link is activ in one page not in the other. Since I don't wont to write two different JSP pages with that little difference I wonder if ther

RE: state dependent look&feel of HTML elements in struts/JSP

2001-09-07 Thread VIAUD Cédric
Title: RE: state dependent look&feel of HTML elements in struts/JSP i think you can do this by using à bean in wich you use somes attributes to describe the state of your JSP. Then , you test the values of this bean in your JSP to make conditional section. Struts Tags allow this kind of thin

Ask about ActionForward

2001-09-07 Thread Antonio Weber
I have code in a Action looking like this public ActionForward perfom else { String forward = "LookupKeyUpdate.jsp?PK_LookupKey=" + PK + "&Key=" + Key + "&OrderId=" + OrderId + "&ValidFrom=" + ValidFrom + "&ValidTo

Personalisation Best Practice

2001-09-07 Thread Peter Pilgrim
What is a good way of using Struts and personalisation ? I would like to write a JavaBean with some personalisation getter and setter. It would probably pick up the details from the database I would like to write method to change the background colours of table rows for example in a trading appl

Re: Personalisation Best Practice

2001-09-07 Thread Gregor Rayman
"Peter Pilgrim" <[EMAIL PROTECTED]> wrote: > What is a good way of using Struts and personalisation ? > > I would like to write a JavaBean with some personalisation getter and setter. > It would probably pick up the details from the database > I would like to write method to change the background

Re: Personalisation Best Practice

2001-09-07 Thread Peter Pilgrim
How do I get a "*.css" file recognised as valid Java Server Page? -- Peter Pilgrim | |++44 (0)207-545-9923 \ \ ___ / / ... . - ( * ) --- -- _Cafe_Savannah,_San Antonio,Ibiza__ --

Re: Personalisation Best Practice

2001-09-07 Thread Torgeir Veimo
Peter Pilgrim wrote: > > How do I get a "*.css" file recognised as valid Java Server Page? Have you tried; and in the jsp; <%@page contentType="text/css"%> -- - Torgeir

Re: Personalisation Best Practice

2001-09-07 Thread Gregor Rayman
"Peter Pilgrim" <[EMAIL PROTECTED]> > How do I get a "*.css" file recognised as valid Java Server Page? > -- > Peter Pilgrim | |++44 (0)207-545-9923 > \ \ ___ / / ... . > - ( * ) --- -- > _Cafe_Savannah,

Re: DataBase Controller in Struts

2001-09-07 Thread Ted Husted
In general, you would might want to write a helper class to handle the database access. Struts doesn't need to know where the data comes from or goes to. This isn't easy to do with the GenericDataSource in the Struts package, since it is tied to the Servletcontext, so I use PoolMan (www.codestudio

Re: Personalisation Best Practice

2001-09-07 Thread Peter Pilgrim
Thanks guys you given me an idea. To store perhaps the actual personalisation in database table. stylesheet.jsp: <% response.setContentType("text/css"); %> h1 { } Where I could create a table CSSDEF Element , Name, Defn "h1" | "red" | "color:#FF ;" "h1" | "green" | "color:#00FF00

Re: Personalisation Best Practice

2001-09-07 Thread Max Cooper
Hi Peter, I think you might have trouble with having too many JSP tags in the page if you employed a scheme like that. Yes, it seems a little crazy, but we have had trouble when a page has many JSP tags (Struts or otherwise) in it. The server would throw a cryptic exception - class verify error o

Re: DataBase Controller in Struts

2001-09-07 Thread Pete Carapetyan
Bruno, regarding the features you speak of, one of Struts most enthusiastic user groups is the Expresso community, a framework which has adopted the lightweight Struts framework within it's more heavyweight, database centric approach. Expresso has many of the features you have mentioned needing,

Re: Personalisation Best Practice

2001-09-07 Thread Max Cooper
Watch out for browser caching issues with a JSP stylesheet. It may be slow to adopt new preferences because the browser is using a cached copy. Turning caching off might hurt the performance of both the server (having to regenerate the stylesheet for each page view) and browser (having to download

Re: Personalisation Best Practice

2001-09-07 Thread Ted Husted
Peter Pilgrim wrote: > I will think about this a bit more, still fuzzy ... Be sure to keep us posted, Peter! I'm in the middle of working out a design for portal-like applications using Tiles and the very cool RSS Channel bean from the Commons-Digester. I'd love to add personalization to this as

RE: Line of Code Counter?

2001-09-07 Thread Brugge, John
Check out JavaNCSS (NCSS = "non-commenting source statements"). In addition to simple lines of code in your application, it counts lines per method, methods per class, and classes per package, to name just a few metrics. The output is in a nice tabular format, easy to read and easy to analyze. ht

Re: Personalisation Best Practice

2001-09-07 Thread Peter Pilgrim
Ah ha! but you are forgetting that JSP can also include (statically) or (dynamically) content You can a personalisation stylesheet. You can also have more than one stylesheet two. <%@ page include file="personalisation.css" %> You dont have to wrote about the issue then Also rather than st

RE: Examples anyone?

2001-09-07 Thread Aaron O'Hara
I tried adding: any got: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:320) Any other suggestions? Aaron -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 1:10 AM To: [EMAIL PROTECTED] Subject: RE: Examples a

Re: Examples anyone?

2001-09-07 Thread Bill Clinton
Aaron, I am not sure why you are getting that error. I have never needed to use a "bean:define" or "jsp:useBean" to define the object being iterated over. It seems your collection (getTasks()) is being found, or you would get an error like this: javax.servlet.jsp.JspException: No coll

role-based Actions and page not found error

2001-09-07 Thread Matt Raible
Nic, I think the best thing to handle the situation below would be to direct the user to a return a 403 error (forbidden). Then in the web.xml, it might be possible to direct your server to route 403 errors to a specific page. Is there anywhere that you specify returning a 404 error? This is a

RE: Examples anyone?

2001-09-07 Thread Aaron O'Hara
The following is my code in the tags: The tasks for me: <%=general.getTasks().size() %> workman! The scriptlet asking for size returns 3, but the text "workman!" appears only once. Any other ideas? Aaron -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: Frid

Tabs on JSPs

2001-09-07 Thread Allan . Pomeroy
Hello! I'm new to struts, JSP, VAJ, etc. Is there any way to simulate the appearance of GUI tabs on a web page using struts? I know I can do it with frames, javaScript and layering ... but I'm hoping I won't have to get into that. I searched the struts-user archive for this and found very li

Re: Tabs on JSPs

2001-09-07 Thread Ted Husted
Struts is a server-side framework, and doesn't address these types of client-side issues. But whatever would work without Struts in this regard, should work the same with Struts. I can't recommend anything off-hand, but any JSP GUI framework that did these things would probably work well with

Re: Tabs on JSPs

2001-09-07 Thread Matt Raible
JSP's only create HTML - when it gets to the browser it's the same as if you wrote it statically. Therefore, tabs would be created the same way you would on a static HTML page. Matt --- [EMAIL PROTECTED] wrote: > Hello! > > I'm new to struts, JSP, VAJ, etc. > > Is there any way to simulat

RE: Examples anyone?

2001-09-07 Thread Keith Bacon
Aaron, Another guess (my last advice was no good sorry). Maybe you have a collection size of 3 but 2 entries are null? Keith. --- Aaron O'Hara <[EMAIL PROTECTED]> wrote: > The following is my code in the tags: > > The tasks for me: > <%=general.getTasks().size() %> > > workman! > > > Th

POST and session-timeout

2001-09-07 Thread Ralph vd Houdt
Hi All, I have a secured area in with FORM authentication, when I -POST- a Form after the session has timed out and re-login, the information on the Form isn't submitted anymore. The parameters are lost. Is there a possibility te have the parameters still in the request? Getting the form isn't an

Re: Examples anyone?

2001-09-07 Thread Bill Clinton
Aaron, Lets go back to your second error, the "javax.servlet.ServletException: Cannot find bean task in scope null". I can simulate this if, in one of the pages where I use an iteration in this manner, I remove or modify the tag definition. Are you absolutely sure that you have the <

problem using custom tags nested inside template tags

2001-09-07 Thread Venkatraman, Shanthi
> I am encountering a problem in using template tag > > Here is the samle jsp > > <%@ page language="java" %> > <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" p

Re: role-based Actions and page not found error

2001-09-07 Thread Nic Hobbs
Hi Matt, All, Firstly let me apologise for my absence for the last few weeks ( I seem to end up doing this at the top of every posting I make ;) but I had a nasty and artistic bout of Food Poisoning and then a holiday to contend with. Since I have been trying to catch up on the several thousa

Re: AW: Struts vs. JADE (from IBM) - feature and usability comparison- need help!

2001-09-07 Thread Doug Smith
Also, Struts is bundled with WAS 4.0 and used to build their web-based admin tools. I'd say that's quite an endorsement from Big Blue. Doug "D. Veniseleas"

Re: role-based Actions and page not found error

2001-09-07 Thread Matt Raible
Nic, I changed your ActionServlet (line 1573) to return SC_FORBIDDEN in the following code block: if (debug >= 1) log(" Access denied to mapping for path " + path); response.sendError(HttpServletResponse.SC_FORBIDDEN, internal.getMessage("processAccessDenied", path)); added this to my web

RE: Run Struts in Entry Editon Visual Age for Java 4.0?

2001-09-07 Thread Julia Yang
Sorry bother you all again Guys, Can you share how to run struts in VAJ4 ?. Any instructions? What version of struts do you use ? how do you solve the XML Parser problem ? I follow up the article of Apache Struts and VAJ part 2: Using Struts in VAJ 3.5.3 from IBM Kyle Brown. What I did Impo

RE: Examples anyone?

2001-09-07 Thread Aaron O'Hara
YOU 'DA MAN! I forgot something so *&@# simple! As soon as I added the taglib directive, I was able to successfully iterate. Thanks so much for hanging on and helping me out.. Aaron -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 8:06

request object

2001-09-07 Thread chiji nwankwo
Hi, When forwarding from one action to another, is the same request object used?  For example, is this legal? Action subclass 1 (perform method) : Test test = new Test(); // initialize test request.setAttribute( "test", test ) return (mapping.findForward( "Action subclass 2" )) Action subclass 2 (

Re: role-based Actions and page not found error

2001-09-07 Thread Matt Raible
I got this figured out - the SC_FORBIDDEN works GREAT!! Without the entry in my web.xml - I get an error message from the server (or browser if using IE 6). I changed the entry in my web.xml to have a leading slash ("/") and it works great! 403 /accessDenied.jsp +1 for adding thi

Re-populating ActionForm

2001-09-07 Thread Mauro Mellino
Hi, I'm writing my first struts app but have encountered some trouble. Basically I have a jsp page with a drop down list populated from an actionForm. Based on the selection from the drop-down list the same actionForm (and jsp) is repopulated via a query to a database from the actionForm. The

RE: DataBase Controller in Struts

2001-09-07 Thread Flying Cloud
> Expresso has many of the features you have mentioned needing, > and many more > as well. As a community, it is neither as large or as well > documented as the > Struts community, Expresso's listserv while large at 3700 does not share the activity that the Struts lists has (even considering the

RE: "indexed" option does not work with html:checkbox

2001-09-07 Thread dhay
Hi. Not sure I follow... If you add indexed="true" to the checkbox tag, it will produce unique indexed names which should set the value in the appropriate deleteCheckbox - you can then check which deleteCheckbox was set. Let me know if this isn't what you want! Cheers, Dave "Campesato,

RE: "indexed" option does not work with html:checkbox

2001-09-07 Thread Campesato, Oswald
David: yes, that's exactly what I wanted to do, but we have the Struts 'jar' files from several months ago, and at that point in time "indexed=true" was not supported. I verified this by checking struts-html.tld (as suggested by Marcelo). Since I cannot use the latest build, I need to find a wo

Error upgrading to latest struts build

2001-09-07 Thread Larry Maturo
I'm trying to upgrade from struts 1.0 to the latest nightly build. I'm using Forte, and I get the following error in my output: 2001-09-07 11:32:23 - Ctx( ): Error in actioninit(), error happened at 999880230498 wait -113171 : Missing configuration resource for path /WEB-INF/struts-config.xml -

RE: "indexed" option does not work with html:checkbox

2001-09-07 Thread dhay
Hi Oswald, Sorry, didn't catch that you can't use the nightly build... In that case, you have to use scriptlets to set the index yourself...look at the archive for messages http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08160.html or http://www.mail-archive.com/struts-user@jaka

Nesting Tags (Again)

2001-09-07 Thread Clay Graham
John, So I tried your cool eval approach but the JSP page seems to no be able to find the string once I have placed it in the page context using the eval tag. Here's my implementation of the eval tag... public class EvalBody extends BodyTagSupport { private String id; /* 1) At the

Re: Examples anyone?

2001-09-07 Thread Bill Clinton
Aaron, Glad i could help out. Its always the damn simple things. :) Bill Aaron O'Hara wrote: >YOU 'DA MAN! > >I forgot something so *&@# simple! As soon as I added the taglib directive, >I was able to successfully iterate. > >Thanks so much for hanging on and helping me out.. > >A

struts-user@jakarta.apache.org

2001-09-07 Thread David Corbin
The tag doesn't seem to support a way to generate the "main path" from an attribute. Is this correct? In other words, I want a link to be yadda yadda yadda, but I want the value foobar to come from an attribute in the request scope. Any ideas? Thanks.

Re: bean:define, bean:write

2001-09-07 Thread David Corbin
For the record, my mistake was in use the "scope" attribute instead of the "toScope" attribute. - Original Message - From: "Keith Bacon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 06, 2001 1:38 PM Subject: Re: bean:define, bean:write > My guess is that jsp:de

Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" remain

2001-09-07 Thread Julia Yang
Hi, Geoff and Mark and all Thank you for answer my question on how to use struts in VAJ I got it run but with a error Server caught unhandled exception from servlet [jsp]: cant remove Attributes from request scope I followed the e-mail Geoff sent out on 8/21/2001 with Replace the following line

FW: [NEW-USER] WebLogic 5.1 sp9 deployment issue

2001-09-07 Thread Schwartz, Mark
-Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 2:10 PM To: [EMAIL PROTECTED] Subject: Re: [NEW-USER] WebLogic 5.1 sp9 deployment issue The best place to ask this question would be the Struts User list. "Schwartz, Mark" wrote: > > Sorry

RE: [NEW-USER] WebLogic 5.1 sp9 deployment issue

2001-09-07 Thread Jason Chaffee
Title: RE: [NEW-USER] WebLogic 5.1 sp9 deployment issue Mark, I ran into session problems as well with sp9.  We found sp9 to be quite buggy and decided to use sp8 until sp10 was released.  You could try to contact BEA and get a custom fix, but by then sp10 should be released.  Sorry, but I don

Re: Help Error run Struts in VAJ 4 "cant remove Attributes from requestscope" remain

2001-09-07 Thread Eric . Stievater
Julia, I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0. You need to make sure you are changing the code in the correct place. There are two FormTag classes - one in the base taglib package and one in the taglib.html package. In order to get the application to

RE: AW: Struts vs. JADE (from IBM) - feature and usability comparison - need help!

2001-09-07 Thread Brugge, John
Two points to consider: 1. The WAS 4.0 admin tool is based on Struts 0.5, which is quite antiquated. That's not a hearty endorsement for Struts 1.0. 2. IBM is a *big* organization. The fact that the consulting group may be pushing something besides Struts while the WAS group is using Struts is no

RE: Help Error run Struts in VAJ 4 "cant remove Attributes from requestscope" remain

2001-09-07 Thread Julia Yang
Thank you Eric. It is working now Julia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 11:50 AM To: [EMAIL PROTECTED] Subject: Re: Help Error run Struts in VAJ 4 "cant remove Attributes from requestscope" remain Julia, I had th

RE: Help Error run Struts in VAJ 4 "cant remove Attributes from request scope" remain

2001-09-07 Thread Assenza, Chris
The correct Jar is also available on the Ted's site and http://www.enfused.com/struts.jar Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message---

Re: Nesting Tags (Again)

2001-09-07 Thread John Raley
You're almost there. The content is in your page context; the problem is your tag doesn't declare a scripting variable. You have three choices: 1) Write a TagExtraInfo class for your eval tag that declares the variable. Don't forget the element in your .tld! 2) Use the struts bean:define tag

newbie question

2001-09-07 Thread Thinh Doan
Please explain these lines from struts example (index.jsp): ERROR: Application resources not loaded -- check servlet container logs for error messages. Thanks.

RE: Personalisation Best Practice

2001-09-07 Thread Flying Cloud
snip > I'm in the middle of working out a > design for portal-like applications using Tiles and the very cool RSS > Channel bean from the Commons-Digester. I'd love to add personalization > to this as well. A design for portal-like applications is of high interest to me. I would love to hear as s

RE: display error messages for errors found in an Action

2001-09-07 Thread Brian Grant - SilverStream
Title: RE: display error messages for errors found in an Action -Original Message- From: Bill Clinton [mailto:[EMAIL PROTECTED]] Sent: 4. september 2001 22:27 To: [EMAIL PROTECTED] Subject: Re: display error messages for errors found in an Action Hi Brian, yes, you can do thi

Re: AW: Struts vs. JADE (from IBM) - feature and usability comparison - n...

2001-09-07 Thread SLBrand
Not to mention that they built the new Administration Console in struts... go figure...

Guide for Installing/Configuring Struts in VAJ 4.0 using WTE and WAS 4.0

2001-09-07 Thread SLBrand
Hi folks, As promised earlier on the boards, enclose are the directions I've come up with for installing and configuring struts to run in VAJ/WTE 4.0 and WAS 4.0. Claim:  - I had 2 other people that I work with use these instructions, and both where able to get up and running in under an h

Does anyone know how to get the parents BeanInfo ?

2001-09-07 Thread Trieu, Danny
I know this a litle out of scope, but I need this info to extend the Struts existing tag. That is I want to write a tag that will print out all of the given bean properties as hidden tags inside a from. These properties includes the properties of its parent classes. appreciate your helps ...

Status of validator & Struts 1.1

2001-09-07 Thread dion
I checked out the struts code from CVS recently and didn't see the validator code. Is this being integrated into Struts 1.1? Or should I send feedback to David Winterfeld? -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au JavaNews: http://www.multitask.com.au/JavaNews