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
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
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
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
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
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
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
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,
___
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 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,
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
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
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
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,
__
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
>
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
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
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
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
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
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
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
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
---
; 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
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,
>
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.
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,
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
>
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,
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
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,
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
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:
>
>
> ...
>
>
> ...
>
>
>
>
>
>
>
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'">
> > ...
>
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?
___
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
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:
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,
_
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
Hi,
I have to actions, action1 and action2,
Inside action1,
protected ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse respose)
Hi,
I have to actions, action1 and action2,
Inside action1,
protected ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse respose)
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
42 matches
Mail list logo