Re: [S2] Question on inherited Actions and Results

2007-06-07 Thread Greg Ludington

Upon closer look, it appears that somebody had checked in a
namespace="/" on the s:form tag, which was causing this behavior.
Struts inheritance is working as expected; the problem was on our end.

Thanks,
Greg Ludington

On 6/7/07, Greg Ludington <[EMAIL PROTECTED]> wrote:

If I have two namespaces, a parent and a child, on an Action not
defined in the child, should a the Result direct the user to the
parent namespace, or the child one?  The wiki page on redirect-action
states that, for namespace, "If namespace is null, this defaults to
the current namespace"  Does that refer to the currently active
namespace, or the namespace in which the Action is defined?

In other words (using xml configs):


...
   
   ...
  /inputForm.jsp
  
   otherAction
  



  
  
   

If a user goes to /child/sample.action and successfully submits the
form, the redirect-action will send them to /otherAction.action, not
to /child/otherAction.  (For that matter, since I am using the
namespace to establish paths to css and other static resources, it
appears that the input result also points back to the default
namespace, not the child.)

Would this be a bug, or is this the designed behavior, and Results are
not intended to inherit in such a way as I am trying?

Thank you,
Greg Ludington



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



[S2] Question on inherited Actions and Results

2007-06-07 Thread Greg Ludington

If I have two namespaces, a parent and a child, on an Action not
defined in the child, should a the Result direct the user to the
parent namespace, or the child one?  The wiki page on redirect-action
states that, for namespace, "If namespace is null, this defaults to
the current namespace"  Does that refer to the currently active
namespace, or the namespace in which the Action is defined?

In other words (using xml configs):


   ...
  
  ...
 /inputForm.jsp
 
  otherAction
 
   


 
 
  

If a user goes to /child/sample.action and successfully submits the
form, the redirect-action will send them to /otherAction.action, not
to /child/otherAction.  (For that matter, since I am using the
namespace to establish paths to css and other static resources, it
appears that the input result also points back to the default
namespace, not the child.)

Would this be a bug, or is this the designed behavior, and Results are
not intended to inherit in such a way as I am trying?

Thank you,
Greg Ludington

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



Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-21 Thread Greg Ludington

You are not going to adjust the scope of a css file, but you will have
to change your HTML to give the browser some means of telling your two
tables apart, and then adjust your css accordingly.  Most often, this
is done by putting a class on the html, e.g. .
Then, your css could be:

   td.menuClass {this style would only be applied to the menu td}
   td.displayTagClass {this style would only be applied to the display tag td}

I have not used either Struts-Menu or DisplayTag, so I do not know if
you can specify css classes to use in the HTML they generate.  I am
guessing that you can, but, even if you cannot, you can still apply
css to precise areas by containing them in other elements, and writing
your css accordingly.  Here is a quick example:




table { font-family:arial,helvetica}
#foo table { color:red}
#bar table { color:green}



   
   
   I am red arial
   
   
   
   
   I am green arial
   
   



In this page, all tables are arial,hevetica, but only tables inside
the "foo" element are red, and only tables inside the "bar" element
are green.  You have to alter your HTML to give css knoweldge of where
to apply rules, and then change your css in ways like these so that
they only apply to the areas of the page that you need.  There are
other methods, as well, but a full discussion of css inheritance is
beyond the scope of this list, and probably my abilities as well :)

Here is a good link as a starting point:
http://www.simplebits.com/notebook/2003/04/15/css_inheritance.html

hth,
Greg


On 5/21/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Greg Ludington,you've got the point.
I tested many times to find it is the CSS file that made the strange rim.The
CSS files apply to  all the  pages  using  display-tag.I  do  NOT   know
how to limit the scope  of the CSS files' application areas.

I am trying  eXtremeComponents following *David G. Friedman's *advice*.

*And,David G. Friedman,I've got another question for you:

How can you limit the scope of the CSS files ?Any table(including the table
which is not the display-tag table) will be applied to the same  CSS if I
use display-tag's CSS file as following:

..

> 
>  
>  
>  
> 
> 
> **...


Thanks a lot.




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



Re: HELP:I've got a new problem when I tried to use struts-menu in my Tiles using display-tag.

2006-05-20 Thread Greg Ludington

I do not use either Struts-Menu or DisplayTag, but, looking at your
screen shot, it looks like  both your table and your menu elements may
have the same type of outline.  Check your css -- it may be that your
css applies the same styles (most likely some manner of border style)
to elements in both areas.  If that is the case, you just need to make
your css rules more specific, so that they apply to the table, but not
the menus.

