Re: init'ing a session bean in Action

2001-03-29 Thread Ana Narvaez Vila
what you have to lookup is the jndi name. I am using Weblogic and I have a weblogic-ejb-jar.xml where you say the name you want to put to EJB in jndi directory. jndi-namenamexxx/jndi-name ConfigHome home = (ConfigHome) ctx.lookup("namexxx"); Bye "G.L. Grobe" wrote: Probably not

RE: Internationalised 'alt' text

2001-03-29 Thread Howard Moore
The html:img tag now contains an altKey attribute that does what you want. e.g. html:img src="someImage.png" altKey="someImage.alt.text"/ -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: 28 March 2001 21:54 To: [EMAIL PROTECTED] Subject: Re:

Re: How to redirect to the input jsp page from the formbean's validat emethod instead of populating ActionErrors.

2001-03-29 Thread suresh
Hi Senthil, Sorry for answering a question with a question. How do you redirect errors from perform to the input page without ActionErrors? Best regards Suresh

Re: tomcat 4 and reloading application

2001-03-29 Thread William Jaynes
I still am unable to get Tomcat4 to reload my app when a class changes. Can't figure it out. Resin does the reload with no problem, so it isn't some problem within my app. Guess I'll be using Resin for the time being. - Original Message - From: "William Jaynes" [EMAIL PROTECTED] To:

Re: Internationalised 'alt' text

2001-03-29 Thread Maya Muchnik
Thank you, Howard. And if this does not work for me, is that meant, because I am using Tomcat 3.1? In your example below I am using pageKey instead of src. Howard Moore wrote: The html:img tag now contains an altKey attribute that does what you want. e.g. html:img src="someImage.png"

Re: JavaScript in Struts

2001-03-29 Thread Ted Husted
I've added these to our Jyve FAQ: How Do I use Javascript in my Struts forms? --- The relevant HTML tags provide support for the Javascript event handlers onblur, onchange, onclick, ondblclick, onfocus, onkeydown, onkeypress, onkeyup, onmousedown,

java.lang.IllegalStateException: Can't happen - classname is null, who added this ?

2001-03-29 Thread Szlapa, Michael
Every now and then I get the following exception: Location: /poc/ Internal Servlet Error: java.lang.IllegalStateException: Can't happen - classname is null, who added this ? at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261) at

RE: Internationalised 'alt' text

2001-03-29 Thread Howard Moore
It's possible I suppose. I've tried it with Tomcat 3.2 using pageKey rather than src and it works ok (using Struts 1.0b1). What happens when you try to use the tag, e.g. what html is produced or what exception is thrown? -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]]

iterate tag

2001-03-29 Thread Marcin Baj
Hello, I want to use tag iterate for displaying my data. Is it working properly? Where should be placed my Collection property? I'm receiving data from database in CustomAction.java bean. Is it correct? My target JSP page contains: tablelogic:iterate id="lang"

RE: struts and cocoon

