Re: NullPointerException - findSuccess(Unknown Source)

2004-05-14 Thread Caroline Jen
t; statement to > path="/WEB-INF/signin/Welcome.jsp"/> > Martin > - Original Message - > From: "Caroline Jen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 14, 2004 10:54 AM > Subject: NullPointerException - findSuccess(

Struggled for Days. Please Help With This NullPointerException Problem.

2004-05-19 Thread Caroline Jen
Please help me to find the possible place the problem comes from. I have been struggling with this problem for days. I tried a number of things but just could not get rid of the problem. The Tomcat log does not give enough clue to trace where the problem occurs. My class extends Action. But t

user@struts.apache.org

2004-06-08 Thread Caroline Jen
I try to create a drop down menu as follow: I am able to disply the menu. I want one of the options to be selected by default. Therefore, I want to type SELECTED somewhere. How do I do it? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

RE:

2004-06-09 Thread Caroline Jen
t;label"/> > > > Thanks, > Satish > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 09, 2004 8:00 AM > To: [EMAIL PROTECTED] > Subject: > > > I try to create a drop down menu as follow: > > onch

RE:

2004-06-09 Thread Caroline Jen
Huh? Sorry, I do not understand. --- Ram Venkataswamy <[EMAIL PROTECTED]> wrote: > You can specify value=" Last Post Date" in > html:select - The value to > compare with for marking an option selected. > > > > -Original Message- > From: Caroli

Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread Caroline Jen
I am using "tile". When I try to display a JSP page, I got an error message: java.lang.IllegalArgumentException: Path .thread.Form does not start with a "/" character I have no idea where to find this "/" character. I would appreciate if anybody could provide me with some leads. In my tile

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread Caroline Jen
e: > Do you have the tiles plugin setup properly in your > struts-config.xml file? Or, if you are using a > version > earlier than V1.1, did you change the controller to > a > Tiles controller? > > Regards, > David > > -Original Message- > From: Caroline J

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread Caroline Jen
, Caroline --- David Friedman <[EMAIL PROTECTED]> wrote: > How are you trying to execute the forward > in your action? > > -David > > -Original Message----- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 09, 2004 11:50 PM > To: Struts

html:img Tag Problem

2004-06-09 Thread Caroline Jen
In my JSP, I have a html:img tag: and the above statement gives me the error message: 'According to TLD, tag html:img must be empty, but is not' I am very confused by the error message. I should have an empty html:img tag? Please advise. Thank you. __

RE: Error Message: Tile path=".thread.Form" Does Not Start with a "/" Character

2004-06-09 Thread Caroline Jen
> Also, I'm not a fan of Artimus, so I > have to ask, does your tiles.xml configuration > file define the ".article.Base" definition? > Do all of it's paths start with slashes > and are there any accidental spaces in the > definitions or paths? > > > Regards, &

The html:link Tag

2004-06-12 Thread Caroline Jen
What is the html:link equivalent of How do I pass those parameters (sort, order, and offset)? And please verify the equivalent of the part of the html:link tag: and in my struts-config.xml, I can then Thank you. _

Re: The html:link Tag

2004-06-12 Thread Caroline Jen
e html:link tag". > forward="listthreads"> should be fine if > "listthreads" is set up as a > global ActionForward in your struts-config > > http://jakarta.apache.org/struts/userGuide/struts-html.html#link > > Niall > > - Original M

Cannot Find Bean in Any Scope

2004-06-12 Thread Caroline Jen
I am using the Struts framework. I have a JSP, which imports a JavaBean "ThreadBean". Therefore, in the beginning of my JSP, in addition to <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-logic" prefix="logic"

RE: Cannot Find Bean in Any Scope

2004-06-12 Thread Caroline Jen
-- If you want to specify a new bean instance, use > this: > type="org.MyOrg.MyProj.message.ThreadBean" /> > > property="threadReplyCount"/> > property="threadViewCount"/> > > -- If the bean already exists > type="org.MyOrg.MyProj.message.Threa

Re: Cannot Find Bean in Any Scope

