Re: forward to a particular id in a page from forward...

2007-11-14 Thread Laurie Harper

shakeel_code wrote:

Hi,

i have an html id in a jsp page tr id=theId/tr.

i have,
forward name=thisisdjsp.jsp/ in my struts config.xml

but i want to go directly to that id in the jsp page when the forward
happens.

i also tried,
forward name=thisisdjsp.jsp id=theId/ 


but it was of no help

can anyone help me?


I'm not sure if I understand what you want... Do you mean you want 
clicking on a link to scroll the page to a particular anchor, as with a 
URL ending in #someID?


If so, that has nothing to do with Struts' forward config. HTML 
anchors are a client-side thing. They are defined in the HTML (usually 
with the 'anchor' (a) tag, though using an ID attribute on another 
element *might* work in XHTML). They are used by including the fragment 
identifier (#...) in a URL.


L.


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



RE: Re: forward to a particular id in a page from forward...

2007-11-14 Thread Richard . Ferri
It sounds like you want to use jsp:forward and not an ActionServlet.

The ActionServlet has many design advantages and is used mainly as an
organized controller in the model-view-controller design pattern.

If you are writing a very large application, you should use this as you
can decrease the amount of code you need to write and the application
will be easier to maintain.

If you are writing a very small application, you can still use the
ActionServlet

ActionServlet runs like a RequestProcessor which selects and invokes an
action to run the necessary business logic.

You may want to look up a tutorial on how to write your first Action -
ActionForm and attempt to move from there.


Otherwise, just do what you need to in your JSP.

 
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Wednesday, November 14, 2007 6:47 PM
To: user@struts.apache.org
Subject: Re: forward to a particular id in a page from forward...

shakeel_code wrote:
 Hi,
 
 i have an html id in a jsp page tr id=theId/tr.
 
 i have,
 forward name=thisisdjsp.jsp/ in my struts config.xml
 
 but i want to go directly to that id in the jsp page when the forward
 happens.
 
 i also tried,
 forward name=thisisdjsp.jsp id=theId/ 
 
 but it was of no help
 
 can anyone help me?

I'm not sure if I understand what you want... Do you mean you want 
clicking on a link to scroll the page to a particular anchor, as with a 
URL ending in #someID?

If so, that has nothing to do with Struts' forward config. HTML 
anchors are a client-side thing. They are defined in the HTML (usually 
with the 'anchor' (a) tag, though using an ID attribute on another 
element *might* work in XHTML). They are used by including the fragment 
identifier (#...) in a URL.

L.


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



The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.



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



forward to a particular id in a page from forward...

2007-11-13 Thread shakeel_code

Hi,

i have an html id in a jsp page tr id=theId/tr.

i have,
forward name=thisisdjsp.jsp/ in my struts config.xml

but i want to go directly to that id in the jsp page when the forward
happens.

i also tried,
forward name=thisisdjsp.jsp id=theId/ 

but it was of no help

can anyone help me?


thanks...

-- 
View this message in context: 
http://www.nabble.com/forward-to-a-particular-id-in-a-page-from-%3Cforward...-tf4796908.html#a13723190
Sent from the Struts - User mailing list archive at Nabble.com.


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