Re: Tile Problem

2004-03-25 Thread Caroline Jen
}/ I only use the EL tags, so I just use bean as the tag prefix eg %@ taglib uri=/WEB-INF/jsp/tags/struts-bean-el.tld prefix=bean % Caroline Jen wrote: I tried both of your suggestions. For example, I have [code] . BODY c:set var=titleKeytiles:getAsString name=title

RE: Tile Problem

2004-03-25 Thread Caroline Jen
: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:52 PM To: Struts Users Mailing List Subject: Re: Tile Problem I followed your suggestion. Now, when I ran my application, I got article.Main.title???en_US.??? displayed in the browser. Still, cannot pick up

Tile Problem

2004-03-24 Thread Caroline Jen
In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY . [/CODE] In my tiles-def.xml, I have: [CODE] definition name=.article.Menu

Re: Tile Problem

2004-03-24 Thread Caroline Jen
//c:setbean:message key=${titleKey}/ Caroline Jen wrote: In general, the tile works fine for me except the title piece. [CODE] . BODY tiles:getAsString name=title/ tiles:get name=header/ tiles:get name=message/ tiles:get name=content/ tiles:get name=navbar/ /BODY

Retrieve a Variable From the DynaActionForm

2004-03-23 Thread Caroline Jen
In my Struts application, postForm is of the DynaActionForm type: DynaActionForm postForm = ( DynaActionForm )form; Later on, I want to save one of the fields receiver, which is a String, in the request context. Which is the following is the correct syntax? request.setAttribute( Receiver,

Which Directory Does the Configuration File Go?

2004-03-05 Thread Caroline Jen
I have code like: private static final String OPTION_FILE_NAME = mvnplugin_mvnforum_MVNForumConfig; static { ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME); MVNFORUM_HOME = res.getString(MVNFORUM_HOME).trim(); WEBMASTER_EMAIL =

Where Do I Put This properties File (internationalization)

2004-03-04 Thread Caroline Jen
I am using Struts and internationalization. I have code like: private static final String OPTION_FILE_NAME = mvnplugin_mvnforum_MVNForumConfig; static { ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME); } And mvnplugin_mvnforum_MVNForumConfig is a properties

Re: Looking for junior Java/Struts developers

2004-02-03 Thread Caroline Jen
I would like to give a try. I live in Manassas, VA. Please find my resume in the Word format in the attachment. Caroline Jen Tel: 703-369-3257 --- Yibing Li [EMAIL PROTECTED] wrote: Folks, We are actively looking for java/struts/jboss developers here at GNX (www.gnx.com). If you have

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-09 Thread Caroline Jen
; } } ThreadHandler th = new ThreadHandler(); BeanUtils.copyProperties(th, postForm); th.insertThread(); hth, robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 11:48 AM To: Struts Users Mailing List Subject: RE: All

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Caroline Jen
= bean.getSender(); // insert code here } which from a design perspective, I'm not sure why you would want to do it this way. hth, robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 10:27 PM

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Caroline Jen
Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 8:48 AM To: Struts Users Mailing List Subject: RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm) Thank you for your comment, which

All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Caroline Jen
Hi, my program compiled OKay. When I ran the application, somehow, the properties of my DynaValidatorForm are not passed from the action class to the business tier and then to the data access tier. Please help me taking a look at what went wrong. It looks that the validation worked fine:

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Caroline Jen
with DynaForms and have no problems. Usually when I do, I find that my data member names don't correspond. robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 1:42 PM To: [EMAIL PROTECTED] Subject: All The Bean Properties

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Caroline Jen
() all the time with DynaForms and have no problems. Usually when I do, I find that my data member names don't correspond. robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 1:42 PM To: [EMAIL PROTECTED] Subject: All

Problem With Passing Properties of DynaValidatorForm to the Business Tier

2004-01-06 Thread Caroline Jen
Hi, my program compiled OKay. When I ran the application, somehow, the properties of my DynaValidatorForm are not passed from the action class to the business tier and then to the data access tier. Please help me taking a look at what went wrong. It looks that the validation worked fine:

RE: Please Help - ClassCastException

