struts - view, create, update user page

2005-06-06 Thread Tony Smith
Hi, I am using struts to develop a webapp. One piece of work is the user information. I will allow user to create, view, and update his personal information. Usually, the three pages are very similar. What is the best way to do this with Struts? Is there any "Pattern" for this? I checked the Struts

Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Thank yoy very much. --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote: > > Hi, I am using struts to develop a webapp. One > piece > > of work is the user information. I will allow user > to > > create, vi

Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Jouravlev <[EMAIL PROTECTED]> wrote: > On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote: > > Hi, I am using struts to develop a webapp. One > piece > > of work is the user information. I will allow user > to > > create, view, and update his personal informat

Re: struts - view, create, update user page

2005-06-07 Thread Tony Smith
atabase with 20 > tables, or is this > user information just a few bits in an xml file? > > Larry > > > On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote: > > Hi, I am using struts to develop a webapp. One > piece > > of work is the user information. I will

Re: struts - view, create, update user page

2005-06-07 Thread Tony Smith
reate > transaction, display transaction, edit transaction, > and delete transaction... > > ... > > Thanks, > --- Larry Meadors <[EMAIL PROTECTED]> wrote: > > > Give us some more info Tony. > > > > Are you talking about a relational database with > 20

Re: struts - view, create, update user page

2005-06-07 Thread Tony Smith
create different pages for user list, > user edit, user > view, etc. I will use one action per each CRUD > operation, though. > > Micahel. > > On 6/7/05, Tony Smith <[EMAIL PROTECTED]> wrote: > > So here is the situation: > > > > All data is in data

access session object

2005-06-07 Thread Tony Smith
Hi: In my Action class, I stored a object in session with HttpSession session = request.getSession(); session.setAttribute("myobject", object); How can I access this object from jsp? Thanks, __ Yahoo! Mail Stay connected, organized, and p

link to a layout page

2005-06-07 Thread Tony Smith
I used tiles defined one of my jsp page with as the following layout At another jsp page, I would like to have a link pointed to this definition. How can I do it? I am currently using: ToStudyNew. But it does not seems to work. Thanks, ___

Re: access session object

2005-06-08 Thread Tony Smith
quot;session" is reference to current session is > available for all the JSPs. > > > HTH. > > ATTA > P.S By the way, and no offence please, this isn't a > Struts question as > much as a JSP question. > > On 6/7/05, Tony Smith <[EMAIL PROTECTED]> wrot

My IncludeAction-where to forward

2005-06-11 Thread Tony Smith
My webapp is standard. It has a left side menu pane and right side content pane. Both are dynamic and generated by struts action. I would like to have two different Actions for menu and content. For the menu aciton, I would like to use IncludeAction so that is could be included in my jsps. Thus,

html:text and html:textarea same width

2005-06-13 Thread Tony Smith
Hi I am designing a page like: I want the text and textarea have the same widths. But it is not true with the above code when displayed in the browser. How can I fix it? Thanks, __ Yahoo! Mail Stay connected, organized, and protected. T

Initial parameters

2005-06-14 Thread Tony Smith
If I used traditional servlet, I can set initial parameters for every servlet in web.xml. How can I set parameters for Struts? Thanks, __ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.ya

http 404 page

2005-06-15 Thread Tony Smith
If there is a problem, e.g. an action/page can not be found, the ugly "Http 404 page not found" page will be display. Is there a way to handle such event as Struts Exception handling? Thanks, __ Discover Yahoo! Find restaurants, movies, trav

running tomcat on port 80

2005-06-21 Thread Tony Smith
Hi, Can I run Tomcat 5.0 on port 80? After setting 80 as port number in the server.xml and starting tomcat, I got the following error message: SEVERE: Error starting endpoint java.net.BindException:permission denied:80 Thanks, __

Re: running tomcat on port 80

2005-06-21 Thread Tony Smith
How can I set the permission? It is my box, viturally I can do whatever I want. Thanks, --- Dave Newton <[EMAIL PROTECTED]> wrote: > Tony Smith wrote: > > >Hi, Can I run Tomcat 5.0 on port 80? After setting > 80 > >as port number in the server.xml and starting >

Eclipse plug-in for Struts

2005-06-22 Thread Tony Smith
Is there an Eclipse plug-in for Struts or Tomcat so that I can develop, debug, and test my web app all in Eclipse? Right now, if I want to change something I have to write my program in Eclipse, write my jsp in another text editor, export the jar file from Eclipse to web-inf/lib, restart Tomcat, an

Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tony Smith
Thank all for response. I loged on as root and changed server.xml to use port 80. When I start tomcat, it now compained that "80 is already in use". But I can not find out who is using it. I ran "netstat -a", but I did not see anything like "80". Should I look at something else? I also tried "t

Re: running tomcat on port 80[Scanned]

2005-06-23 Thread Tony Smith
Or, can I move my tomcat under apache so now port number is necessary in the address? --- Tony Smith <[EMAIL PROTECTED]> wrote: > Thank all for response. > > I loged on as root and changed server.xml to use > port > 80. When I start tomcat, it now compained that &quo

use boolean field as property

2005-06-25 Thread Tony Smith
I have a class public class mybean{ boolean isGood; public boolean getIsGood(){ return isGood; } public void setIsGood(boolean good){ this.isGood = good; } } Suppose I have a list of mybean, can I do this: xxxgood My app throws a ex

Iterate without collection

2005-07-02 Thread Tony Smith
If I just want to go through a loop and print out 1, 2, ...10, how can I do it with ? Here is my jsp: $ It complained that "Null attribute name". THanks, __ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it o

Re: Iterate without collection

2005-07-02 Thread Tony Smith
can I do it with ? --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > If I just want to go through a loop and print out > 1, > > 2, ...10, how can I do it with ? > > Here's a gentle shove in the JST