2004-06-13 Thread Caroline Jen
Sorry, I still did not explain my code very well. I am trying to write out the properties of ThreadBean in a "while loop" in my JSP: <% Collection threadRows = ( Collection )request.getAttribute( "ThreadBeans" ); int odd = 0; Iterator iterator = threadRows.iterator(); while( iterator.hasNe

Re: Cannot Find Bean in Any Scope

2004-06-13 Thread Caroline Jen
Chris, thanks for your help. You are right. The error is caused by something else. The error message is misleading. -Caroline --- Christopher Schultz <[EMAIL PROTECTED]> wrote: > Caroline, > > > Sorry, I still did not explain my code very well. > > I've looked at your code, and none of it cou

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Caroline Jen
as its very flexible. ;-) > > Unless you can show argument why using a "scriplet" > is necessary, I believe > most will continue to suggest the above approach as > it's a more efficient > approach. > > Take care, > Chris > > -Original Message- &g

RE: Cannot Find Bean in Any Scope

2004-06-14 Thread Caroline Jen
ry flexible. ;-) > > Unless you can show argument why using a "scriplet" > is necessary, I believe > most will continue to suggest the above approach as > it's a more efficient > approach. > > Take care, > Chris > > -Original Message- >

Error Occurred When Using JSP Expression Inside the Struts Tag

2004-06-15 Thread Caroline Jen
I am using the Struts framework. I have a JSP where a collection of JavaBeans are received in a request scope. code: <%Collection threadRows = ( Collection )request.getAttribute( "ThreadBeans" );%>

The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
I have a "list" of articles to be retrieved from the database and displayed. The first time I display the list, I simply sort the list by posting date and descending order (without providing a form) when I query the database. Thereafter, users are offered opportunities on top of the table of the

RE: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
t; > Then define your action mapping to use this > formbean. When your form posts, > it will assume the default values for sort/order if > they not present in the > request. If they're present in the HttpRequest > object, then the form is > populated with whatever valu

Re: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
> > > Then in my JSP, I can use javascript to alter 2 > hidden fields that > represent > > the sort/order values when a user clicks on an > icon or column header and > > then submit the form again to the action to handle > updating the view based > > on th

Re: The Same Action With and Without a Form

2004-06-16 Thread Caroline Jen
ort = BeanUtils.getProperty( form, "sort"); String order = BeanUtils.getProperty( form, "order"); -Caroline --- Chris Cranford <[EMAIL PROTECTED]> wrote: > Why does one line have getproperty and the other > have getProperty ??? Both > should read getProperty ;-)

Action Mapping in the struts-config.xml When There Is No Form

2004-06-17 Thread Caroline Jen
I often have to call a servlet which extends Action; but, I do not have a form submitted. The action mapping in the struts-config.xml gives me problem when I leave out the 'name' attribute; for example: I really do not have a form for this action. What should I do?

How To Get the 'initial' in the form-property?

2004-06-18 Thread Caroline Jen
In my struts-config.xml, I provided some initial values: How do I get the initial value in my servlet that extends Action? I tried: form.get( "sort" ); form.get( "order" ); and form.getProperty( "sort" ); form.getProperty( "order" ); The compiler com

Please Help Me To Convert My JSP Scripting Elements To Tags