2004-01-04 Thread Caroline Jen
variable has no way to know properties are associated with it. So yes, once you cast it to PostForm calls to BeanUtils.copyProperties() can and will work properly. Hope this helps, -Joe -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Sunday, January

RE: Please Help - ClassCastException

2004-01-04 Thread Caroline Jen
: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Sunday, January 04, 2004 2:46 AM To: Struts Users Mailing List Subject: RE: Please Help - ClassCastException I am still confused... I have a jsp that provides text fields for user to fill out information. All the information is passed

Please Help - ClassCastException

2004-01-03 Thread Caroline Jen
The statement shown below encountered a ClassCastException: PostForm postForm = ( PostForm )form; I cannot figure out the reason. Please help. Allow me to show more code of the class where the exception occurred: ... import org.apache.struts.action.Action; import

Re: Please Help - ClassCastException

2004-01-03 Thread Caroline Jen
. Pedro Salgado On 04/01/2004 03:22, Caroline Jen [EMAIL PROTECTED] wrote: The statement shown below encountered a ClassCastException: PostForm postForm = ( PostForm )form; I cannot figure out the reason. Please help. Allow me to show more code of the class where

RE: Please Help - ClassCastException

2004-01-03 Thread Caroline Jen
-Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 11:04 PM To: Struts Users Mailing List Subject: Re: Please Help - ClassCastException Thank you for trying to help. I have added import org.apache.artimus.message.PostForm; to my action class. I

Bean As A Parameter In A Method - Compilation Error