hth,
Greg

On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:

Pity to notice you that I give up struts-menu to ensure the display-tag can
display properly.

On 5/20/06, David G. Friedman <[EMAIL PROTECTED]> wrote:
>
> Have you asked this question on the struts-menu forum/mailing list at
> Sourceforge?  That list might have more specific
> experience merging these packages.  See:
> http://sourceforge.net/forum/forum.php?forum_id=160189
>
> Regards,
> David
>
> -Original Message-
> From: M.Liang Liu [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 19, 2006 11:26 PM
> To: Struts Users Mailing List
> Subject: Re: HELP:I've got a new problem when I tried to use struts-menu
> in my Tiles using display-tag.
>
>
> In the Tomcat 5.5.x  logs  file ,there's no more info.
>
> As following:
>
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.startup.TldConfig).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> > log4j:WARN No appenders could be found for logger (
> > org.apache.catalina.session.ManagerBase).
> > log4j:WARN Please initialize the log4j system properly.
> >
>
> On 5/20/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
> >
> > Hi everybody!
> >
> >I've got a new problem when I tried to use struts-menu in my Tiles
> > using display-tag.
> >
> > I put the struts-menu in my Tiles alone and find it works well.
> > However,the problem occurred when I put one page using display-tag in
> the
> > same Tiles page including struts-menu:The struts-menu can NOT display
> > properly.The image can display  but  the menu  has  a rim.I do NOT want
> > the rim because every menu has one-there are so many that the menu
> was
> > dissipated .
> > I can NOT stand it.
> >
> >
> > I can not enclosed the strange screen picture of the  page  as
> > attachments;so I put it  in my   flickr here<
> http://static.flickr.com/53/149590641_0cbeeb81b6_o.jpg>
> > .
> >
> > Anyone who's familiar with display-tag can help me?
> >
> > Please.
> >
>
>
>
> --
>   http://blog.csdn.net/patriotlml
> Drink   Drank Drunk
> http://my.donews.com/patriotlml/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/




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



Re: Has anyone intregrated DWR with AJAX?

2006-04-04 Thread Greg Ludington
You may want to ask this on the DWR users list; in version 1.1 there
is some support for accessing form beans directly from DWR.  The base
documentation page for DWR/Struts is here:

http://getahead.ltd.uk/dwr/server/struts

On 4/4/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> hi
> I have a website which is developed using struts, I am
> looking to convert some of it to AJAX and working on
> different approaches,
> In my current application, i have a common Action
> class which has all the common functions like getting
> the information stored in ServletContext, or Session
> or getting the connection from JNDI
> I am using Ibatis SQL mapping to run SQL querries,
> with SqlMapClient stored in ServletContext.
> What would be the best way to start converting to DWR,
> in DWR i can just define simple java beans (POJO).
> I can get access to servlet request, etc using
> WebContext ctx = WebContextFactory.get();
> req = ctx.getHttpServletRequest();
>
> This is what i am planning, using Action class and
> ActionForm to load initial data on jsp, and then use
> DWR to update information on this screen jsp after
> user does some funtions.
>
> Is this the right approach?
> Can i access this form bean (in request scope in java
> bean class)
>
> What are other possible ways to do so
>
> Ashish
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> 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: Spanish date and time

2006-03-29 Thread Greg Ludington
Assuming you are using JSP or some other view technology that supports
jstl tags, take a look at the jstl fmt tag library:

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL6.html

In addition to internationalizing messages, it also contains tags to
format numbers and dates according to your locale.  To help get you
started, here is a quick example:

<[EMAIL PROTECTED]  uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt"%>
<%
// This would be the date coming from your servlet
request.setAttribute("now", new java.util.Date());
%>


This would output the long style date in whatever locale you are using
in your application, e.g. March 29, 2006 for US-English, 29 de marzo
de 2006 for Spanish.

You could use  at the outset of that page
to set a generic Spanish locale on that page only, but you probably
already are using some form of localization in other parts of your
application, and you would be better served getting the Locale from
there.  There are also more formatting options than just "long" -- you
can find the javadoc-style tag library documentation at:

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html

-Greg