2004-06-20 Thread Caroline Jen
I am converting all the scripting elements in my JSP to tags. I have decided to go one step at the time -- I only want to print out one basic number as a start. My action class passes an object "TotalPosts" in the following way to my JSP: request.setAttribute( "TotalPosts", new Integer( to

Why the 'initial' in the form-bean Does Not Automatically Populate the Form?

2004-06-21 Thread Caroline Jen
The form-bean in my struts-config.xml is specified like this: My servlet extends Action has the following code: DynaActionForm initForm = ( DynaActionForm )form; String sort = ( String )initForm.get( "sort" ); String order = ( String )initForm.get( "order" ); The action mapping

How To Create a Form That Contains Two Drop-Down Menu?

2004-06-22 Thread Caroline Jen
I know how to create a drop-down menu; for example: ArrayList sort = new ArrayList(); sort.add(new LabelValueBean("Last Post Date", "thread_last_post_date")); sort.add(new LabelValueBean("First Post Date", "thread_creation_date")); sort.add(new Label

Converting Java Code in JSP to JSTL

2004-06-25 Thread Caroline Jen
I was told that JSTL can convert most of the Java code in JSP. I still have some problem with initializing variables and if statments; for example, I do not know how to write in JSTL of the following: 1. int i = 0; 2. i++; 3. String prevArticle = null; 4. if ( numberOfPosts - 1 == 1 ) {} 5. if (

A Strange Title Tile Problem

2004-06-25 Thread Caroline Jen
I have been using tiles for a while. All of a sudden, a piece of "title" tile in one of my web pages behaves weird; e.g. all others work fine except this one. It is 2:30 am in the morning. Maybe, I am not sober enough to see the problem: In my application.properties, I have: #-- message pages

Re: Newbie question re. CSS and Struts

2004-06-26 Thread Caroline Jen
I have the similar question and need help. I am using tiles: I want to control the color of links. My links are in the /article/common/navbar.jsp. If I put the

Tag

2004-06-26 Thread Caroline Jen
<%@ taglib uri="/tags/struts-html" prefix="html" %> in the beginning of my JSP. This statement that makes an image clickable: <%if ( previousTopic != 0 ) {%><%}%> gives me an error message: /article/content/viewpostings.jsp(163,101) According to TLD, tag html:img must be empty, but is not' I ha

Never Mind.Re: Tag

2004-06-26 Thread Caroline Jen
Never mind, I have found the problem. Thank you. --- Caroline Jen <[EMAIL PROTECTED]> wrote: > <%@ taglib uri="/tags/struts-html" prefix="html" %> > > in the beginning of my JSP. > > This statement that makes an image clickable: > <%

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Caroline Jen
gs to call static API? > > > > Something like this: > > > > value="StringUtils.abbreviate(${aTopic.subject}, > 30)"/> > > > > Is this possible? > > > > Thanks, > > Eric > > > > On Jun 26, 2004, at 5:48 AM, Pedro Salga

Re: Converting Java Code in JSP to JSTL

2004-06-28 Thread Caroline Jen
I pass an object ThreadBean from an action servlet in a request scope: request.setAttribute( "ThreadBean", threadBean ); In my JSP, there is no problem and everything works well if I use scripting element: <% ThreadBean threadBean = ( ThreadBean )request.getAttribute( "ThreadBean" ); %> I then

Re: Converting Java Code in JSP to JSTL

2004-06-29 Thread Caroline Jen
Thank you for helping me to learn different ways to construct a web link while passing a number of parameters along with it. Those hyperlinks forward a request and parameters to another servlet action. In this servlet action, do I receive those parameters in an usualy way? String sort = request.

JSP Compilation Problems With JSTL Tags Used

2004-07-01 Thread Caroline Jen
My JSP worked well when I used JSP expressions, scriptlets, I tried to use JSTL instead and encountered some compilation problems. I am unable to see my mistakes and need help: Problme #1: [code] int offset = 0; try { } catch ( Exception e ) { // do nothing } [/code] The above co

Re: JSP Compilation Problems With JSTL Tags Used

2004-07-01 Thread Caroline Jen
for the prefix > "c" > > > On Thu, 1 Jul 2004 11:30:48 -0700 (PDT), Caroline > Jen > <[EMAIL PROTECTED]> wrote: > > > > My JSP worked well when I used JSP expressions, > > scriptlets, I tried to use JSTL instead and > > encountered s

What Is Wrong With This Tag?

2004-07-01 Thread Caroline Jen
It seems that I have problems to get JSTL tags right error message: 74: tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${attachBean.attachMimeType.startsWith('image/')}": Encountered "(", expected one of ["}", ".", ">", "gt

Pass a Variable From JSP via JSP To an Action Servlet

2004-07-01 Thread Caroline Jen
I have the value of a variable defined in JSP#1 (JSP#1 is not a form): All the variables, which are defined in JSP#1, are forwarded to JSP#2. JSP#2 is a form. But, the variable 'id' is not used in JSP#2. JSP#2 has a submit button and then, an action servlet takes over the control. All t

The Pager in Provided by the jsptags.com

2004-07-02 Thread Caroline Jen
I am trying to use the paging provide by http://jsptags.com/tags/navigation/pager I got an error: This absolute uri (http://jsptags.com/tags/navigation/pager) cannot be resolved in either web.xml or the jar files deployed with this application' What uri string does the pager expect? What should

Are There Paging Taglib That Accepts JSTL Tags?

2004-07-02 Thread Caroline Jen
I have JSPs written in JSTL tags. I want to use a paging taglib. I downloaded and tried the pager provided by "http://jsptags.com/tags/navigation/pager";, but, it accepts scripting elements (JSP expressions) only. Are there paging taglib that accepts JSTL tags? _

JSTL Has "Paging" Built-In?

2004-07-06 Thread Caroline Jen
I was told that JSTL has "paging" built in. Could someboday who has used this feature provide instructions? Is there a document that illustrate the steps of using it? Paging means: [ previous page | 1 2 3 4 ... | next page ] I have tried one of the paging taglib; but, it does not accept JSTL tags

The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Caroline Jen
There are three .jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory that are not in the C:\jakarta-struts-1.1\lib directory. Those three files are jstl.jar, standard.jar, and struts-el.jar. Do we also copy those three files to the C:\TOMCAT\webapps\AppName\WEB-INF\lib director

Re: The jar files in the C:\jakarta-struts-1.1\contrib\struts-el\lib directory

2004-08-31 Thread Caroline Jen
How do I check the message history for yesterday's message? --- Yves Sy <[EMAIL PROTECTED]> wrote: > Hi, > > There's a long thread about that just yesterday. > Check the messages history. > > -Yves- > > On Tue, 31 Aug 2004 04:36:57 -0700 (PDT), Ca

NoClassDefFoundError: .../commons/beanutils/Converter

2004-08-31 Thread Caroline Jen
What am I missing? I got the following error java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter What should I do? ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush --

Where Do I Download the Artimus Source Code?

2004-09-01 Thread Caroline Jen
I want to download the Artimus example source code in the "Struts in Action". Where (what is the URL) do I find the download? __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail -

To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
How do I specify the action mapping in the struts-config.xml to show a web home page that consists of tiles? The problem is with the action mapping part. My index.jsp in the root directory has these two lines: <%@ taglib uri="/tags/struts-logic" prefix="logic" %> and in my struts-config.xml fi

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
"paramter" attribute right after the "type" attribute. Right now, what I have is: what should I do? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] >

skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread Caroline Jen
When I start my Tomcat 5.0.27, I saw the following message in the console: "SEVERE: skipping validation rules file from '/WEB-INF/validation.xml'. No stream could be opened." What is going on? Something is wrong with the validation.xml? or something is wrong with the validation plug-in that I s

RE: To Show Web Home Page That Consists of Tiles

2004-09-01 Thread Caroline Jen
like "baseStyle". And I do not use the name "baseStyle" in my entire application. What should I do now? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wed

RE: skipping validation rules file from '/WEB-INF/validation.xml'

2004-09-01 Thread Caroline Jen
<[EMAIL PROTECTED]> wrote: > Jen, > > What is the entry in your struts-config.xml for > validation? Is there a > WEB-INF/validation.xml or WEB-INF/validations.xml? > > Regards, > David > > -Original Message- > From: Caroline Jen [mailto:[EMAIL PRO

Tiles in Frameset

2004-09-02 Thread Caroline Jen
How do I display tiles in columns in the browser? I have been using tiles feature of the Struts framework, and the tiles are displayed in the browser in "rows". This is my setup (which works fine): Now, the third row has two columns; the column on the left is a pane with a number of links.

Image Does Not Get Picked Up

2004-09-02 Thread Caroline Jen
I am using the Struts framework. I have an image and this is my image tag: The image does not get picked up in the browser. Therefore, only the text "information" is shown. HSInfo is the name of my application and it is right under the $TOMCAT/webapps directory. Because the image does not

Re: Image Does Not Get Picked Up

2004-09-02 Thread Caroline Jen
d 'img' to 'html:img' and changed 'src' to 'page') to my source code. does not work. 4. I am using the Windows XP. 5. I tried both .jpeg and .jpg does not work. I do not know what to do now. Please help more. --- Wendy Smoak <[EMAIL PROTECT

Re: Image Does Not Get Picked Up

2004-09-02 Thread Caroline Jen
I have tried .jpg as the extension. It does not work. I am using the Windows XP. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > Caroline Jen wrote: > > >Thanks for your reply. > > > >I followed your advices: > > > >1. Try just: > >frame/common/

Tiles in Rows and Columns

2004-09-02 Thread Caroline Jen
I saw your reply on the [EMAIL PROTECTED] forum. I have three rows. The second rows has two columns. I am still very confused. My code displays every single piece of all tiles I have; but, my code does not display columns in the second row. Here is the Frame.jsp which defines rows and columns:

Re: Image Does Not Get Picked Up (solved)

2004-09-02 Thread Caroline Jen
section from that output > that shows where your images are in the WAR > hierarchy. Show the image in > question, please. > > Thanks, > Erik > > > Caroline Jen wrote: > > >I have tried .jpg as the extension. It does not > work. > > > >I am using

RE: Tiles in Rows and Columns

2004-09-02 Thread Caroline Jen
What is your suggestion? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 02, 2004 11:04 AM > > To: [EMAIL PROTECTED] > > Subject: Tiles in Rows

RE: Tiles in Rows and Columns

2004-09-02 Thread Caroline Jen
; HSIN-CI ALL MEMBERS PAGE Sign in Register --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 02, 2004 11:50 AM > &g

RE: Tiles in Rows and Columns (Problem Solved)

2004-09-03 Thread Caroline Jen
Thanks, Jim, for your support. I made a stupid mistake. The "View Source" helps in diagnosing problems. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, Se

Action Mapping From a JSP to Another JSP

2004-09-07 Thread Caroline Jen
I have two JSPs: JSP 1 and JSP 2 JSP 1 has a hyperlink (register). Once users click on the 'register' hyperlink, the users are suppose to have JSP 2 displayed in the browser. That is to say, there is no action to be performed from JSP 1 to JSP 2. How do I specify the action mapping in the strut

RE: Action Mapping From a JSP to Another JSP

2004-09-07 Thread Caroline Jen
s/actions/Forward > > Action.html > > I did say that :) The fingers on the other > hand.. :) > > > > > > > On Tue, 7 Sep 2004 12:49:49 -0700, Jim Barrows > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > -Original Message- &

RE: Action Mapping From a JSP to Another JSP (Now, the Hyperlink Is Not Working)

2004-09-07 Thread Caroline Jen
: [ServletException in:/frame/content/home.jsp] Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named /Register' What is wrong with my code? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message----- > > From

RE: Action Mapping From a JSP to Another JSP (Now, the Hyperlink Is Not Working)

2004-09-07 Thread Caroline Jen
wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 07, 2004 2:25 PM > > To: Struts Users Mailing List > > Subject: RE: Action Mapping From a JSP to Another > JSP (Now, the > > Hyperlink Is No

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Caroline Jen
Thanks for your reply and help. if I have Register In my struts.config.xml file, I should have action mapping like this: What if I do a global forward: Register what kind of mapping should I specify in the struts-config.xml file? --- Caroline Jen <[EMAIL PROTECTED]> wrote: &g

RE: Action Mapping From a JSP to Another JSP (How to Do Global Forward)

2004-09-08 Thread Caroline Jen
Thanks a lot for being around and helping us. -CJen --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 10:34 AM > > To: Struts Users Mailing

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
of extension of the content.jsp file. The file is in the C:\jakarta-tomcat-5.0.27\webapps\DHSInfo\frame\content directory. Why the path is wrong? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTEC

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
. None of my code appears in the "View Source". --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 11:54 AM > > To: Struts Users Maili

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
I do not fully understand. Do you want me to actually code instead of Manage the Content in my links.jsp file? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesda

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
The wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 1:09 PM > > To: Struts Users Mailing List > > Subject: RE: Action Mapping From a JSP to Another > JSP (In Trouble >

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
sage- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, September 08, 2004 1:18 PM > > To: Struts Users Mailing List > > Subject: RE: Action Mapping From a JSP to Another > JSP (In Trouble > > Again!!!) > > > > > > The >

RE: Action Mapping From a JSP to Another JSP (In Trouble Again!!!)

2004-09-08 Thread Caroline Jen
Jim, Sorry for bothering so much. My code, mapping, path, ., etc. are correct. Problem is with the Tomcat server. CJen --- Caroline Jen <[EMAIL PROTECTED]> wrote: > OKay, I see what you mean now. I am a kind of dumb. > > Before I clicked on the link, it shows:

Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

2004-09-09 Thread Caroline Jen
I got this error message: 'Cannot find bean org.apache.struts.taglib.html.BEAN in any scope' I have the struts-bean.tld in the AppName/WEB-INF/lib directory. And I have /tags/struts-bean /WEB-INF/lib/struts-bean.tld in the AppName/WEB-INF/web.xml file (in the correct locatio

RE: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

2004-09-09 Thread Caroline Jen
know why I got 'cannot find bean in any scope'. My messageForm.jsp can be found in the attachment. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 0

Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Hi, it is me again. I still have problem with displaying my JSP. This time, the error message is: '[ServletException in:/frame/content/messageForm.jsp] Cannot retrieve definition for form bean null' 1. I click on this link: Send Message 2. the action mapping in struts-config.xml is: 3

[HELP]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Hi, it is me again. I still have problem with displaying my JSP. This time, the error message is: '[ServletException in:/frame/content/messageForm.jsp] Cannot retrieve definition for form bean null' 1. I click on this link: Send Message 2. the action mapping in struts-config.xml is: 3

How To Validate Any Three out of the Five Text Fields Are Required?

2004-09-10 Thread Caroline Jen
I have used the validation.xml to validate some individual properties and been quite happy with the feature. Now, I have a form with five text fields. If any three out of those five fields are filled out, it passes the submit validation check. Is there any way to set 'required' for this kind of

RE: [HELP]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Yes, I copied and pasted the code. I did not type those code while composing my request for help message on the struts-user forum. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Se

RE: [CANNOT SEE THE PROBLEM!!]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
ed from my code): 5. I have not yet prepared the SendMessage.java in the AppRoot/org/dhsinfo/message folder yet. What could be the cause of the problem? --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Car

RE: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Hi, I have found the mistake. The mistake is that is not a struts tag equivalent to HTML tag. --- Caroline Jen <[EMAIL PROTECTED]> wrote: > I experimented a little bit: > > 1. I changed all struts tags to html tags in my > messageForm.jsp and I also excluded the opening &

RE: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
I use the HTML tag to make it work. If I use , I get 'cannot retrieve definition for form bean null' --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Friday, Se

Re: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
rrectly. > > Also, I'm assuming you are using a dyna form, and > that if you aren't you > have a properly setup form bean class. > > > Matt > > > > Caroline Jen wrote: > > > I use the HTML tag to make it work

RE: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Yeah, I think that there is another issue. I have added the name of the bean in the action mapping, the still gives problems. This one works: This one does not work: Okay, the action mapping is like: and the

Tile Pieces Are Not Aligned

2004-09-10 Thread Caroline Jen
I am using the tiles feature. So far so good, all pieces are displayed. I have four pieces of tiles: topbar (always the same in every page), sidebar (always the same bunch of links in every page), lowbar (alsyas the same in every page), and the 'content' tile (which varies from page to page). Th

Re: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
Make sure that the page is being fully rendered, and > not generating errors. > > > > Try doing the textarea as: > cols="62" /> > > > Mat > > > > Caroline Jen wrote: > > > Yeah, I think that there is another issue. > > &g

RE: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
The --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 10, 2004 2:51 PM > > To: Struts Users Mailing List > > Subject: RE: [SOLVED]Canno

RE: Tile Pieces Are Not Aligned

2004-09-10 Thread Caroline Jen
at the top of the 'content'tile. --- Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 10, 2004 3:04 PM > > To: [EMAIL PROTECTED] > > Subject:

RE: [SOLVED]Cannot retrieve definition for form bean null

2004-09-10 Thread Caroline Jen
inal Message- > > From: Caroline Jen [mailto:[EMAIL PROTECTED] > > Sent: Friday, September 10, 2004 3:09 PM > > To: Struts Users Mailing List > > Subject: RE: [SOLVED]Cannot retrieve definition > for form bean null > > > > > > The > > > >

BeanUtils Class Cannot Be Found!

2004-09-13 Thread Caroline Jen
I have the commons-beanutils.jar file in my AppName\WEB-INF\lib directory. And I have this statement: import org.apache.commons.beanutils.BeanUtils; in my .java class. Why do I get the error message that the BeanUtils class cannot be found? ___ Do

Re: BeanUtils Class Cannot Be Found!

2004-09-14 Thread Caroline Jen
directory. --- Andrew Hill <[EMAIL PROTECTED]> wrote: > The error is run-time or compile-time? > > > Caroline Jen wrote: > > > I have the commons-beanutils.jar file in my > > AppName\WEB-INF\lib directory. And I have this > > statement: > > >

The Tag and Drop Down Menu

2004-09-14 Thread Caroline Jen
To make it simple, there is a JavaBean. This JavaBean has two properties: label and value. Because I have a number of label and value pairs, I have a Collection of this JavaBean(s). To create a drop down menu, I do the following: How do I use the tag to do the same thing?

Re: BeanUtils Class Cannot Be Found!

2004-09-14 Thread Caroline Jen
xecuting, but doesn't > automatically put it in > your classpath. > > > Caroline Jen wrote: > > >The error occurred at the compilation time: > > > >SendMessage.java:17: > >package org.apache.commons.beanutils does not > exist. > > >

Validation and Tiles

2004-09-15 Thread Caroline Jen
I am using tiles; a bar on the top, a pane on the left hand side, and a bar at the bottom of all web pages. I am also using the Struts validation to validate the form submitted. When users do not fill out forms as required, we have a "page" shown in the browser that shows the errors for all inval

How To Handle Mis-Typing of URL By Users

2004-09-15 Thread Caroline Jen
I have many links in my web site. And, for example; the name of my web site is XYZCompany. and we type http://localhost:8080/XYZCompany to get to view the web site. For example, there is a link 'directory' to get to the web page that shows the directory of the company. And users can type http://

Re: How To Handle Mis-Typing of URL By Users

2004-09-16 Thread Caroline Jen
Hi, I prepared the error404.jsp (simply typed in a warning sentence) and placed the file in the AppName/WEB-INF/web.xml file this way: index.jsp 404 /error404.jsp /tags/struts-bean /WEB-INF/lib/struts-bean.tld I tested mis-typing. But, my sentence;

No Way to Put the init() Method Inside the ActionForward Execute( ... ) Method

2004-09-17 Thread Caroline Jen
We cannot put a method inside another method. When using the Struts, we start with: public final class MyClass extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response )

RE: How To Handle Mis-Typing of URL By Users

2004-09-19 Thread Caroline Jen
ww.yoursite.com/myapp/someFraction.do, this > struts-config.xml > mapping would catch it and other Struts URL > mistypings: > >path="/someFraction" > unknown="true" > forward="/error404.jsp" /> > > And yes, I have used

Hate Myself for Not Getting Drop-Down Menu Right

2004-09-20 Thread Caroline Jen
There is no problem with the database operation. Data are retrieved and can be displayed using the tag. Now, it is the drop-down menu. I have coded some drop-down menu before. This time, I have a collection of JavaBeans instead of a collection of strings. And, I am in trouble again. I passed

RE: Hate Myself for Not Getting Drop-Down Menu Right

2004-09-20 Thread Caroline Jen
- Amin Lalji <[EMAIL PROTECTED]> wrote: > Try removing the bean:define > > And setting your line: > > labelProperty="name"/> > > to: > > labelProperty="name"/> > > HTH, > Amin > > -Original Message- > From:

  1   2   3   >