2003-12-31 Thread Caroline Jen
I followed the MVC design. I give the data access activity (insertThread) to the ThreadHandler class. And a bean is passed as a parameter of the insertThread method. However, I got compilation error saying that insertThread(java.lang.String, java.lang.String, ... , java.sql.Timastamp, int,

How Do I Handle Two Action Forms

2003-12-24 Thread Caroline Jen
I am stuck and need your knowledge and experience. When the button is my JSP is clicked, there are two action forms involved, threadForm and postForm. The threadForm is populated by hidden fields and text fields that are passed from the JSP. All the properties of the threadForm are to be

Validation

2003-12-23 Thread Caroline Jen
One simple question - if my form bean is of the DynaValidatorForm type in the struts-config.xml and each propery of the form is specified in the validation.xml, do I have to call the validate method in the form bean? E.g. Do I still have to do the following in my form bean that extends the

Form and Pass the Form to the Business Tier

2003-12-23 Thread Caroline Jen
My JSP provides several text fields for visitors to fill out. And my form bean stores those information; for example: public String getThreadTopic() { return threadTopic; } public void setThreadTopic(String threadTopic) { this.threadTopic = threadTopic; }

Re: Form and Pass the Form to the Business Tier

2003-12-23 Thread Caroline Jen
Thank you for your response. According to my understanding of your advice, if I want to pass a hidden field from JSP to a form bean, I must have name=myFormName in the JSP's html:hidden tag? Please confirm. Another additional property that is to be assigned a value in my form bean is now

Is Hidden Field Passed As a String?

2003-12-23 Thread Caroline Jen
I am passing a hidden field from my JSP to my form bean: html:hidden name=postForm property=parent value=0/ Is the property parent considered a String in the form bean? Do I have to use BeanUtils.copyProperties( postDTO, postForm ); to convert that property to a primitive type int?

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Caroline Jen
; prefix=c % and then your c:x .../ actions will work. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 9:45 PM To: Struts Users Mailing List Subject: RE: How To Output the Value of a String That Is Passed From Another JSP

Re: Please Help With This Error Message

2003-12-17 Thread Caroline Jen
. The only idea I have is to check double-quotes correctly. Fred -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: mercredi 17 décembre 2003 07:41 To: [EMAIL PROTECTED] Subject: Please Help With This Error Message Please help me to figure out this error

Error When Trying to Pass A String From One JSP To Another JSP

2003-12-17 Thread Caroline Jen
Please help me. I have tried to do it for days. I just could not get it right. I got this error message: [ServletException in:/article/content/postForm.jsp] Cannot find bean cr in scope session' In my view.jsp, I put a String in a session object: html:form action=/list/Message c:set

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
in the query string and Struts will auto-populate the form in JSP#2. 3. Have the action that processes JSP#1 access and populate the form used in JSP#2 with the property then forward to JSP#2. robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
do you save the form cr in session scope? Does your action use 'scope=session' or are you doing a 'request.getSession().setAttribute(cr,cr);' in the first action? Regards, David -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
be accessed. If it can, then do you have all of your tag library directives in your pages? robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:40 PM To: Struts Users Mailing List Subject: RE: How To Output the Value

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Caroline Jen
creator = articleForm.getCreator(); request.getSession().setAttribute(creator, creator); return mapping.findForward(success); In JSP#2 you could do something like this: c:out value=${creator}/ robert -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent

Hidden Field

2003-12-16 Thread Caroline Jen
I tried to create a variable, assign a value to that variable, and pass the variable as a hidden field. What I did was: html:hidden property=parent value=0 Why do I get this error message in the browser? 'According to TLD, tag html:hidden must be empty, but is not'

How To Output the Value Of a Hidden Field?

2003-12-16 Thread Caroline Jen
My JSP #2 receives a hidden field passed from JSP #1: html:hidden property=creator/ In the JSP #2, I have a text field: html:text property=creator size=82 maxlength=25 tabindex=1/ and I want the value of the hidden field to be the text in the text field of the JSP #2. Please advise how to do

Please Help With This Error Message

2003-12-16 Thread Caroline Jen
Please help me to figure out this error message that I got in the browser: equal symbol expected. The error complains about this statement in my JSP: bean:define id=author name=creator scope=session type=java.lang.String/ and the above statement is intended to retrieve the string creator from a

Form and Session

2003-12-12 Thread Caroline Jen
The statement below in my JSP can write out the value of the creator property in the articleForm: bean:write name=articleForm property=creator/ I want to pass the value of the creator in a session object. What should I do in my JSP? % String creator = (String)articleForm.getCreator;

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
, Richard -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction I pass two hidden fields: username and keyName

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:56 PM To: Struts Users Mailing List Subject: RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction I pass two hidden fields: username and keyName at the same time

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
, initialize the username variable to something ie. XX. and re-run your app. This will show if your setUsername is ever called. -Richard --- Caroline Jen [EMAIL PROTECTED] wrote: I do not fully understand what you say about null or null. Anyway, I did try to write out values

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-09 Thread Caroline Jen
Yee [EMAIL PROTECTED] wrote: Caroline, As a sanity check, in your bean, initialize the username variable to something ie. XX. and re-run your app. This will show if your setUsername is ever called. -Richard --- Caroline Jen [EMAIL PROTECTED] wrote: I do not fully understand what you

Re: HELP: about to get datasource of struts and pass to logic beans...

2003-12-08 Thread Caroline Jen
There are lots of classes involved. I will give you an example: 1. my LogonAction calls EditorService.java (business delegate) 2. EditorService.java calls MySQLEditorDAO.java (data access object implements EditorDAO.java, which is a data access interface) 3. the MySQLEditorDAO.java returns

Re: Please Help! Unable to Pass A Hidden Field To scaffold.ProcessAction

2003-12-08 Thread Caroline Jen
--- Caroline Jen [EMAIL PROTECTED] wrote: I want to pass two hidden fields; username and keyName from a JSP via a SUBMIT button: req:isUserInRole role=editor html:form action=/find/Category % String username = request.getRemoteUser();% html:hidden property=keyName value

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Caroline Jen
that request.getRemoteUser() in your JSP is returning null. Regards, Richard -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:32 PM To: Struts Users Mailing List Subject: Re: Please Help! Unable to Pass A Hidden Field To scaffold.ProcessAction I

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Caroline Jen
authentication or are you authenticating the user yourself? If you are doing it yourself (ie. through a db lookup) then the server doesn't know about the user being authenticated and will return null. Regards, Richard -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED

Each Time the Server Restarts, the Browser Does Not Display the Welcome Page.

2003-12-08 Thread Caroline Jen
While the server is running, I am able to be redirected to the welcome page after I click on any of the LOGOUT buttons in my application. And while I am at the welcome page, I can see http://localhost:8080/NameOfMyApplication/do/Main in the address bar. But, if I shut down the server and restart

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Caroline Jen
: Caroline, Are you having problems with the username or the keyName hidden variable? If it is the username, then I'd suspect that request.getRemoteUser() in your JSP is returning null. Regards, Richard -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent

Pass A String From Servlet And Write Out Its Value in JSP

2003-12-07 Thread Caroline Jen
My servlet has a String called 'category'. I want to pass the String to a JSP. Therefore, I have the code shown below in the servlet: session.setAttribute( c, category ); OR request.setAttribute( c, category ); And, I do the following in my JSP: % String keyValue =

Please Help! Unable to Pass A Hidden Field To scaffold.ProcessAction

2003-12-07 Thread Caroline Jen
I want to pass two hidden fields; username and keyName from a JSP via a SUBMIT button: req:isUserInRole role=editor html:form action=/find/Category % String username = request.getRemoteUser();% html:hidden property=keyName value=journal_category/ html:hidden property=username value=%=username%/

Re: Please Help! Unable to Pass A Hidden Field To scaffold.ProcessAction

2003-12-07 Thread Caroline Jen
My code was shown in my original message. I used two html:hidden ... tags to pass two hidden fields, one is successfully passed while the other shows null. By the way, I do not use 'request' to retrieve the value of the hidden field because my Java class is a scaffold.ProcessAction type. I

Re: Very Troubled in Finding Ways to Pass a Variable to a Class

2003-12-06 Thread Caroline Jen
=hiddenField value=%=request.getRemoteUser();%/ Good luck. - Original Message - From: Caroline Jen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 05, 2003 8:17 PM Subject: Very Troubled in Finding Ways to Pass a Variable to a Class I have a class

RE: Very Troubled in Finding Ways to Pass a Variable to a Class

2003-12-06 Thread Caroline Jen
can't you utilize it from one of these places that you do have access to these things? What exactly is stopping you here? Once you tell us, then you will have illustrated the problem. -J -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Saturday, December

Mail Messages Using JavaMail in Struts

2003-12-06 Thread Caroline Jen
Has a Struts application been built to handle send/view personal mail messages using JavaMail? If the answer is yes, please provide information how to contact the developer of the application. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing.

Very Troubled in Finding Ways to Pass a Variable to a Class

2003-12-05 Thread Caroline Jen
I have a class FindEditorData.java. I want to pass a vairable 'username' to this class for some processing. This class is invoked from a JSP: html:form action=/find/Category html:submitView Articles/html:submit and the value of the 'username' is obtained this way: String username =

Please Give Me A Clue - ClassCast Exception

2003-12-04 Thread Caroline Jen
My application got a ClassCastException at scaffold, ProcessAction.executeLogic. I have no idea about how and where to detect the problem. I would appreciate if someone could provide a clue. 2003-12-04 23:08:38 action: *** ACTION EXCEPTION: java.lang.ClassCastException at

Drop-Down List - Cannot Retrieve Definition From Form Bean Null

2003-12-01 Thread Caroline Jen
My drop-down list got an error message: org.apache.jasper.JasperException: Cannot retrieve definition for form bean null I have tried to display the drop-down list in two ways: First: html:select size=1 property=editor multiple=false html:options collection=editors property=name

How Do I Create This Drop-Down List in Struts?

2003-11-29 Thread Caroline Jen
My ArrayList is a collection of bean object. The ArrayList is created this way: public Collection findEditors( String userrole, String category ) { .. EditorBean editorBean = null; ArrayList editors = new ArrayList(); // database access code while( rs.next() ) {

re: Getting ArrayList of objects from my form bean into my drop down list - solution

2003-11-28 Thread Caroline Jen
What a good timing to see this post. I was about to do the same thing in the next day or two. I have an ArrayList of JavaBean objects created from accessing the database: while(rs.next()) { editorBean=new EditorBean(rs.getString(user_name)); editors.add(editorBean); } return editors;

How To Display the Information That Is Wrapped In a Session Object

2003-11-28 Thread Caroline Jen
1. I my action class, I reference a bean EditorBean editor = EditorBean.findEditorData( username ); 2. this bean accesses the data access logic and the bean gets populated by information fetched from the database (see the code below) 3. In the action class, I then wrap editor in a session

Off Topic, Problem With Passing Business Bean in Between Classes As Part of My Struts Application

2003-11-27 Thread Caroline Jen
It is not a Struts problem. But, it is the problem I encounter in my Struts application. Please help. I am NOT showing all my code. For example, I skip the DAO interface, and the class that returns a connection object from the connection pool. Nonetheless, those classes are irrelevant to my

FAQ (Passing Variables Between Actions); But, Stuck and Need Help

2003-11-06 Thread Caroline Jen
Passing variables from one action to another is a frequently asked question. The answer is to use either hidden fields or a session object. The story starts with searching the database. My application offers options to search the database by author, title of the article, article ID, or .

Re: FAQ (Passing Variables Between Actions); But, Stuck and Need Help

2003-11-06 Thread Caroline Jen
: On 11/06/2003 08:26 AM Caroline Jen wrote: Passing variables from one action to another is a frequently asked question. The answer is to use either hidden fields or a session object. [snip...] Now, the application has another user case - editors. An editor only retrieve

Why the Action Mapping Cannot Be Retrieved?

2003-11-05 Thread Caroline Jen
I got this message in the browser: [ServletException in:/article/content/menu.jsp] Cannot retrieve mapping for action /do/editor/Category' The menu.jsp is a tile in my application. This is my tile menu.jsp: req:isUserInRole role=editor html:form action=/do/editor/Category TR TD class=option

RE: Handling Session Timeout

2003-11-05 Thread Caroline Jen
People have suggested servlet filter is a good choice to check session time-out that if I want all servlets and JSPs remain intact. I do not have any idea how it works in Struts. First of all, I think this servlet filter has to be declared in the web.xml. I have many actions in the struts

Session Times Out

2003-11-02 Thread Caroline Jen
I check if session expires for each action in the application. If the session times out, I forward the user to index.jsp so that the user can log on again. How do I inform the user with a message that he/she is at the welcome page because the session has expired?

Re: findByProperty() in the scaffold.sql.AccessBase - Need One Additional Parameter to the Pair of Property/Value

2003-10-31 Thread Caroline Jen
Please help. Need your clever ideas. Thank you. --- Caroline Jen [EMAIL PROTECTED] wrote: I am using the findByProperty method in the org.apache.commons.scaffold.sql.AccessBase. The findByProperty method takes one pair of property/value as it parameters. As such, visitors of the web site

Buttons in Struts

2003-10-31 Thread Caroline Jen
We have html:submit for the submit buttion in struts. I am trying to add some additional features to the submit button: BUTTON TYPE=submit NAME=submit VALUE=submit STYLE=font: 10pt Arial Black; background:Teal width:75px; height:25pxRead/Send Mails/BUTTON I wonder if there is something like it

How To Submit A Propery/Value Pair That Is Not Selected/Filled-Out By Visitors of the Website?

2003-10-30 Thread Caroline Jen
In the welcome page, all visitors of the web site can choose to view any article that is available in the database. But, visitors will not be able to delete or update any of those articles (DELETE, UPDATE, etc. buttons are not provided). This part of my struts application works well. I have a

findByProperty() in the scaffold.sql.AccessBase - Need One Additional Parameter to the Pair of Property/Value

2003-10-30 Thread Caroline Jen
I am using the findByProperty method in the org.apache.commons.scaffold.sql.AccessBase. The findByProperty method takes one pair of property/value as it parameters. As such, visitors of the web site can query all articles in the database by providing 'author' as the property and supply the name

Modifying the ParameterAction Class in the org.apache.struts.scaffold

2003-10-30 Thread Caroline Jen
I am trying to modify the behavior of the ParameterAction.java in the org.apache.struts.scaffold to tailor it to my specific need. I put the struts.jar and struts-scaffold.jar in my classpath while compiling the sub-class. Nonetheless, I got cannot resolve symbol symbol: class

Hidden Field

2003-10-30 Thread Caroline Jen
html:hidden property=dispatch value=author/ works well because author is expected literally as the value of a property called dispatch. I also want to pass String username = request.getRemoteUser(); as the value of a property called keyValue. But, html:hidden property=keyValue value=username/

isUerInRole and request.tld

2003-10-29 Thread Caroline Jen
I have checked the syntax of the isUserInRole in the request.tld, which is: req:isUserInRole role=administrator %-- do something --% /req:isUserInRole Is it possible to specify more than one role? What is the syntax of specifying that? My application has many roles. In some cases, both

Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
Hi, I have the following code in the navbarMenu.jsp: html:link forward=exitLOGOUT/html:link and in the struts-config.xml, I have: forward name=exit path=/do/Logoff/ and action path=/Logoff type=org.NameOfOrganization.signoff.LogoffAction forward name=success

Re: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
the LOGOFF button again and then the welcome page is displayed. What should I do to go back to the welcome page in one step? --- Ruth, Brice [EMAIL PROTECTED] wrote: Is your Menu actionforward the welcome screen you want to get to? And does your Action return an ActionForward to this? Caroline

RE: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: 28 October 2003 17:05 To: Struts Users Mailing List Subject: Re: Forward Cannot Be Achieved In One Step The do/Menu does display my welcome page. The LOGOUT button and forward does eventually lead the visitor to the welcome page

RE: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
plus a LOGON buttion is provided. As long as two actions are involved, the user does not get back to the welcome page by just click on the LOGOFF button only once. Need your guidance on how such a situation is usually handled? --- Caroline Jen [EMAIL PROTECTED] wrote: Thanks for the reply

RE: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
] wrote: At the end of your first action execute() method, do a redirect to the second action. Something like the following: return new ActionForward(secondAction.do); Hope this helps! -Yan -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: October 28

Re: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Caroline Jen
)); Barry - Original Message - From: Caroline Jen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 6:02 PM Subject: RE: Forward Cannot Be Achieved In One Step I have tried your suggestion. It still takes two

