re-Logon after session timeout

2001-09-06 Thread Ralph vd Houdt
Hi All, I developed a struts application and re-used the checkLogon tag from the login example from Ted Husted. It works quite well but when a client loses the session in case of a session timeout and a new request is done the Action is cancelled because the User object isn't in the session

Where to manage user logon status in Struts with EJB

2001-09-06 Thread Jaco van Staden
Title: Where to manage user logon status in Struts with EJB Which is the best place to manage user logon status if I use struts with an EJB tier? I assume the EJB session, since it must be able to work with Swing clients as well. -- Jaco van Staden Cyber Seal Information Systems Development

Is this a bug ??

2001-09-06 Thread Antonio Weber
Hi !! I had the problem that the tags wasn't translated in the html code something like this /tdtdcenter2001-01-01/center /tdtdcenter2009-12-12/center html:hidden property=pk_lookupkey value=72.0/ I added the taglib import. I works, but only in some cases. In some cases not, something like

Mainatinig Select list state

2001-09-06 Thread Vinay Cerejo
HI, I have two select lists, one filled with data and the other empty Lets call the filled list as AllElements and the empty list as UserElements AllElements UserElements -- --- | element1| | | |

RE: Is this a bug ??

2001-09-06 Thread Arnaud Héritier
You should write it like this : html:hidden property=pk_lookupkey value=%=\\+tb.getLinkValue().get(row)%/ and html:hidden property=name value=%=request.getParameter(\Name\)%/ All quotes used in a scriplet in a taglib parameter should be prefix by an \ As you wrote it the parser saw the

Performance Issues

2001-09-06 Thread CC CCC
Dear all I have couple questions which related with Struts i got from the Web. and need someone to help me out ** For the 1st question. i'm just wondering which statement's (1 or 2) performance will be better when it fetchs the result to the JSP? and what's different if i

Re: Is this a bug ??

2001-09-06 Thread Jishan Li\(CN\)
if rtexprvalue is true(rtexprvaluetrue/rtexprvalue), the tag can get run time expression. It means the server parse the expression before the tag. I tried these two: html:text property=%=request.getParameter(\f\)%/ html:text property=%=request.getParameter(f)%/ both work.

Using the iterate tag - part II

2001-09-06 Thread chiji nwankwo
Hi, Thanks Ted for the advice on using the link tag, your advice has been heeded to. Problem for today: logic:iterate id="pages" name="pageList" offset="0" length="5" html:link forward="search" paramName="CONFUSED" paramId="pageNumber" page #: %= pages % /html:link/logic:iterate What I would want

Tomcat 4.0 error

2001-09-06 Thread Olivier Corbun
Hi strutsolics! My Struts application stored in a WAR file works properly with Tomcat 3.2. But if I want to run it on Tomcat 4.0-b7 or on the J2EE RI that uses Tomcat 4.0-b4 I get the following error: JspException: Missing resources attribute org.apache.struts.action.MESSAGE I have

html:img error with Tomcat