2001-03-29 Thread Maring, Steve
Have you played with the order that these occur in the CLASSPATH? -Original Message-From: Ali Ozoren [mailto:[EMAIL PROTECTED]]Sent: Tuesday, August 29, 2000 10:10 AMTo: [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: struts and cocoon Hi all- Ive been

standard administrative actions?

2001-03-29 Thread Maring, Steve
I understand what the end result of these do, but how do they do them, and how are they used? Do they modify the struts-conf.xml or just the ActionMapper? !-- The standard administrative actions available with Struts -- !-- These would be either omitted or protected by security --

RE: ActionForward and Frames

2001-03-29 Thread Sean Giles
yes, thats what we doing currently but under certain conditions I would like to change the target frame. Thanks Sean -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:49 PM To: [EMAIL PROTECTED] Subject: Re: ActionForward and

Re: iterate tag

2001-03-29 Thread David Winterfeldt
It looks to me like LanguageBean has a method call langCollection that returns your collection. If this is true the tags should be like this. The will loop through each element in the collection. table logic:iterate id="lang" name="estatenet.custom.LanguageBean"

RE: JUNIT and Struts

2001-03-29 Thread Padma Ginnaram
Title: RE: JUNIT and Struts Is there a sample available for testing struts with j2eeunit Thanks, Padma -Original Message- From: Vincent Massol [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 5:27 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re:

RE: JUNIT and Struts

2001-03-29 Thread Padma Ginnaram
Title: RE: JUNIT and Struts Is there a sample available for testing struts with j2eeunit Thanks, Padma -Original Message- From: Vincent Massol [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 5:27 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re:

dropdown values gone after validation error

2001-03-29 Thread Young, Wayne
I have the following struts/JSP fragment that creates a dropdown with values from the networkTypes attribute. html:select styleClass="Field" property="networkType" size="1" html:options property="networkTypes"/ /html:select/td The networkTypes attribute is created in the "getNetworkTypes"

Compiling Issues

2001-03-29 Thread Steven Leija
Hello All, I'm new to the struts framework. I've set up struts using weblogic 6 and the newest version of struts. On my first application, when trying to retrieve the web page, it produces a "Parsing of JSP File '/Test.jsp' failed" message. The following is the error from my server console:

Re: Internationalised 'alt' text

2001-03-29 Thread Maya Muchnik
No exception. Here is a short cut from view source: ... form name="logonForm" method="POST" action="/jndi2/logon.do;jsessionid=..."> table...> tbody> tr>td>Username:/td> td>input ...>/td> /tr> tr>td>Password:/td> td>input ...>/td> /tr> tr>td>input type="image" name=""

Compiling Issues

2001-03-29 Thread Steven Leija
Hello All, I'm new to the Struts framework and trying to compile my first struts application using weblogic 6 and the newest download of the struts application. Here is my code for the test page. %@ page language="java" % %@ taglib uri="/WEB-INF/struts-form.tld" prefix="struts" %

variable number of fields in a form

2001-03-29 Thread Handy, Steve
Forgive me if this has been asked; I'm having trouble reading old messages. Within a page, I need to show a variable number of rows (each of which represents a database row). Each row will have a text entry field. The user can enter values in any number of these fields before submitting them

RE: How to redirect to the input jsp page from the formbean's validat e method instead of populating ActionErrors.

2001-03-29 Thread Jacob Thomas
We can use mapping.getInput() to forward to the "input" page. -- Jacob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 4:18 AM To: [EMAIL PROTECTED] Subject: Re: How to redirect to the input jsp page from the formbean's validat e

form bean question

2001-03-29 Thread Eugene Krivopaltsev
Hello everyone, I am learning struts and have following question: Why form should be described in two places: 1. in jsp page (I am looking at logon example): html:form name="LogonForm" type="fully qualif. name" ... 2. struts-config.xml form bean

RE: form bean question

2001-03-29 Thread Jacob Thomas
The html:form tag will either lookup or instantiate the ActionForm so that the form parameters can be set to meaningful values on the page. Then, when the user makes changes and submits the form, the ActionServlet will populate the same ActionForm instance (if it is given 'session' scope) with

Help PLEASE!!!! How do you create struts template file using frame instead of table

2001-03-29 Thread Hoang, Anh
Hello all, In the template tag example, the template file used the table and table row to indicate where in the layout to insert the content. Is there a way to build the template file using frame instead of table? How do you specify the src so that it will take template:get name="anything"/ to

.properties file

2001-03-29 Thread Yuriy Zubarev
Hello friends, I was wondering if there is a way to store a relatively big amount of text (which can't be fitted in one single line) assigned to some variable in the ApplicationResources.properties file. This text eventually will be local-sensitive that's why I want to put it into the

Re: need some explaination with logon.do

2001-03-29 Thread Maya Muchnik
Here is a good explanation how this application works and other stuff. http://www.husted.com/about/struts/example-tour.html http://www.husted.com/about/struts/ Maya "Charlemagne L. Rey" wrote: Hello everybody, I think I still don't understand how did the struts-example flows. Could anybody

Re: dropdown values gone after validation error

2001-03-29 Thread Incze Lajos
On Thu, Mar 29, 2001 at 10:49:24AM -0600, Young, Wayne wrote: I have the following struts/JSP fragment that creates a dropdown with values from the networkTypes attribute. html:select styleClass="Field" property="networkType" size="1" html:options property="networkTypes"/

Re: standard administrative actions?

2001-03-29 Thread Incze Lajos
On Thu, Mar 29, 2001 at 10:34:47AM -0500, Maring, Steve wrote: I understand what the end result of these do, but how do they do them, and how are they used? Do they modify the struts-conf.xml or just the ActionMapper? Just the later.icnze

Re: java.lang.IllegalStateException: Can't happen - classname is null , who added this ?

2001-03-29 Thread Incze Lajos
On Thu, Mar 29, 2001 at 09:46:15AM -0500, Szlapa, Michael wrote: Every now and then I get the following exception: Location: /poc/ Internal Servlet Error: java.lang.IllegalStateException: Can't happen - classname is null, who added this ? ... To be precise it happens when I navigate back

Re: form bean question

2001-03-29 Thread Maya Muchnik
Eugene, If I have understood your question, the 1st place is jsp file, where the form is directly used. The 2nd place (config file) where you set mapping up. For example you tell that logonForm (the first letter is lower case) is coming from the class LogonForm, and jsp file logon.jsp will be

Validating dates

2001-03-29 Thread Donnie_Hall
Does anyone have a code example for validating a date field in the validate method of actionform? Actually, a date in a string attribute. thanks in advance for your help, Donnie Hall

Re: .properties file

2001-03-29 Thread Maya Muchnik
Yes, you can put anything into your application file (jsp file name, image file name, and text file name). The problem is who will read it? You need to have some Action that for a particular request will open this file (name you can get though MessagesResources) and read it. Maya Yuriy Zubarev

forward in struts-config.xml file

2001-03-29 Thread Nanduri, Amarnath
Hi everybody, I am faced with a unique situation. I have at present 45 Action classes in my project. In the future this number may climb to more than 100 ( yeah it is a huge project). We just completed requirements and want to make sure that struts can really handle such a heavy load

RE: dropdown values gone after validation error

2001-03-29 Thread Young, Wayne
Thanks. I moved my call to populate the dropdown values from the Action descendant perform() method to the ActionForm descendant reset() method. That worked makes sense to me. Question: Is this violating any kind of "separation" rule that I'm going to get drilled on by other developers? Wayne

Re: forward in struts-config.xml file

2001-03-29 Thread Ted Husted
syntax : forward name="advanced" path=""/ What I do is put in the actual name for the forward, and then point the path to an "under construction page" where I also list any beta-testing issues. As the pages come online, you simply need to update the configuration file -- all the

RE: forward in struts-config.xml file

2001-03-29 Thread Nanduri, Amarnath
Ted , Regarding your reply i hate typing in the same name again and again... forward name="help"path="/help/index.jsp"/ forward name="helpBid" path="/issues.jsp"/ forward name="helpDonate" path="/issues.jsp"/ forward name="helpFacts"

Re: forward in struts-config.xml file

2001-03-29 Thread Incze Lajos
During the demo i noticed that i get a 404 error when trying to reach this page (which is as it should be). I want to keep an indefined state page to these. My problem is that i don't want to write the 'undefined.jsp' in each You can specify an 404 handler page for the servlet engine

how do i unsubscribe from this list?

2001-03-29 Thread Perez, Bill
how do i unsubscribe from this list?

Re: how do i unsubscribe from this list?

2001-03-29 Thread Maya Muchnik
To stop subscription for this address, mail: [EMAIL PROTECTED] where john = your username, host.domain = your domain name. "Perez, Bill" wrote: how do i unsubscribe from this list?

Communicating with EJB's from Action

2001-03-29 Thread Assenza, Chris
Hello! :) Our dev team for a big enterprise app has been going back and forth on how to send the data from the ActionForm to a Session bean. We have a number of options and I was hoping for some feedback because we've had enough talk and its time to decide! :) (Our architecture is as of now to

just want to know...

2001-03-29 Thread Charlemagne L. Rey
Hello everybody, I currently have the 1.0 version of struts. I tried to look at the examples and studied it. When I recompiled the sources from the examples/src directory, I noticed that the byte size are not equal. And when I replaced the classes, it produces a different output. It is very

Re: need some explaination with logon.do

2001-03-29 Thread Ted Husted
First, be sure that you have followed the "tour" that comes with the example. There's a small link on the first page. The "do" pages are "action mappings". When the Struts ActionServlet is registered with the container, it asks for the "do" pages. The ActionServlet then refers to the mappings

Re: just want to know...

2001-03-29 Thread Maya Muchnik
Different sizes - I can understand, because the different compilers and / or different build environment. Why does not work - no clue? I am using prebuild (night build) version. "Charlemagne L. Rey" wrote: Hello everybody, I currently have the 1.0 version of struts. I tried to look at the

RE: beta 2

2001-03-29 Thread Darren_James
Hello Struts Users, I am fairly new to struts (like a lot of folks), and was fairly confused by the duplicate tags in the struts.tld and other of the struts tag libraries (e.g. struts-bean). I finally saw in the release notes for the beta 2 that this entire tag library is deprecated. Why is

getting value from bean

2001-03-29 Thread Nishit Trivedi
hi. I am new to struts... I have a problem with getting a value from bean... here are some pieces of my code where i set and get values: In jsp page i have this: - td align="left" html:text property="totalCopies"

Re: Communicating with EJB's from Action

2001-03-29 Thread Jim Crossley
How about a slight variation on #1? interface BusinessBeanThingie {} class YourActionForm implements BusinessBeanThingie {} class YourSessionBean { YourSessionBean(BusinessBeanThingie bbt) {} } Because YourActionForm implements BusinessBeanThingie, you can pass it to your session bean in your

RE: getting value from bean

2001-03-29 Thread Jacob Thomas
I think your html:form tag is instantiating a new Form bean and hence the fields have their default values when the page is rendered. When the page is submitted another form bean is getting created. You may want to set the scope to 'session' and remove the bean appropriately. -- Jacob

RE: Communicating with EJB's from Action

2001-03-29 Thread Handy, Steve
Chris, What we've done is this: - Put a layer of business logic session stateless beans above the entity EJBs. The beans in this layer have methods that perform specific business functions. - Have the Action classes translate the user's click into one or more calls to the business logic

RE: getting value from bean

2001-03-29 Thread Nishit Trivedi
This is what i think should happen... (Correct me wherever i am wrong...) This is how i call bean for setting values in config file: !-- Form bean -- form-bean name="myForm" type="org.apache.struts.dir1.dir2.MyBean"

Re: Validating dates

2001-03-29 Thread David Winterfeldt
I've been working on some validation routines. There is a date one in com.wintecinc.struts.validation.Validator in the src/share directory. The date validation doesn't support multiple locales though, but you could enhance it. You can get to the source at (more recent builds).

RE: getting value from bean

2001-03-29 Thread Jacob Thomas
ActionServlet will take MyBean from 'session' scope (put there by html:form tag) and populate it with the form parameters before calling ProcessMyBean.perform(). -- Jacob -Original Message- From: Nishit Trivedi [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 3:29 PM To:

Re: just want to know...

2001-03-29 Thread Charlemagne L. Rey
Thank you very much. I just now realized that the version I am using is not updated and contains the unstable source codes. I already shifted to the nightly version, I hope that I'll have more success on this one. Maya Muchnik wrote: Different sizes - I can understand, because the different

how to handle the runtime or uncaught exceptions thrown from the Action class.

2001-03-29 Thread Suriyanarayanan, Senthil Kumar
Hello, I have my logon.jsp page as .. %@ page language="java" isErrorPage="false" errorPage="errorpage.jsp" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % and errorpage.jsp as .. %@ page

struts and cocoon

2001-03-29 Thread Ali Ozoren
Hi all- Ive been trying to get cocoon and struts together, however one is using the servlet.jar the other servlet_2_2.jar. Is it possible to combine these two? Thanks!

RE: using struts in a load-balanced environement

2001-03-29 Thread Abraham Kang
Hi Doug, If you do not require cookies and you want clustering to be effective, then the app server/ servlet container you choose will have to embed the server specific information into JSESSIONID parameter. You would then load balance to any web server that has a plug-in which can decrypt the

session bean in action

2001-03-29 Thread G.L. Grobe
I'm getting the error at the bottom and would like to know if there's anything special I need to do inside an Action. Server type is Orion 1.4.5. ConfigBuildBean - Session Bean ConfigBuildHome - EJBHome ConfigBuild - EJBObject -- ejb-jar.xml

downloadable javadoc

2001-03-29 Thread Burr Sutter
Is there a downloadable version of the javadoc for Struts (found online at http://jakarta.apache.org/struts/api/index.html)? I normally like to keep these things on the local disk for offline work. Burr

Re: downloadable javadoc

2001-03-29 Thread Ted Husted
Absolutely everything is in the source distribution. Burr Sutter wrote: Is there a downloadable version of the javadoc for Struts (found online at http://jakarta.apache.org/struts/api/index.html)? I normally like to keep these things on the local disk for offline work. Burr -- Ted

Re: beta 2

2001-03-29 Thread Martin Cooper
Beta 2 is still under development, which is why it's not available for download yet. The release notes are there, I believe, as a "running commentary", if you will, on the changes that have happened so far between Beta 1 and the current nightly builds. Beta 2 should happen soon, but I'm not

Re: getting value from bean

2001-03-29 Thread Martin Cooper
See comments intermixed. - Original Message - From: "Nishit Trivedi" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 29, 2001 3:29 PM Subject: RE: getting value from bean This is what i think should happen... (Correct me wherever i am wrong...) This is how i call bean

MySQL

2001-03-29 Thread James Bell
Hi everyone I want to use MySQL with Struts. Although not a Struts specific question, what jdbc driver is the best to use. I downloaded the driver from caucho and noticed that it was marked as experimental. I know that may mean that it is still a good driver. But I would like an

Re: MySQL

2001-03-29 Thread Christophe Vigny
I'm using : org.gjt.mm.mysql.Driver it work fine for me, very fast. but I have a problem : when I do ; Context env = (Context) new InitialContext().lookup("java:comp/env"); DataSource source = (DataSource) env.lookup("jdbc/db"); Connection conn = source.getConnection(); Statement stmt =

Re: Help PLEASE!!!! How do you create struts template file using frame instead of table

2001-03-29 Thread Cedric Dumoulin
Hello Anh, In the template page, you have to write something like : --- frameset rows="73, *, 73" frame src="%=request.getContextPath()%template:get name="header" /" name="header" frame src="%=request.getContextPath()%template:get name="body" /" name="body" frame