My logic Tag Does Not Seem To Work

2003-10-27 Thread Caroline Jen
Please point out my mistakes. Does the 'name' attribute of the logic tag accept an object only? For example, I created a session this way: HttpSession session = request.getSession(); String username = request.getRemoteUser(); session.setAttribute( user, username ); In the LogoffAction, I

Why the Forward Does Not Achieve In One Step?

2003-10-27 Thread Caroline Jen
Hi, I have the following code in the navbarMenu.jsp: html:link forward=exitLOGOUT/html:link and in the struts-config.xml, I have: forward name=exit path=/do/Logoff/ and action path=/Logoff type=org.NameOfOrganization.signoff.LogoffAction forward name=success

Re: Tiles And Images

2003-10-25 Thread Caroline Jen
stuff) --WEB-INF Others like the WEB-INF capability to protect resources. Cal http://www.calandva.com/Last update 08/01/03 -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 14:42 To: [EMAIL PROTECTED] Subject: Tiles

Tiles And Images

2003-10-24 Thread Caroline Jen
I use tiles and stylesheet to display my web pages. I also try to insert some images in those pages. The tiles work fine. I have header, footer, navbar, content, etc. displayed without problem. But, I am curious to know if anybody has had difficulties in inserting images. I have tried various

Tile and html:img

