Struts 2 and JSTL (XML)

2007-04-04 Thread Eduardo Kortright

Hello,

Does anyone know if it's possible to combine Struts 2 and JSTL, specifically
the XML tags?

Or does Struts 2 provide the same functionality in its own set of tags?  I
would like to be able to import an XML document from some web service and
parse out the information into variables that I can display or pass to a
bean for further processing.

Thanks.

--
Eduardo Kortright


Re: Struts 2 and JSTL (XML)

2007-04-07 Thread Eduardo Kortright

Thanks!

On 4/5/07, Brian Thompson <[EMAIL PROTECTED]> wrote:


Yeah, it's possible.  Just declare both taglibs in your jsps, like this:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql"; prefix="sql" %>
<%@ taglib uri="/struts-tags" prefix="s" %>


-Brian

On 4/4/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Eduardo Kortright <[EMAIL PROTECTED]> wrote:
> > Does anyone know if it's possible to combine Struts
> > 2 and JSTL, specifically the XML tags?
>
> While I haven't used the XML tags specifically I have
> no idea why you wouldn't be able to use them just like
> any of the JSTL tags; it's just another Java web
> framework.
>
> d.
>
>
>
>
>
>

> The fish are biting.
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Eduardo Kortright


AJAX div loads local URL but not remote one

2007-04-07 Thread Eduardo Kortright

Hi all,

I'm trying to learn how to use AJAX, but I'm having some trouble.  In the
JSP below, the first  loads the URL just fine, but the second
 simply displays "Loading..." and stays that way forever.  IE
displays "Error on page" in the status bar when it is (apparently) trying to
contact the server, then "Done".  Is there anything that needs to be done
differently for a remote URL?

Thanks.

--
Eduardo


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

pageEncoding="ISO-8859-1"%>

http://www.w3.org/TR/html4/loose.dtd";>

<%@ taglib prefix="s" uri="/struts-tags" %>







Welcome









http://localhost:8080/Struts2-tutorial1/";>

Local page goes here.





http://www.google.com loadingText="Please
wait . . ." errorText="Sorry, can't load remote page">

Google page goes here.










Re: AJAX div loads local URL but not remote one

2007-04-07 Thread Eduardo Kortright

Sorry about that... cut and paste went crazy on me; let me try again.  Here
is the JSP again:

<%@ page language="java" contentType="text/html;
charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
http://www.w3.org/TR/html4/loose.dtd";>
<%@ taglib prefix="s" uri="/struts-tags" %>



Welcome




http://localhost:8080/Struts2-tutorial1/";>
 Local page goes here.


http://www.google.com";
 loadingText="Please wait . . ." errorText="Sorry, can't load remote page">
 Remote page goes here.






On 4/7/07, Eduardo Kortright <[EMAIL PROTECTED]> wrote:


Hi all,

I'm trying to learn how to use AJAX, but I'm having some trouble.  In the
JSP below, the first  loads the URL just fine, but the second
 simply displays "Loading..." and stays that way forever.  IE
displays "Error on page" in the status bar when it is (apparently) trying to
contact the server, then "Done".  Is there anything that needs to be done
differently for a remote URL?

Thanks.

--
Eduardo



Setting isDebug="true" for AJAX theme

2007-04-07 Thread Eduardo Kortright

Hi again,

Can anyone tell me how to turn on debugging (DOJO config var "isDebug")?

The page http://struts.apache.org/2.0.6/docs/ajax-head-template.html seems
to have some errors in it and I can't tell what the procedure is for setting
isDebug to true.

Thanks

--
Eduardo Kortright


Re: Setting isDebug="true" for AJAX theme

2007-04-07 Thread Eduardo Kortright

Thanks.  Now I only have to figure out why  gives a
dojo.widget.parse error when the URL is a remote website, but not when it is
a page on a local web server.

--
Eduardo


On 4/7/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Eduardo Kortright <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how to turn on debugging (DOJO
> config var "isDebug")?



d.






Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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





--
Eduardo Kortright


Re: Setting isDebug="true" for AJAX theme

2007-04-07 Thread Eduardo Kortright

Hmm.  I still see two instances of this error:

Error formatting macro: snippet: java.lang.IllegalArgumentException:
Invalid url: must begin with a configured prefix.

The first occurrence is after the words "The contents of head.ftl are:", and
the second is after the words "simply do the following in your HTML:"
Thanks for your prompt responses in any case.

--
Eduardo




On 4/7/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Eduardo Kortright <[EMAIL PROTECTED]> wrote:
> The page
>
http://struts.apache.org/2.0.6/docs/ajax-head-template.html
> seems to have some errors in it [...]

Fixed(-ish).

d.






Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and
hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

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





--
Eduardo Kortright


Re: AJAX div loads local URL but not remote one

2007-04-09 Thread Eduardo Kortright

Thanks.  Does that mean that the ajax tags allow only clients in the same
domain as the server to communicate with the server?  Or does it mean that
clients (in any domain) can communicate only with the server that served out
the pages containing the ajax call?

--
Eduardo


On 4/7/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:


Dojo supports crossdomain XHR using IFrames, but the ajax tags do not
support it, yet.

musachy

On 4/7/07, Eduardo Kortright <[EMAIL PROTECTED]> wrote:
>
> Sorry about that... cut and paste went crazy on me; let me try
> again.  Here
> is the JSP again:
>
> <%@ page language="java" contentType="text/html;
> charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
>  http://www.w3.org/TR/html4/loose.dtd";>
> <%@ taglib prefix="s" uri="/struts-tags" %>
> 
> 
> 
> Welcome
> 
> 
> 
> 
> http://localhost:8080/Struts2-tutorial1/";>
>   Local page goes here.
> 
> 
> http://www.google.com";
>   loadingText="Please wait . . ." errorText="Sorry, can't load remote
> page">
>   Remote page goes here.
> 
> 
> 
> 
>
>
> On 4/7/07, Eduardo Kortright <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I'm trying to learn how to use AJAX, but I'm having some trouble.  In
> the
> > JSP below, the first  loads the URL just fine, but the second
> >  simply displays "Loading..." and stays that way forever.  IE
> > displays "Error on page" in the status bar when it is (apparently)
> trying to
> > contact the server, then "Done".  Is there anything that needs to be
> done
> > differently for a remote URL?
> >
> > Thanks.
> >
> > --
> > Eduardo
> >
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd





--
Eduardo Kortright