On 3/29/06, Bart Busschots <[EMAIL PROTECTED]> wrote:
> You can calculate the date in your struts action, stick it into the
> request and then print it out using the bean tags in your JSP.
>
> Dates in Java are a bit mad but basically you need to set up a calendar
> object and give it a spanish locale and then export it to a String.
>
> Have a look at java.util.Calendar in the Java API.
>
> Bart.
>
> Yariel Ramos Moreno wrote:
>
> >Hello:
> >
> >It is possible to get the system date and time using struts (I have seen 
> >DateTime taglib) but show it in Spanish instead of English???
> >
> >Thanks in advance,
> >
> >Yariel.
> >__
> >
> >XIII Convención Científica de Ingeniería y Arquitectura
> >28/noviembre al 1/diciembre de 2006
> >Cujae, Ciudad de la Habana, Cuba
> >http://www.cujae.edu.cu/eventos/convencion
> >
> >
> >
>
>
> -
> 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: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Greg Ludington
>  styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />

Two comments:
1) You have a closed curly brace in that attribute -- I am assuming
that is a typo in this email only.

2) I do not believe you can mix text and RT expressions in the same
attribute of a tag -- I have not been working in JSP in a while, but
you could combine it into one RT expression.

"
   size="4" maxlength="10" />

or, alternatively, create that variable in a scriptlet beforehand.  If
you are using EL, you would have to do something similar.



On 9/30/05, Dilip Ladhani <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> This does not work for me at all. Anyone have any ideas
>
>  styleClass="textField" onfocus="this.select(); this.className='fieldActive'"
> onblur="this.className='fieldInactive'; reCalcFields(<%=executionState}%>);"
> size="4" maxlength="10" />
>
> I have tried to put jstl (), other struts
> tag (bean:write) instead of the (<%=executionState}%>). Nothing
> worksPlease help
>
>
>
> -
> 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: [FRIDAY] MVC as metaphor

2005-07-22 Thread Greg Ludington
Since it is Friday, don't forget:

Curly, Larry, Moe :)

Such good separation of layers they could swap in Shemp, Joe, and
Curly-Joe without disturbing the others...

-Greg

On 7/22/05, Ted Husted <[EMAIL PROTECTED]> wrote:
> On 7/11/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> > Some time ago I tried to postulate an enterprise application  as a
> > row of mvc patterns each using the previous one as the model, and everyone
> > laughed at me :-)
> 
> If you look, you can find the MVC pattern everywhere ... not unlike
> the golden rectangle.
> 
> * Model, View, Controller
> 
> * Logic, Data, Navigation
> 
> * Command, Context, Catalog
> 
> * Legislature, Court, Police
> 
> * Reason, Justice, Action
> 
> * Wisdom, Knowledge, Strength
> 
> * Love, Mercy, Courage
> 
> * Potential, Matter, Energy
> 
> * Judge, Jury, Executioner
> 
> -Ted.
> 
> -
> 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: JSTL Rss Reading

2005-05-24 Thread Greg Ludington
If you really need to keep it in the presentation layer, use something
like OpenSymphony's cache tag so that you are not making the external
call and parsing every single time the page is hit.

http://www.opensymphony.com/oscache/

hth,
Greg