2001-09-06 Thread Pellerin, Richard
In my JSP, I use the html:img tag: html:img src=Picture/Titel_Demo.jpg width=600 height=150 border=0/ and each time I display my page, I have this trace in the servlet console: 2001-09-06 09:06:25 - Ctx( /struts-demo ): IOException in: R( /struts-demo +

Re: re-Logon after session timeout

2001-09-06 Thread Erik Hatcher
I'm accomplishing this very thing using Resin's Servlet 2.3 Filter support. The filter determines the user is not logged in, saves the requesting URI in a session attribute, and forwards to the login page. The login action checks for the existence of the session attribute with the saved URI and

The server encountered an unexpected condition which prevented it from fulfilling the request

2001-09-06 Thread Chandana Perera
Hi Ever One I tried to run my first Struts programme on the Weblogic 6, but I am getting the below mentioned error. Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error

More still can't you get these quotes arranged correctly?

2001-09-06 Thread Alex Colic
I appreciate everyone helping me out. I was told that you can't use a bean expression to set the text of a submit button. What about a radio button. Below I am trying to iterate through an object and create a table with a radio button, and the number and name of this object. I want the radio

RE: Concurrency and Custom JSP tags

2001-09-06 Thread Mac Ferguson
Actually, release() is only guaranteed to be called before the handler is GC'ed (JSP1.2 specification p.166), and is intended to release any heavyweight resources the handler may have acquired. Also from page 165 (describing the )[1]this transition is intended to be for releasing long-term data.

bean:define, bean:write

2001-09-06 Thread David Corbin
Why does this jsp fragment generate an exception javax.servlet.jsp.JspException: Cannot find bean pageTitle in scope request --cut-- %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:define id=pageTitle value=foobar scope=request/ HTML HEAD TITLEbean:write name=pageTitle

Re: re-Logon after session timeout

2001-09-06 Thread Ralph vd Houdt
Too bad, I'm using Tomcat 3.2.2 together with JBoss. Keep me in touch with your development it sound good. Greetings Ralph - Original Message - From: Erik Hatcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 06, 2001 3:29 PM Subject: Re: re-Logon after session

newbie question - confused

2001-09-06 Thread Jose Correia
Hi all I'm a bit confused with the Struts example (the one that comes with struts1.0.jar). I'm trying to determine at which point does the .do come in to being. Facts first: 1. index.jsp shows: html:link page=/logon.jspbean:message key=index.logon//html:link/li i.e calls the file logon.jsp

Re: re-Logon after session timeout

2001-09-06 Thread Jon Brisbin
this sounds like you're wanting to use Tomcat's role-based authentication...if you look in the example webapp that comes with the tomcat distro, you can find settings in web.xml that set up a secure area...if you edit tomcat's server.xml file and find the Realm stuff, you can set up an

Re: re-Logon after session timeout

2001-09-06 Thread Ralph vd Houdt
Hi Jon, This is not just what I want. I want to do a login based on 3 fields company/user/password and evaluate then to an EJB. The login should put an object in the session. Greetings Ralph - Original Message - From: Jon Brisbin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

FormFile.destroy() vs DiskFile.destroy() -- bug?

2001-09-06 Thread Mindaugas Idzelis
Struts, It seems to me that there is a problem in either FormFile or DiskFile. In order for me to get the path information about the file stored on disk, I have to cast FormFile to DiskFile and call getFilePath(). It would be convenient if DiskFile.destroy() would actually get rid of the

Re: re-Logon after session timeout

2001-09-06 Thread Gregor Rayman
Ralph vd Houdt [EMAIL PROTECTED] wrote: Hi Jon, This is not just what I want. I want to do a login based on 3 fields company/user/password and evaluate then to an EJB. The login should put an object in the session. Greetings Ralph You can do this with form based login as well. Your

RE: STRUTS and EJB

2001-09-06 Thread Barry Glasco
http://developer.java.sun.com/developer/restricted/patterns/BusinessDelegate .html http://developer.java.sun.com/developer/restricted/patterns/ValueObject.html http://developer.java.sun.com/developer/restricted/patterns/SessionFacade.ht ml EJB and Struts! -Original Message- From:

Re: re-Logon after session timeout

2001-09-06 Thread Ralph vd Houdt
Hi Gregor, This sound OK, Can you point me to documentation on this or give me additional information? Greetings - Original Message - From: Gregor Rayman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 06, 2001 4:43 PM Subject: Re: re-Logon after session timeout

problem with application resources

2001-09-06 Thread peter
Hi Ive got a problem with the ApplicationResources.properties file. Everything works fine with the struts-blank file. However, when I make a copy of the struts-blank.war file, place it in the webapps directory and restart tomcat-3.2.3 I get the following 500 error when I try to load a simple

RE: STRUTS and EJB

2001-09-06 Thread Hai Hoang
the samples codes for these patterns can be found at http://www.myhtg.com/product.html --- Barry Glasco [EMAIL PROTECTED] wrote: http://developer.java.sun.com/developer/restricted/patterns/BusinessDelegate .html http://developer.java.sun.com/developer/restricted/patterns/ValueObject.html

Line of Code Counter?

2001-09-06 Thread Lou Farho
Can anyone point me to a good utility for performing line of code counter for Java and C++? The counter needs to count statements. Thanks! Lou

Collection in a collection iteration

2001-09-06 Thread Lisa Lui
I'm trying to display data in a report-like manner where there is a list of cases and within each case there is a sub report of details. I want to minimize the number of times I have to hit the database to 2. Once to get all the various case info and a second to get all details. My choices

Re: re-Logon after session timeout

2001-09-06 Thread Gregor Rayman
Ralph vd Houdt [EMAIL PROTECTED] wrote: Hi Gregor, This sound OK, Can you point me to documentation on this or give me additional information? It is quite simple. The normal login.jsp looks like this: form method=POST action=j_security_check Username: input type=text name=j_usernamebr

RE: Dynamic Form Beans?

2001-09-06 Thread Tuscano, Stephen
Hi John, Are you able to slove this problem?if so, Can you help me out? Stephen. -Original Message- From: John Townsend [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 8:19 PM To: [EMAIL PROTECTED]; 'Luis Olivares' Subject: RE: Dynamic Form Beans? The one

Re: Adding struts indexed tag capability to the select tag

2001-09-06 Thread dhay
Scott, Indexed capability is already available for the select tag (though, like the other tags, you need to use a nightly build). cheers, Dave Scott Ryan [EMAIL PROTECTED] on 09/05/2001 06:46:20 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David

Newbie to struts and weblogic 6.1

2001-09-06 Thread Hai Hoang
I am using weblogic 6.1 with struts. From the logon page i've a link to a registration form if the user has not already registered. The problem is that weblogic serves me the old page, which is not nearly resemble my registration form. I've make some changes to the form and restarted the

Re: newbie question - confused

2001-09-06 Thread Erik Hatcher
Look at the generated HTML of logon.jsp you'll see that it submits to logon.do. html:form looks up the action mapping to determine which form bean to use and generates the form tag with the appropriate action .do extension automatically. Erik - Original Message - From: Jose

Re: Mainatinig Select list state

2001-09-06 Thread Doug Smith
I have done this. The reason the contents of the select boxes aren't saved when you come back is that all of the options aren't sent to the server, only the selected one is. I use one html:hidden / field for every element of each select box. When the form loads, I populate the select boxes

Iteration-Issue???

2001-09-06 Thread chiji nwankwo
Hi, Could anyone involved in the following thread please point me in the right direction. I am having the exact same problem as the user who sent this message: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14300.html If you were involved in the above mentioned thread, please

Re: bean:define, bean:write

2001-09-06 Thread David Corbin
I thought that bean:define takes care of that - Original Message - From: Keith Bacon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 06, 2001 11:18 AM Subject: Re: bean:define, bean:write Is it because you haven't done a request.putAttribute(pageTitle,

RE: Bug with FileUpload

2001-09-06 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Tom, There was/is a bug that would cause this to happen. I could have sworn it was fixed before, but I'm a little confused as to it's current state, and haven't had time to look at it. You're using 1.0, right? Also, you have to explicitly get rid of the temp file. One way to do this is to

RE: FormFile.destroy() vs DiskFile.destroy() -- bug?

2001-09-06 Thread SCHACHTER,MICHAEL (HP-NewJersey,ex2)
Min, Since FormFile is an interface, you're calling on DiskFile.destroy() regardless. However, DiskFile.destroy() calls on java.io.File.delete(). I've encountered problems in the past with java.io.File.delete() where the file doesn't get deleted. I'll file a bug report on this and get to it

iPlanet Application Server 6.0, SP3 and Struts 1.0

2001-09-06 Thread Matt Raible
To all, I've created a How To document and modified application zip file for running the struts-example application on iPlanet Application Server 6.0, SP3. The good news is that this ported struts-example also works on Tomcat 3.2 and WebLogic 6.0 SP1! Please read if you're interested at

Array in nested bean form class issue?

2001-09-06 Thread Gao, Gang
Title: Array in nested bean form class issue? Hi, I'm trying to use nested class array in my project. The jsp page is like : html:text property=entry[0].customerName size=18/ html:text property=entry[1].telephoneNum size=3 maxlength=3/ and in the Form bean class, I define the class: import

RE: Line of Code Counter?

2001-09-06 Thread Nick Chalko
try grep -c ; *.java -Original Message- From: Lou Farho [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 8:11 AM To: Struts user Subject: Line of Code Counter? Can anyone point me to a good utility for performing line of code counter for Java and C++? The counter needs to

Re: Line of Code Counter?

2001-09-06 Thread John Raley
Off-topic, but I just learned some awk... awk '/;[:blank:]*/ { count++ } /(if|for|while|switch).*\(/ { count++ } END { print count; }' `find . -name \*.java` This should get reasonably close. awk exists for Windows but I don't know what the equivalent of find is. Probably faster to install

Error reading tag-library: PLEASE HELP

2001-09-06 Thread Shelly Dhiman
Hi i'm getting the following error. Using tomcat3.2 Error: 500 Location: /dynamic/home/testJobs.jsp Internal Servlet Error: org.apache.jasper.compiler.CompileException: /usr/local/cmc/fe/content/en_US/dynamic/home/testJobs.jsp(0,0) Unable to open taglibrary /WEB-INF/struts-template.tld :

using the multiple attribute of the bean:parameter tag

2001-09-06 Thread Andre Beskrowni
whenever i include a value for the multiple attribute of the bean:parameter tag, i get a jsp compilation error. if remove the multiple attribute, everything works fine (except that i don't get my array of parameter values). the error i'm getting is the same one that someone else mentioned way

Re: bean:define, bean:write

2001-09-06 Thread Keith Bacon
My guess is that jsp:define creates it if not there but struts bean:define doesn't. --- David Corbin [EMAIL PROTECTED] wrote: I thought that bean:define takes care of that - Original Message - From: Keith Bacon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September

Re: Adding struts indexed tag capability to the select tag

2001-09-06 Thread Scott Ryan
Sorry I guess I phrased my question incorrectly. Here is a more complete description of what I am seeing. I believe the support I actually need is in the Options tag itself. I have a list of options that are presented for each row. When I select an option it comes through on the correct

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

2001-09-06 Thread Esterkin, Alex
Hello, There has emerged a new proprietary MVC framework called JADE and developed and promoted by IBM Consulting National Practice people. I sense it is inferior in comparison to Struts, but I don't have enough information about JADE, and IBM is liked very much at my firm. I need to quickly

html:text fields and values

2001-09-06 Thread Glenn Kidd
Hi, We are using the Struts html tag-libraires for a form. We want to prepolate some values for a couple of the fields. How can we go about this. We tried setting the initial values in the value attribute which works unless you go back in which case that value will override any previous

RE: Line of Code Counter?

2001-09-06 Thread Flying Cloud
http://www.dwheeler.com/sloccount/ This is the home page of ``SLOCCount'', a set of tools for counting physical Source Lines of Code (SLOC) -Sandra [EMAIL PROTECTED]

Re: bean:define, bean:write

2001-09-06 Thread Matt Raible
I don't think there's such a thing as jsp:define is there? I have a similar question - I'd like to use bean:define at the top of my page, but it is not used if one already exists... What I'm trying to do is set a path to all my images that lives on the webserver. I'd like to externalize this

comparing two beans with logic tags

2001-09-06 Thread Paradis, André
Hi, I know i can use logic:equals name=thebean property=id value=constant to compare a bean's property to a constant, but how do i compare two beans property for equality using tags? Thanks Andre Paradis

Struts Security part of Struts 1.1

2001-09-06 Thread Matt Raible
I am getting ready to implement Nic Hobb's role-based Actions at http://husted.com/about/struts/struts-security.htm. I'm wondering if this is going to be incorporated into Struts 1.1? I have plugged-in the validator framework and feel that my app is still using a solid struts release because

Re: bean:define, bean:write

2001-09-06 Thread Matt Raible
Would you mind sharing this? --- Erik Hatcher [EMAIL PROTECTED] wrote: My approach to externalizing image paths was to extend org.apache.struts.taglib.html.ImgTag and use a custom tag to define image URL's using the existing pieces ImgTag provides. Overriding src() is used to look up the

compiling struts 1.0 src - java.lang.NoClassDefFoundError: javax/xml/transform/Source

2001-09-06 Thread Matt Raible
I'm trying to compile the 1.0 version of struts and getting the error below: I have xerces.jar (1.4.0) in my build.properties, file, but it doesn't even seem to be using it for my classpath. Also, the NoClassDefFoundError seems to be in my xalan.jar (2.1.0). My ant version is 1.3 - should I be

Re: bean:define, bean:write

2001-09-06 Thread Erik Hatcher
Matt, My implementation is pretty domain specific though (our image tag requires a parent tag to set up some context), so my actual code is not generalizable, but here's the essence of it (cutting and pasting, and trimming down to the essentials): import org.apache.struts.taglib.html.ImgTag;

html:radio question

2001-09-06 Thread Glenn Kidd
Can you specify a radio button be selected by default. In straight HTML you add a checked. It does not look like the tags support this, unless I am mistaken. Anyone have any ideas on this? Glenn

Re: Examples anyone?

2001-09-06 Thread Bill Clinton
Aaron, I believe the code you have should be accurate, but leave out the usebean directive for task (which isn't necessary and I think is interfering with your iteration id because it has the same id): jsp:useBean id=general scope=application

RE: indexed option does not work with html:checkbox

2001-09-06 Thread Campesato, Oswald
David + Marcelo: thank you both -- I'm now in a position where I must use the struts 'jar' files from several months ago instead of the nightly build (alas!). The problem is fairly straightforward: I'm displaying a dynamic list of checkboxes inside an 'iterate' tag. How do I specify the

still having a problem with MessageResources.properties

2001-09-06 Thread peter
Hi again I'm having a real nightmare still with creating the most basic of struts applications. I always get the same problem: Error: 500 Location: /struts-blank/index.jsp Internal Servlet Error: javax.servlet.ServletException: Missing message for key index.title at

Run Struts in Entry Editon Visual Age for Java 4.0?

2001-09-06 Thread Julia Yang
Does anyone know how to run Run Struts in Entry Editon Visual Age for Java 4.0? Any articles, tricks ? I followed the instruction of Apache Struts and VAJ part 2: Using Struts in VAJ 3.5.3 from IBM Kyle Brown. It gives me exception Any suggestion appreciated Julia

Hows Struts 1.1 looking?

2001-09-06 Thread Francisco Hernandez
Im wondering how Struts 1.1 is looking as far as any estimates on release dates and such.

struts + pop-up windows

2001-09-06 Thread Campesato, Oswald
Folks: I'd like to use Struts for converting an existing servlet to a JSP page with suitable Struts-based tags. Here's an example of the existing code in an HTML file: xx addDialog = window.open(AddUserDialogForm?CMD=INIT,

Re: still having a problem with MessageResources.properties

2001-09-06 Thread Leo Amigood
Hi! I've just started to work with struts and passed all these nightmares to realize how and why. So let's explain step by step. u r getting javax.servlet.ServletException: Missing message for key index.title cause u gotta put line like that index.title=You own description here in file

RE: Examples anyone?

2001-09-06 Thread Aaron O'Hara
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]] Sent: Thursday, September 06, 2001 2:53 PM To: [EMAIL PROTECTED]

RE: struts + pop-up windows

2001-09-06 Thread John Schroeder
Here's one way to do it function popUpWindow() { var url = '%=request.getContextPath()%/myAction.do?'; var win = window.open(url,'MyWindow','width=620,height=200'); popwin.focus(); } -Original Message- From: Campesato, Oswald [mailto:[EMAIL PROTECTED]] Sent:

Possible to use more than 1 ressource message .properties?

2001-09-06 Thread Jean-Francois Brassard
Hello, It is possible to use more than one ressource message file.properties? Thanks in advance Jeff

Stability of Struts

2001-09-06 Thread Angela Saval
Hello, My company is considering using struts in our web application. What has been your overall experience with the infrastructure? Do you find that you have to work around a lot of bugs? Thanks for your input. Angela

Re: Stability of Struts

2001-09-06 Thread Matt Raible
In my opinion, this is a very stable infrastructure. It really depends on your application server to whether there are a lot of workarounds or not. It seems that Struts is very stable, but some appservers are not correct in their implementation of J2EE, and struts makes those very apparent.

Error 500--Internal Server Error

2001-09-06 Thread Chandana Perera
Hi Every One I tried to run my first Struts programme on the Weblogic 6, but I am getting the below mentioned error. Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error

logic:iterate JspException

2001-09-06 Thread TOMMY
Dear All I've got a question and seeking for answers. does anyone know what's wrong in the following code. tommySelectForm- public Collection getUse_list(){ ArrayList aa=new ArrayList();

Q: Named html:form w/o 'type' attribute

2001-09-06 Thread John Yu
If I have a html:form tag looks like this: html:form name=myForm action=/myAction !-- blah... -- /html:form and myAction doesn't have a name, Struts (v1.0) is not happy and wants me to put down also the 'type' attribute inside the html:form. I'm wondering why Struts can't use the 'name'

RE: Error 500--Internal Server Error

2001-09-06 Thread Steven Leija
Hi Chandana, You might want to check the printstacktrace on the Weblogic console. There must be some other information provided to debug the situation. Regards, Steven -Original Message- From: Chandana Perera [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 9:16 PM To:

question about pagination

2001-09-06 Thread
hello I have problem .Please help me. I get some records from database. I wants to list this records in several pages. How can I do this ?I use struts to do this. Please give me an example Thank you . Forest _ Do You Yahoo!?

Re: html:link + javascript. No solution

2001-09-06 Thread Robert Egan
Hello Jishan, Thank-you for response;but manually escaping the code does not help. I looked into the jsp created servlet for the non struts program. a href='javascript=submitForm("IE""outerBorderColor")'>Outer Border/a> This generates a

RE: Stability of Struts

2001-09-06 Thread Steven Leija
Hi Angela, I've been developing struts applications on Weblogic 6.0 sp2 and have run into no errors or instabilities. If you are running below weblogic's 6.0, you might run into some configuration problems. But the install documentation is pretty solid. Regards, Steven -Original

RE: logic:iterate JspException

2001-09-06 Thread Steven Leija
Title: Message Hi Tommy, In your xml configuration, you defined your bean to have the scope of "request", so try adding the scope attribute in the iterate tag. logic:iterate id="ddd" name="tommySelectForm" property="use_list" scope="request"TH A HREF="http://www.kimo.com.tw" bean:write