Re: Iterate without collection

2005-07-02 Thread Tony Smith
In jsp, with struts tag library, how can I change 0 to 'A', 1 to 'B', ... Thanks, --- Tony Smith <[EMAIL PROTECTED]> wrote: > can I do it with ? > > > --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > > From: "Tony Smith" <[EMA

Convert int to string in jsp

2005-07-02 Thread Tony Smith
In jsp, how can I convert int to string, e.g. 0 to 'A', 1 to 'B' ... __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ---

Re: Iterate without collection

2005-07-02 Thread Tony Smith
; wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > > > can I do it with ? > > > > In jsp, with struts tag library, how can I change > 0 to > > 'A', 1 to 'B', ... > > > > As far as I can tell from the docs... not

Re: Iterate without collection

2005-07-03 Thread Tony Smith
How can I cast int to char in jsp? Thanks, --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > >I am using jsp to print out a table. The data (dxx) > > comes from a formbean. At the beginning of every > row, >

Re: [OT] Tools do not matter? Wrong

2005-07-03 Thread Tony Smith
I agree. I am sick of people who uses vi and thinks anyone else is an idiot. --- Yan Hu <[EMAIL PROTECTED]> wrote: > > > Do you yealy think people on level of Craig, > Husted, Clinton, Linus, > > Marti C, etc. use painters? Or that you are not > productive? > > Guns don't kill. People kill.

Re: Iterate without collection

2005-07-03 Thread Tony Smith
That is cool. But is this going to work: <%= Character.toString (idx + 65) %> ${id} Suppose I have a list in my form with data "d1", "d2", "d3"... I want to print out: A d1 B d2 C d3 ... --- Thomas Corte <[EMAIL PROTECTED]> wrote: > Hi,

access entries in MessageResources.properties from java code

2005-07-07 Thread Tony Smith
How can I access entries in "MessageResources.properties" inside Action or Form code? Thanks, --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Hubert Rabago wrote the following on 7/8/2005 12:24 > AM: > > There are several > > reasons why you shouldn't use VOs as your form > beans and vice versa >

read init parameters in action

2005-07-08 Thread Tony Smith
For traditional servlets, you can set init parameters in the web.xml and read it in a static init method in servlet class. Can I have similar things for action? If I need some of these init parameter for my web app, what is the best way to do it with struts? Thansk,

Re: generate image by servlet for large amount of requests

2005-07-08 Thread Tony Smith
Any ideas? --- Tony Smith <[EMAIL PROTECTED]> wrote: > Let's think about maps.yahoo.com. I do not know how > they handle > millions of request and generate the map pictures > quickly. If I use a > servlet, in the post or get method I use: > &g

Re: read init parameters in action

2005-07-09 Thread Tony Smith
Thanks. Could you show me how to write such plug-in? --- Borislav Sabev <[EMAIL PROTECTED]> wrote: > I think there are 2 cases: > 1. you need a param that is available to the Servlet > and is not uniquie > to any particular Action > for eample in my application users can uppload > images,

nested html:form

2005-07-22 Thread Tony Smith
If I have a html:form, can I have another html:form inside it and pointed to a different action? For example: ... ... __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

html:select onchange

2005-07-22 Thread Tony Smith
triggered this event. Thanks, --- Tony Smith <[EMAIL PROTECTED]> wrote: > If I have a html:form, can I have another html:form > inside it and pointed to a different action? > > For example: > > > ... > > > ... > > > > > > >

Re: html:select onchange

2005-07-24 Thread Tony Smith
do? WOuld you please give me some hits? THanks, again. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Tony Smith" <[EMAIL PROTECTED]> > > > > > > onchange="location.href='mynewpage.do?para=XX'"> > > ... >

calender in jsp

2005-07-24 Thread Tony Smith
My jsp user interface contains one Textfield and button beside the textfiled. If that button is clicked , a calender should be displayed and the selected date in that particular calender is to be displayed in the textfield. how to do this in JSP? ___

Multiple Input Bean

2005-08-06 Thread Tony Smith
Hi, Suppose I have a UserBean: class UserBean{ String name, String address, ... public String getName() ... } In one jsp page, I want to input multiple people beans and send back to server. The jsp UI is something like: People 1: Name [ ] address [] People

How can I refer a control in javascript which hava a "." in its name

2005-08-18 Thread Tony Smith
Hi everyone: Here is my jsp: ... ... If user change the selection in the "select", I would like to change the content of the "text". Thus, I write my change() function in javascript:

access session attribute with taglib

2005-09-10 Thread Tony Smith
I have an attribute saved in session. In servlet, I can access it by request.getSession().getAttribute("my"); In jsp, how can I access it without write java code? I am thinking about , but do not know how to use it. Thanks, _

Cannot create iterator for this collection

2006-01-19 Thread Tony Smith
Hi, I am using struts taglib. I have a object like public class myObject{ List myList; List getList(){ return myList; } ... } The myObject is send through aciton to the jsp. In my jsp, I have: ... ... But it complains that " Cannot create iterator for this collecti

pass parameter between actions

2006-09-22 Thread Tony Smith
Hi, I have to actions, action1 and action2, Inside action1, protected ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse respose)

Re: pass parameter between actions

2006-09-22 Thread Tony Smith
Hi, I have to actions, action1 and action2, Inside action1, protected ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse respose)

RE: pass parameter between actions

2006-09-22 Thread Tony Smith
fwd = mapping.findForward( "gf_action2" ); > fwd.setPath( fwd.getPath() + "?id=100"); > return fwd; > > gf_action2 would be a global-forward to action2. > > -Original Message- > From: Tony Smith [mailto:[EMAIL PROTECTED] > Sent: Friday, September 22, 200