Re: Free Database Graphical Tool

2005-10-13 Thread
I just try it.

SQuirrel SQL Client Version 2.0 final is very good.


2005/10/13, Zsolt <[EMAIL PROTECTED]>:
> At http://squirrelsql.org I cannot see anything about eclipse. Can you help
> me please where I can find the eclipse plug-in.
>
> Zsolt
>
> >-Original Message-
> >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
> >Sent: Wednesday, October 12, 2005 2:44 PM
> >To: user@struts.apache.org
> >Subject: Re: Free Database Graphical Tool
> >
> >SQuriel client has a Eclipse plugin version (on eclipse plugins page is
> >where you'd search for plugins).
> >
> >I use SQLyog (windoze only... but Mac and Linux have Windoze emulators).
> >
> >.V
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Free Database Graphical Tool

2005-10-12 Thread
fabFORCE is a free too. It supports ER diagram.


2005/10/12, Danny Lee <[EMAIL PROTECTED]>:
> I like my SQLyog-Tool, using it for couple of years now.
> It's really fast, unproblematic and simple to use.
>
> Cheers
>
> Danny
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Free Database Graphical Tool

2005-10-12 Thread
How about SQLExplorer.
It also has Eclipse plugin.

2005/10/12, Vic Cekvenich <[EMAIL PROTECTED]>:
> SQuriel client has a Eclipse plugin version (on eclipse plugins page is
> where you'd search for plugins).
>
> I use SQLyog (windoze only... but Mac and Linux have Windoze emulators).
>
> .V
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: set different attribute according to the change of parameter

2005-10-08 Thread
My action class like this

public ActionForward userProfileMaint (ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception {
HttpSession session = request.getSession(); 
session.setAttribute("rolehref", "userProfileMaint");
return mapping.findForward("success");
}

my struts-config.xml





The result is
javax.servlet.ServletException: Request[/userProfileMaint] does not
contain handler parameter named 'userProfileMaint'. This may be caused
by whitespace in the label text.

What can I do?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: set different attribute according to the change of parameter

2005-10-08 Thread
Should the parameter be passed into Action class by
http://xxx/foo?a=b ?

Can the Action class get the parameter value
and the link is http://xxx/foo only?

I do not want the parameter appear in the URL.

Thanks

2005/10/8, Laurie Harper <[EMAIL PROTECTED]>:
> 梁炳場 wrote:
> > Can I do the following?
> >
> > Same action class sets different attribute
> > according to the change of parameter?
> >
> > Thanks
> >
> >  >   type="com.erp.struts.SetRoleHref"
> >   parameter="userProfileMaint"
> >
> >  >   type="com.erp.struts.SetRoleHref"
> >   parameter="quotationMaint"
> >
> > public class SetRoleHref extends Action {
> >   String myValue = request.getParameter("parameter");
> >   session.setAttribute("rolehref", myValue);
>
> Sure, you can do that, except that the 'parameter' attribute in the
> action mapping isn't exposed as a request parameter (those come from the
>  HTTP request). You need to call getParameter() on the ActionMapping
> instance instead.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


set different attribute according to the change of parameter

2005-10-07 Thread
Can I do the following?

Same action class sets different attribute
according to the change of parameter?

Thanks



[OT] How to pass HttpServletRequest into Hibernate?

2005-10-05 Thread
I have a menu made up of s.

When a certain html:link is clicked,
next level of menu made up of html:link displays.

When the first level of html:link, I do this
session.setAttribute() in the Action class.
So that I know which link is clicked.

To display the menu, it is the job of Hibernate.

<%
List roleProgramList =
RoleProgramService.getInstance().getRoleProgramList(request.getRemoteUser());



  


RoleProgramService:

Session session = null;
try
{
  session = HibernateUtil.currentSession();

My question how can the RoleProgramService, a Hibernate class,
retrieve the value of attribute when there is no session.getAttribute?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is session.setAttribute unique for all sessions?

2005-10-03 Thread
well, I just make use of  session.setAttribute(),
How will it become global variable?



2005/10/3, Murugesan, Kathiresan (Cognizant)
<[EMAIL PROTECTED]>:
>
> it won't share until you have "userPrivileges" as global variable in your 
> action class.
>
> Regards
> Kathir.
>
> 
>
> From: ??? [mailto:[EMAIL PROTECTED]
> Sent: Mon 10/3/2005 1:32 PM
> To: Struts Users Mailing List
> Subject: Is session.setAttribute unique for all sessions?
>
>
>
> In an Action, an attribute is set by
> session.setAttribute("Privileges", userPrivileges);
>
> If another session logins and the same Action is called again,
> will the two sessions share the same attribute?
>
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply 
> e-mail and destroy all copies of the original message.
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
> or copying of this email or any action taken in reliance on this e-mail is 
> strictly
> prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is session.setAttribute unique for all sessions?

2005-10-03 Thread
In an Action, an attribute is set by
session.setAttribute("Privileges", userPrivileges);

If another session logins and the same Action is called again,
will the two sessions share the same attribute?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread
In my case, it does not work after putting displaytag.properties
under WEB-INF/classes.

My displaytag.properties has only 1 line.
ie. userRole.system.title=System

what else to do next?
Thnx

在 2005/9/[EMAIL PROTECTED] <[EMAIL PROTECTED]> 撰寫:
> Hi leung,
>
> you can put displaytag.properties file under WEB-INF/classes folder and
> classloader will autmatically load it.
> There is no need to define that properties file in struts-config.xml
> because anyway you are not going to put this property file under any
> package structure.
>
> Keep this property file under WEB-INF/classes, it will definitely work.
>
>
> Sunil
>
>
>
>
>
> 梁炳場 <[EMAIL PROTECTED]>
> 09/30/2005 01:20 AM
> Please respond to
> "Struts Users Mailing List" 
>
>
> To
> Struts Users Mailing List 
> cc
>
> Subject
> [OT] where to put the displaytag.properties file for i18n?
>
>
>
>
>
>
> 
> the titleKey gives null.
>
> A single line is input into displaytag.properties
> userRole.system.title=System
>
> I have put displaytag.properties /WEB-INF/
> and /WEB-INF/user
>
> The column title is still blank.
>
> Where is the correct path to put displaytag.properties?
>
> Where can I define the path of displaytag.properties
> just like ApplicationProperties.properties defined in
> struts-config.xml?
>
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


[OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread

the titleKey gives null.

A single line is input into displaytag.properties
userRole.system.title=System

I have put displaytag.properties /WEB-INF/
and /WEB-INF/user

The column title is still blank.

Where is the correct path to put displaytag.properties?

Where can I define the path of displaytag.properties
just like ApplicationProperties.properties defined in
struts-config.xml?

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Looking for a table library

2005-09-29 Thread
In addition datagrid and displaytag, is struts-layout a widely used tool?

Any other open source tools to display a grid or something like this?

Thnx


2005/9/27, David G. Friedman <[EMAIL PROTECTED]>:
> How about the Pager Taglib from JSPtags.com? Their examples show radio
> buttons to get the 'editable table' concept across.
> http://jsptags.com/tags/navigation/pager/index.jsp
>
> Or the Jakarta "DataGrig" taglib from their taglib Sandbox.  Their nightly
> build has some sharp examples of paging with clickable buttons.
> http://cvs.apache.org/builds/jakarta-taglibs-sandbox/nightly/projects/datagr
> id/
> http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
>
> Regards,
> David
>
> -Original Message-
> From: R. Markham [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 26, 2005 12:22 PM
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: AW: Looking for a table library
>
>
> Hi Martin,
>
> I don't find a way how to put input (Text, CheckBox or RadioButton) in a
> column. It seems to me that I only can use the cells as output string. I
> already use the table of http://www.displaytag.org) in my Application but I
> am looking how to put a checkbox in a cell.
>
> Regards
>
> Richard Markhham.
>
> -Ursprüngliche Nachricht-
> Von: Martin Kindler [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. September 2005 15:25
> An: 'Struts Users Mailing List'
> Betreff: AW: Looking for a table library
>
> Richard,
>
> take a look at the Displaytag library (http://www.displaytag.org).
>
> Martin
>
> > -Ursprüngliche Nachricht-
> > Von: R. Markham [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 26. September 2005 15:14
> > An: 'Struts Users Mailing List'
> > Betreff: Looking for a table library
> >
> > Hi all,
> >
> > I have a table in my jsp. To be able to process the data of a
> > row in a table I want to be able to mark a row in the table
> > and read the content of the row,  through the row number of
> > marked line. I think this a very common problem, somewhere
> > there must be a solution for this problem.
> >
> > TIA
> > Richard Markham
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to retrieve ApplicationResources.properties from displaytag?

2005-09-28 Thread
The current result is blank.

I want to display the cell which retrieves from ApplicationResources.properties.
And the cell can be clicked.
The column title come from  ApplicationResources.properties as well.

How can it be done?
Thanks


">




Where href and messageKey are property of UserRole.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to customize a displaytag column?

2005-09-28 Thread




I'd like to change the messageKey column to

  
   

where href is another property.

How can it be done?
thnx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can I replace the "link" jsp file with an action path in Tiles definition file?

2005-09-27 Thread
Can I replace the "link" jsp file with an action path?
thnx

  


  
  

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make img response to a click?

2005-09-26 Thread


How to make html:img or other html tag response to a click?

Thnx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why the message in ApplicationResources cannot be retrieved?

2005-09-26 Thread
the jsp is one of the component of Tiles.
When there is error of Tiles, where are the error messages go?
Thnx

2005/9/27, Martin Gainty <[EMAIL PROTECTED]>:
> You will need to localise all of your strings..Follow each of the steps
> illustrated here
> http://struts.apache.org/userGuide/building_view.html
> HTH,
> Martin-
> - Original Message -
> From: "Laurie Harper" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, September 26, 2005 2:44 PM
> Subject: Re: Why the message in ApplicationResources cannot be retrieved?
>
>
> > 梁炳場 wrote:
> >> Output of the following is only "English Chinese".
> >> The message (main.home) in ApplicationResources cannot be written out.
> >> No error message.
> >>
> >> Any advice?
> >>
> >> 
> >> 
> >> 
> >> English Chinese 
> >> 
> >> 
> >> 
> >
> > You need to supply more information: how are your message resources
> > configured in struts-config.xml? where is your resource properties file
> > stored in the deployed webapp? what does it contain? what errors (if any)
> > do you get when the page is rendered?
> >
> > You probably don't have your resource file in the correct place, but it's
> > impossible to be sure without more info.
> >
> > L.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Why the message in ApplicationResources cannot be retrieved?

2005-09-26 Thread
Output of the following is only "English Chinese".
The message (main.home) in ApplicationResources cannot be written out.
No error message.

Any advice?



 
 
English   Chinese 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What's wrong in ApplicationResources.properties?

2005-09-26 Thread
I change to bean key to main.welcome,
the webpage can be displayed.
If the bean key changes to main.home or main.contactUs
the webpage cannot be displayed properly.

what goes wrong?
Thnx



header.jsp:


  
 



ApplicationResources.properties:

main.welcome=Welcome to myERP

main.contactUs=Contact Us

main.home=home

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make work in Tiles?

2005-09-23 Thread
In the header.jsp, I try to add something like "About Us", "Contact Us".
Make them align to the right.
But it does not work.
I spread across the header section.

I do this in the header.jsp (and use classLayout.jsp).




 ...
 




How can I make it work?
Thnx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Shale] clay templating

2005-09-19 Thread
Sorry for interruption.
After reading your discussion, I try to read the more about Shale.
>From the webpage, http://struts.apache.org/shale/index.html,
it is found that Shale does not depend on Struts. 

I wonder if Shale will be independent of Struts?


2005/9/20, Gary VanMatre <[EMAIL PROTECTED]>:
> >
> > > The only difference is instead of  in profile
> > > screen I need profile.html and in main I need main.html components. How
> > > can I do this?
> >
> > Well... to me, this sounds like a job for Tiles.  Gary, what do you think?
> >
> 
> Yes, I agree.  The role of Clay is to glue togather JSF components.  This is 
> at a smaller granularity than pulling together page fragments as tiles does.
> 
> The main difference is that Clay doesn't have a concept of a abstract page 
> layout like tiles.  In tiles, you can define a single layout that is used by 
> all pages.  With Clay you have to have a concrete HTML template or JSP page.
> 
> In your example you could construct a jsp page that has a single clay 
> component that includes your layout components.  But, you would still have to 
> create a jsp or clay template for each page.
> 
> mainPage.jsp
> **JSP page declarations**
> 
> 
> Or a page with a single span tag.
> Mypage.clay
> 
> 
> Tiles allows you to define an abstract page where Cay currently requires a 
> concrete page where you abstract the content.
> 
> > --
> > Wendy Smoak
> >
> >
> 
> Gary
> 
> 
> > From: "Maksimenko Alexander" <[EMAIL PROTECTED]>
> >
> > > The only difference is instead of  in profile
> > > screen I need profile.html and in main I need main.html components. How
> > > can I do this?
> >
> > Well... to me, this sounds like a job for Tiles.  Gary, what do you think?
> >
> > As far as Shale + Tiles documentation goes, there is David's blog entry:
> >http://jroller.com/page/dgeary?entry=shale_adds_tiles_integration
> >
> > And another list member, Geeta Ramani, has put together an example webapp:
> >http://marc.theaimsgroup.com/?l=struts-user&m=112507041612466&w=2
> >
> > One thing to keep in mind is that Standalone Tiles is still in the Struts
> > Sandbox.  It hasn't had a release yet and it could undergo some changes
> > before it does.
> >
> > If you're using MyFaces, they have support for Struts Tiles-- there's a
> > 'tiles.war' example app as part of their distribution, and a new Wiki page
> > here:  http://wiki.apache.org/myfaces/Tiles_and_JSF .
> >
> > I haven't worked with it enough to know what the difference is between using
> > Struts Tiles or Standalone Tiles in a webapp.  Somewhere on my TODO list is
> > to take the MyFaces tiles.war example and see what it takes to convert it to
> > Standalone Tiles.
> >
> > --
> > Wendy Smoak
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: new Struts tools for layout other than Tiles

2005-09-16 Thread
Because from the webpage of http://www.lifl.fr/~dumoulin/tiles/
No new element is added after 2002.
I wonder if it stops moving.

If it is alive, I can devote my effort to it.

Thank you all.


2005/9/16, Wendy Smoak <[EMAIL PROTECTED]>:
> From:  <[EMAIL PROTECTED]>
> 
> > on the web page Tiles developer,
> > http://www.lifl.fr/~dumoulin/tiles/
> > It stopped development after 2002.
> 
> As Christian noted, Tiles is alive and well as a Struts sub-project.
> 
> There's also an effort under way (Standalone Tiles, currently in the Struts
> Sandbox,) to remove its dependencies on Struts and Servlets so that Tiles
> can be used with (among other things) JSF and Portlets:
> http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/tiles/
> http://wiki.apache.org/struts/StandaloneTiles
> 
> --
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



new Struts tools for layout other than Tiles

2005-09-16 Thread
on the web page Tiles developer,
http://www.lifl.fr/~dumoulin/tiles/

It stopped development after 2002.

Any new tools of OpenSource which keeps on going?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n on Tiles menu

2005-09-16 Thread
I have a Tiles layout of menu.

It displays values as I put in item value.

But can I make it i18n?
ie. how to use ApplicationResources.properties?

Thanks

  


  
  
  
  
  

  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and DisplayTag CSS?

2005-09-16 Thread
Thank you Wendy.

It is okay to retrieve contextpath.

Thanks


2005/9/16, Wendy Smoak <[EMAIL PROTECTED]>:
> From:  <[EMAIL PROTECTED]>
> 
> > The resulting href becomes the following by display the source page on IE.
> >  > media="screen, print" />
> >
> > It is so strange that both http://localhost:8080/erp/
> > and  http://localhost:8080/erp/addUserProfile.do
> > cannot display with css.
> 
> Not so strange, unless the stylesheet is in the ROOT context (assuming this
> is standalone Tomcat).  That leading slash means the browser is requesting
> http://localhost:8080/css/screen.css.
> 
> > Then I try to get the contextpath, instead of hard code.
> > But fail, the following line return null
> > <% String contextPath=request.getContextPath(); %>
> > 
> >  Why?
> 
> That fails because JSTL cannot "see" scripting variables.  JSTL has an
> implicit pageContext object, though which you can get to the request.
> 
> See if this does what you want:
>   
> 
> I haven't tried it, but it looks like it should work.
> 
> --
> Wendy Smoak
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and DisplayTag CSS?

2005-09-15 Thread
I have tried both suggestion.
Still no luck and even worse.

The resulting href becomes the following by display the source page on IE.



It is so strange that both http://localhost:8080/erp/
and  http://localhost:8080/erp/addUserProfile.do
cannot display with css.

Eventuallt, I change the href to this


Then both url can display with css beautifully.

Then I try to get the contextpath, instead of hard code.
But fail, the following line return null

<% String contextPath=request.getContextPath(); %>


Why?


2005/9/15, Michael Ewers <[EMAIL PROTECTED]>:
> Quick solution:
> 
> 
> And don't forget to set the requestURI-attribute in the display:table tag.
> 
> > --- Ursprüngliche Nachricht ---
> > Von: ±ç¬±³õ <[EMAIL PROTECTED]>
> > An: Struts Users Mailing List 
> > Betreff: Struts and DisplayTag CSS?
> > Datum: Thu, 15 Sep 2005 22:09:02 +0800
> >
> > For this link, http://localhost:8080/erp/
> > displaytag is okay to display with css beautifully.
> >
> > For this link, http://localhost:8080/erp/addUserProfile.do
> > all the css effect disappear.
> >
> > my web.xml
> >   
> > /user/addUserProfile.jsp
> >   
> >
> > my jsp file has a css line
> >   
> >> media="screen, print" />
> >   
> >
> > my struts mapping is
> >  >   attribute="userProfileForm"
> >   input="/user/addUserProfile.jsp"
> >   name="userProfileForm"
> >   parameter="method"
> >   path="/addUserProfile"
> >   scope="request"
> >   type="com.erp.struts.user.action.UserProfileDispatchAction" >
> >   
> > 
> >
> > Any hints to solve?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and DisplayTag CSS?

2005-09-15 Thread
For this link, http://localhost:8080/erp/
displaytag is okay to display with css beautifully.

For this link, http://localhost:8080/erp/addUserProfile.do
all the css effect disappear.

my web.xml
  
/user/addUserProfile.jsp
  

my jsp file has a css line
  
  
  

my struts mapping is

  


Any hints to solve?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "Struts 1.3 and Beyond" Presentation

2005-09-09 Thread
Don

I have read your presentation.
I give me an impression. 

Shale is the future of Struts without doubt!!!



2005/9/8, Don Brown <[EMAIL PROTECTED]>:
> I just finished giving a presentation titled "Struts 1.3 and Beyond" to the
> Silicon Valley Web Developer JUG that I thought folks on this list might be
> interested in. In addition to the regular slide keyboard controls, press "T"
> to toggle the outline/printable view which contains extra notes.
> 
> Presentation: http://www.twdata.org/presentations/struts-future/
> Presentation software: http://www.meyerweb.com/eric/tools/s5/
> 
> Don
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to define in Action and ActionForms for DisplayTag?

2005-09-04 Thread
Should I read data from sql resultset and assign data to sessionScope.details?

If yes, but I do not know how to define sessionScope.details in Action class
and ActionForm class?

Thanks


  
  
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error: Cannot forward after response has been committed?

2005-09-01 Thread
Thank you so much.

2005/9/1, Guillermo Castro <[EMAIL PROTECTED]>:
> Ok...
> 
> Assuming you have a tiles layout definition like:
> 
> 
> 
> 
> 
> 
> 
> You can make the header content a tile definition by itself, and use that
> definition to declare your Controller class, which will be the one with the
> logic for forwarding:
> 
> 
> 
> 
> 
> 
> 
>  controllerClass="my.package.HeaderController">
> 
> 
> 
> And put the forward inside the HeaderController class:
> 
> public void execute(ComponentContext tileContext, HttpServletRequest
> request,
> HttpServletResponse response, ServletContext servletContext) throws
> Exception {
> HttpSession session = request.getSession(false);
> if(null == session || null == session.getAttribute("loginForm")) {
> response.sendRedirect("/index.jsp");
> }
> }
> 
> Also, make sure that your '/common/mainLayout.jsp' page doesn't have any
> html code before the  invocation, or it
> will make a response being sent to the client.
> 
> Regards.
> 
> On 9/1/05, 梁炳場 <[EMAIL PROTECTED]> wrote:
> >
> > What if the Tiles layout composing header, menu and body.
> >
> > Where the Tiles Controller belongs to?
> > Does it stick one layout?
> >
> > Thanks
> >
> > 2005/9/1, Guillermo Castro <[EMAIL PROTECTED]>:
> > > The error happens when part of your jsp page has already been sent to
> > the
> > > client.
> > >
> > > My recommendation would be to define a Tiles Controller (see
> > > org.apache.struts.tiles.ControllerSupport) that would do the forwarding
> > > logic.
> > >
> > > I hope this helps.
> > >
> > > On 9/1/05, 梁炳場 <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Within a Tiles layout,
> > > > I try to forward to another jsp when a bean not exist?
> > > >
> > > > But it leads to the subject line error message?
> > > >
> > > > In the header layout jsp, I put this
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > If it is not allowed or it is not a good way,
> > > > what is the better way or another way to do so?
> > > >
> > > > Thanks
> > > > PC Leung
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Guillermo Castro [EMAIL PROTECTED]
> > > Monterrey NL, Mexico http://www.javageek.org/
> > >
> > >
> >
> 
> 
> 
> --
> Guillermo Castro [EMAIL PROTECTED]
> Monterrey NL, Mexico http://www.javageek.org/
> 
>


Re: Error: Cannot forward after response has been committed?

2005-09-01 Thread
What if the Tiles layout composing header, menu and body.

Where the Tiles Controller belongs to?
Does it stick one layout?

Thanks

2005/9/1, Guillermo Castro <[EMAIL PROTECTED]>:
> The error happens when part of your jsp page has already been sent to the
> client.
> 
> My recommendation would be to define a Tiles Controller (see
> org.apache.struts.tiles.ControllerSupport) that would do the forwarding
> logic.
> 
> I hope this helps.
> 
> On 9/1/05, 梁炳場 <[EMAIL PROTECTED]> wrote:
> >
> > Within a Tiles layout,
> > I try to forward to another jsp when a bean not exist?
> >
> > But it leads to the subject line error message?
> >
> > In the header layout jsp, I put this
> >
> > 
> > 
> > 
> >
> > If it is not allowed or it is not a good way,
> > what is the better way or another way to do so?
> >
> > Thanks
> > PC Leung
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Guillermo Castro [EMAIL PROTECTED]
> Monterrey NL, Mexico http://www.javageek.org/
> 
>


Error: Cannot forward after response has been committed?

2005-09-01 Thread
Within a Tiles layout,
I try to forward to another jsp when a bean not exist?

But it leads to the subject line error message?

In the header layout jsp, I put this




  
If it is not allowed or it is not a good way,
what is the better way or another way to do so?

Thanks
PC Leung

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to pass sql variable from jsp to Action?

2005-08-31 Thread
I wonder if it is a proper way to do it because
the 1st query displays a no of rows with different group ids.
Can the  pass a value to Action?
If it can, it is excellent.

Should it be done like this?
change the layout from a no of links 
to a no of forms 
In each form, it has hidden value of group id.

How will you do this? Thank you very much for your help.

2005/9/1, 梁炳場 <[EMAIL PROTECTED]>:
> I retrieve a group id by JSP.
> 
> 
> When user clicks a link
> 
> 
> Before another page is shown, in my struts-config.xml,
> I try to make a ActionForward function to capture the group_id
> and then update a session attribute .
> 
> Then the resulting jsp is like this
> 
> 
> Is this a proper way to do this?
> 
> I do not know how to write in the Action class so that
> it can retrieve the sql value from the passing in jsp file.
> 
> Your help is very much appreicated.
>


How to pass sql variable from jsp to Action?

2005-08-31 Thread
I retrieve a group id by JSP.


When user clicks a link 


Before another page is shown, in my struts-config.xml,
I try to make a ActionForward function to capture the group_id
and then update a session attribute .

Then the resulting jsp is like this


Is this a proper way to do this?

I do not know how to write in the Action class so that
it can retrieve the sql value from the passing in jsp file.

Your help is very much appreicated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



back button does not function?

2005-08-29 Thread
I add a button to a page, hope it will go back to the menu page, but it fails.
1) The button text cannot obtain the value from MessageResources.properties.
2) When mouse goes up, the page forward does not work.

How can they be resolved?
Thanks


JSP:
  

  

struts-config.xml:





   


Where com.common.misc.SetAttributeGroupId extends ForwardAction

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Navigating back to a previous page

2005-08-29 Thread
Can it be done if the back button of IE goes to the page (menu page)
before the input form?

I do not want a common back page.

It seems that I have to extend the back button of IE or something else?

Can it be defined in JSP or struts-config.xml?

Thanks


2005/8/28, Martin Gainty <[EMAIL PROTECTED]>:
> Javascript:go.history(-1) will accomplish this.. but beware you will lose
> the contents of the previous form
> 
> Unless you know of a way to retain all the information by pressing/clicking
> the back button ?
> 
> M-
> - Original Message -
> From: "Leon Rosenberg" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" 
> Sent: Saturday, August 27, 2005 9:45 AM
> Subject: Re: Navigating back to a previous page
> 
> 
> Hmm
> 
> Correct me if I wrong,
> but  I think the reset method of the form will help you only if you want to
> get back to the input page of the form.
> In the described usecase Jonathan wants to get back to ANY other page he
> could came from. So how you can ensure that he
> have a form at all?
> 
> Regards
> Leon
> 
> > -Ursprüngliche Nachricht-
> > Von: Martin Gainty [mailto:[EMAIL PROTECTED]
> > Gesendet: Samstag, 27. August 2005 15:20
> > An: Struts Users Mailing List
> > Betreff: Re: Navigating back to a previous page
> >
> > Jonathan-
> >
> > If you want to preserve the values when back button is
> > pressed you will have to override reset method in your
> > (Dyna)ActionForm
> >
> > Take a look at
> > http://64.233.161.104/search?q=cache:dHwd5qvFAJ4J:www.javapass
> > ion.com/j2ee/StrutsAdvanced_speakernoted.pdf+Struts+and+%22ove
> > rride+reset%22+AND+%22example%22&hl=en
> >
> > Martin-
> > - Original Message -
> > From: "jonathan gilmore" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Saturday, August 27, 2005 6:41 AM
> > Subject: Navigating back to a previous page
> >
> >
> > >
> > > I have a common screen that is navigated to by many other
> > screens.  Does
> > > Struts have support for remembering the previous screen so
> > that my common
> > > screen needs only one 'back' button to return the user to
> > their original
> > > location?
> > >
> > > I have looked through the docs and havn't found anything.
> > >
> > > Any comments much appreciated
> > >
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validator Questions?

2005-08-25 Thread
(1) Could I add extra message to  in addition to empty message?

Does  only capture ActionErrors, not ActionMessages?

(2) I have fixed it by modifying validation.xml.

Thank

2005/8/25, 梁炳場 <[EMAIL PROTECTED]>:
> Struts 1.2.7
> 
> (1)
> The following tag can test the emptiness of the field.
> 
> 
> If I want to display a specific message when it is not empty
> and display error message when it is empty,
> what should be done in header="???" or something else
> 
> 
> (2)
> I have a message in MessageResources.properties like
> addUserProfileForm.username.label
> but do not have addUserProfileForm.username
> 
> It gives an error message like this.
> ???zh_TW.addUserProfileForm.username??? is required.
> 
> Can it be done as using addUserProfileForm.username.label
> instead of addUserProfileForm.username
> when the field is empty?
> 
> Thank you very much
>


ActionErrors inside validate of ValidatorForm?

2005-08-25 Thread
validate() is a function of ValidatorForm

I have written some checking inside validate()
However validate returns ActionErrors.

However can I change it to ActionMessages
so that my checking inside in validate() still valid
when ActionErrors deprecates in the future?

And

Inside validate(),
The 1st statement is
ActionErrors errors = super.validate(mapping, request);

Can I rewrite it to ActionMessages?

Thank you in advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validator Questions?

2005-08-24 Thread
Struts 1.2.7

(1)
The following tag can test the emptiness of the field.


If I want to display a specific message when it is not empty
and display error message when it is empty,
what should be done in header="???" or something else


(2)
I have a message in MessageResources.properties like 
addUserProfileForm.username.label 
but do not have addUserProfileForm.username

It gives an error message like this.
???zh_TW.addUserProfileForm.username??? is required. 

Can it be done as using addUserProfileForm.username.label 
instead of addUserProfileForm.username
when the field is empty?

Thank you very much

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]