2003-10-24 Thread Caroline Jen
Thanks for the advices that have been given to my earlier question regarding inserting images while using tiles. The tiles part works fine. The browser still has problem to pick up the image that I try to insert. This is what I do: 1. I have html:base/ inside the HEAD tage in the main JSP

RE: Tile and html:img

2003-10-24 Thread Caroline Jen
Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 21:10 To: [EMAIL PROTECTED] Subject: Tile and html:img Thanks for the advices that have been given to my earlier question regarding inserting images while using tiles. The tiles part works fine

To the Person Asked About Form-Based Container-Managed (JDBCRealm) Authentication Question

2003-10-23 Thread Caroline Jen
Hi, I saw your message asking me about the form-based container-managed authentication in Struts. I accidentally deleted your message and could not find your name and e-mail address. The following steps are what should be done: 1. configure the JDBCRealm in the Tomcat server.xml, see

How To Use request.tld?

2003-10-23 Thread Caroline Jen
Where can I find any doc regarding how to use request.tld? I have seen request.tld be imported in a JSP and the role of the logged-in user is validated this way: req:isUserInRole role=administrator I would like to find out how to use the request.tld to express this statement: user.setName(

Re: User Authentication implemented in Struts

2003-10-22 Thread Caroline Jen
My question is similar. I use container-managed role-based security checking. I put role property in Action Mapping and use isUserInRole in my JSPs. For example, John can view the sales reports if he has the sales role. Now, I want to further restrict John to view the sales reports in is region

Re: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope (URGENT)

2003-10-22 Thread Caroline Jen
I am also in trouble. My problem is sort of related to yours although not directly relevant. I am also looking for org.apache.struts.taglib.html.BEAN I am trying to modify Ted Husted's artimus_1_1 example - I want to add one more property to his articleForm. To submit an article in the

Keep Them In the Database Or In the Properties File?

2003-10-20 Thread Caroline Jen
I have to prepare many drop down lists for visitors of the website to make selections. For example, I have the 51 states of the United States prepared like Virginia=VA, ., etc. Do I keep the data in a database or in a properties file? __ Do you Yahoo!? The

Java Compiler Cannot Find the Required JAR File in the Classpath

2003-10-20 Thread Caroline Jen
I posted this problem before. Max and Carey answered my post right away. I tried and tried I must be missing something. I really do not understand why all of a sudden that the java compiler cannot find the required JARs in the classpath. I have done some similar compilation before

Where Do I Create Session, Set Attributes in Struts?

2003-10-17 Thread Caroline Jen
I use container-managed form-based authentication to verify users (it works well). Now, I want to create a session and set user's name after users successfully log in: HttpSession session = request.getSession( true ); if ( session.isNew() ) {

Compilation Problem. Help!

2003-10-17 Thread Caroline Jen
I have all the required jar files in the MyApp/WEB-INF/lib directory. Please help me in identifying the problems with compilation: 1. For example, I have the commons-scaffold.jar in my $TOMCAT_HOME/webapps/MyApp/WEB-INF/lib folder. 2. I have the struts.jar in the j2sdk1.4.1_02/jre/lib/ext

Re: How To Work Out This Action Mapping?

2003-10-11 Thread Caroline Jen
/MyApplication is not availabel HTTP Status 404. Have you seen this kind of problem before? I have posted the question at the tomcat-user discussion forum. --Caroline --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: To answer your questions: 1. The LOGON button links to a forward

HTTP Status 404 After Inserting security-constraint In The web.xml

2003-10-10 Thread Caroline Jen
I think this is more of a problem in the area of Servlets/JSPs. Nonetheless, it happened when I ran my Struts application and I decided to give a try at this forum. My application worked well with login-config auth-methodFORM/auth-method form-login-config

How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
Because there is such a statement (shown below) in my signinForm.jsp: html:form action=j_security_check method=post focus=j_username I put action name=j_security_check path=/do/admin/Menu/ in my struts-config.xml file. When I ran the application, I got:

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
, Caroline Jen [EMAIL PROTECTED] wrote: Because there is such a statement (shown below) in my signinForm.jsp: html:form action=j_security_check method=post focus=j_username I put action name=j_security_check path=/do/admin/Menu/ in my struts-config.xml file

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
=Submit/TD TD align=leftINPUT TYPE=reset VALUE=Reset/TD /TR /TABLE /FORM /BODY --Caroline --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: Thank you for your reply. I am using container managed authentication. My problem is how to go from j_security_check back to my

Re: How To Work Out This Action Mapping?

2003-10-10 Thread Caroline Jen
] wrote: Caroline Jen wrote: Thank you very much for the detailed explanation. Yet, I still have hard time to make my application work -- I am able to display the welcome page (no problem). And I have http://localhost:8080/PracticeVersion/do/Menu;jsessionid=0A6E76A8F3E849BC8DAAC45BFB72F72E

What Is Wrong With My web.xml File (Struts)

2003-10-08 Thread Caroline Jen
My Struts application worked well until I added security in the web.xml file. I got the error message shown below and I cannot spot any mistake with my eyes: [QUOTE] 2003-10-08 23:33:25 Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: (line 137, col 19): The

Re: Container-Managed Authentication login-config in web.xml vs . Specifying Paths in the struts-config.xml

2003-10-07 Thread Caroline Jen
specify the paths for the logon page and error page in the struts.config.xml or we should use the form-login-page and form-error-page in the web.xml file? Thanks. --- Craig R. McClanahan [EMAIL PROTECTED] wrote: Caroline Jen wrote: But, I do not want to use BASIC authentication. I have many

  1   2   >