On 5/24/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Brian-
> 
> The problem is that you are receiving data based upon event information
> triggered outside of the webapp environment so I dont see
> Struts as being able to handle those types of external events..maybe JSF is
> a better way to handle this but thats a different situation altogether-
> I did find a J2EE Solution whic implements display of RSS Feed but using
> Apache cocoon to transform transmitted XML Data from the server to JSP
> clients take a look at
> http://www.xml.com/lpt/a/2003/04/23/cocoon-magazine.html
> 
> I hope this helps,
> Martin-
> 
> - Original Message -
> From: "Brian McGovern" <[EMAIL PROTECTED]>
> To: "Martin Gainty" <[EMAIL PROTECTED]>
> Cc: "Struts Users Mailing List" 
> Sent: Tuesday, May 24, 2005 3:45 PM
> Subject: RE: JSTL Rss Reading
> 
> 
> I'd like to avoid js if possible.  Client can turn that off.
> 
> -Any other ideas?
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 24, 2005 3:38 PM
> To: Brian McGovern
> Cc: Struts Users Mailing List
> Subject: Re: JSTL Rss Reading
> 
> 
> Brian
> did you look at frank zammetti's xhrstruts (Browser independent RSS feed
> implementation using JavaScript) ?
> http://www.omnytex.com/articles/xhrstruts/
> Martin-
> 
> - Original Message -
> From: "Brian McGovern" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Tuesday, May 24, 2005 2:12 PM
> Subject: JSTL Rss Reading
> 
> 
> Hi,
> I'm having a rough time with the issue of reading in rss feeds in my
> presentation layer.  My situation calls for the same feed to be shown on
> every screen of a certain section.  Problem is, it loads very slow.  There
> are a million ways to approach this and Im hoping to keep my logic on the
> presenation layer in a tag based fashion.  My last resort is to create a
> scheduled job that creates a file to be inlcuded every 10 or 20 minutes.
> Any ideas appreciated.
> 
> http://rss.prnewswire.com/"/>
> 
>  class="BorderOn">
>    class="infoTextHeader">Recent Headlines
>  varStatus="indexCounter">
>  
> " class=small> select="./*[name()='title']" escapeXml="false"/>
>  
>  
> 
> 
> Thanks
> B
> 
> -
> 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: Seeking advice image resizing

2005-05-05 Thread Greg Ludington
You could use Sun's Java Advanced Imaging, as well.

http://java.sun.com/products/java-media/jai/

JAI gives you about everything you could need to manipulate many formats of 
bitmap images, though the API seems daunting at first. I found one article 
that provides a good discussion and examples of wrapping common functions 
like resizing in a utility class. (The article goes on to discuss using this 
class from within Cold Fusion, but the java portion of the discussion would 
be the same regardless.)

http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/

-Greg


Re: How can I set values to message parameters by using bean:message tag?

2004-10-24 Thread Greg Ludington
> Hi all,
> I am wondering if there is a way to set values to message paramerts by using
> bean:message, for example,
> I have a message entry in my application.properties file like this:Welcome,
> {0}

Unless I am misunderstanding what you are looking for, that is what
the arg0-arg4 attributes are for, to insert up to 5 parametric
replacements.



In case I have goofed, check the docs at:
http://struts.apache.org/userGuide/struts-bean.html#message

If you prefer to use JSTL over struts tags when possible, the JSTL
equivalent is the  tag.

hth,
Greg

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



Re: customized webs and advanced localization

2004-09-16 Thread Greg Ludington


It sounds like your problem is:
1) You want to include files in a way that chooses the best match,
given a user's language, much like the proper ResourceBundle is
discovered.
2) You have another property in play, not just standard
language/country/variant.

Since, this seems mostly a presentation issue, I would not expect a
Struts-specific feature to handle this; this seems like a candidate
for a taglib (if you are using JSP.)  You can find the rules that
ResourceBundles use for searching in the javadocs of the
ResourceBundle class.

You could make a taglib that searches for files based on those rules
(and adding some for your extra properties), and includes the file
that best matches.

Alternatively, since it sounds like you are happy with Cocoon, perhaps
you can mix the two together:

http://struts.sourceforge.net/struts-cocoon/index.html

And use Struts as a controller, and the Cocoon pipeline as your
presentation framework.

HTH,
Greg
> While trying out Cocoon, I was able to handle the customization part by
> always using the customization prefix in URIs (like
> http://localhost/app/foo/somepage.xsp), but
> not the language, although probably it could be handled in a similar way
> except in the login page:
> 
>   
> 
>   
>   
> 
> 
> 
>   
> 
> I don't think there is a way of achieving this with Struts.
> 
> Thanks
> 
> --
> Fernando Mato Mira   [EMAIL PROTECTED]
> Thomson Dialog
> 
>

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



Re: Validation in struts

2004-09-14 Thread Greg Ludington
> It is said that the validation(client side validations like say a particular
> textbox field can contain numbers only etc) should not be explicitly written
> in client-side validation javascripts in a struts framework. How can such
> things be accomplished using struts without writing specific client-side
> validation javascripts functions on the jsp page?
> Any help is greatly appreciated.

You will want to read up on the Validator framework.  When you use the
Validator, you configure rules about your form in an XML file.  Struts
will use those rules to perform server-side validation, but, for many
basic types of validation, Struts can also (optionally) emit the
proper javascript for client-side validation.  You can still write
your own javascript, if you need to or want to, but for many
validation tasks -- including the "can contains numbers only" scenario
you mentioned -- Struts will do it for you.

You can find a HOWTO guide on the Validator on the Struts site here:
http://struts.apache.org/userGuide/dev_validator.html

Also, I believe the Struts distribution ships with a validator example.

-Greg

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



Re: How to implement Custom webapp classloader? [OT]

2004-09-13 Thread Greg Ludington
> > nothing is going to stop the user from accessing the JAR file
> > directly and decompiling it if they want to :-).
> 
> A lawyer might ...

What compression do you use to stuff a laywer into a JAR?  :)

Greg
(Forgive the Friday-style comment on a Monday...)

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



Re: html tags in resource bundle

2004-07-10 Thread Greg Ludington
One possibility would be to create a forward (local or global) for the
Action you wish to link, and then, when you save ActionMessages,
create the link, and then pass it as a parametric replacement to the
message.

1) in struts-config.xml, create a forward that maps to the action link
you want in your message, e.g. .

2) Set your message to have another replacement, like:
auditapp.login.duplicate.user.error=A user with email address: {0}
already exists. If that is your email address, please use that email
address as your login along with the password you
were supplied.

3) In your Action, obtain the path of the forward, get its path, and
place it in the message.  Using your code as a basis:

catch(DuplicateUserException dupEx){
log.error("Caught DuplicateUserException in execute of
AuditAppRegistrationAction");

// This is the link created from the forward you defined in step 1
String replacementLink =
mapping.findForward("appRegisterLoginForward").getPath();
super.saveMessage(request, "auditapp.login.duplicate.user.error",
(String)f.get("email"), replacementLink);
return mapping.getInputForward();
}

This way, the creation and rewriting of the link itself is handled by
normal struts mechanisms, and you can manage the links in your
struts-config.xml file.


On Sat, 10 Jul 2004 17:39:32 -0700 (PDT), Juan Alvarado
<[EMAIL PROTECTED]> wrote:
> Hello everyone:
> 
> I have recently started using struts again and I am a bit rusty so please bear with 
> me. I searched the list for what I need and I didn't find anything.
> 
> What I need is to display to a user a message in a JSP. This message is pulled from 
> an ApplicationResources.properties file. What  I would like to do is to be able to 
> display a link to another page in this particular message.
> 
> My key looks like this:
> auditapp.login.duplicate.user.error=A user with email address: {0} already exists. 
> If that is your email address, please use that email address as your  action='/appRegisterLogin'>login along with the password you were 
> supplied.
> 
> As you can see it has a struts specific html tag. This of course didn't work. Does 
> anyone know of an equivalent way to do this. I could use regular html tags (although 
> I haven't tried it) but I would like to stick with the struts specific stuff as much 
> as I can. Especially since it will handle url rewriting for you. The above key gets 
> pulled from an action with the following code:
> ...
> 
> catch(DuplicateUserException dupEx){
> 
> log.error("Caught DuplicateUserException in execute of 
> AuditAppRegistrationAction");
> 
> super.saveMessage(request, "auditapp.login.duplicate.user.error", 
> (String)f.get("email"));
> 
> return mapping.getInputForward();
> 
> }
> 
> If you have a solution, ideas or suggestions I would appreciate it if you shared 
> them with me.
> 
> Thanks in advance.
> 
> Juan
> 
> 
> -
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!

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



Re: JSTL Has "Paging" Built-In?

2004-07-06 Thread Greg Ludington
>> I have tried one of the paging taglib; but, it does
not accept JSTL tags.
> What do you mean by "does not accept JSTL tags"?

If, by this you mean something along this snippet you posted in
another thread I found:

"
 maxPageItems="20"
 isOffset="true"
 export="offset,currentPageNumber=pageNumber"
 scope="request">
...

Then the answer will be no.  You cannot use a tag as an attribute of
another tag.   Since I do not think the jsptags pager is EL-aware at
this time, unless you are using Tomcat5, you most likely would have to
define totalThreads as a scriptlet variable, and use:



The displaytag library appears to have its own sort of expression
language, so that may be another option for you if you do not want to
use scriplet syntax for the attribute.

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



RE: how to nest a taglib in another taglib?

2004-04-07 Thread Greg Ludington
>
the "attribute" in the page context.

">

i know that has a way to do like this:




but there is another way to do it?
<

You should be able to use the type attribute to avoid having to call
toString() in your forum tag:




Or, if you are dead set against using multiple tags, you could throw it
all into one RT expression, as in: ">

However, not only does that look really ugly, it is also very vulnerable
to typographical errors -- I might have made one just now. =)

A better solution, if you are writing the forum taglib yourself, might
be to modify or subclass your hasContent tag to accept expression
language in attributes, leaving you with the much cleaner:



If that is the case, take a look at how the strutsel package handles
expressions.  The org.apache.strutsel.taglibs.utils.EvalHelper class has
convenience methods that should make it fairly easy to modify your own
tags to use expression language.




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