struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Unexpected output ????
Date Thu, 18 Dec 2003 03:01:09 GMT
Why are you using a page parameter in the html:link tag instead of a href 

<html:link href="/index.jsp?tab=4&id=1">Eric Chow</html:link>

Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155  Fax: +61 (0) 2 62468100
MOB: 0401 611779
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.

"Eric Chow" <>
18/12/2003 01:56 PM
Please respond to "Struts Users Mailing List"

        To:     "Struts Users Mailing List" <>
        Subject:        Unexpected output ????


I have used Struts(Tiles) since 1.0.
Recently, I found some problem in using Struts+Tomcat4/5.

In one of the JSP, there is a line as following.
<html:link page="/index.jsp?tab=4&id=1">Eric Chow</html:link>

In my home page, that is consist with different JSP and defined in Tiles.

One of the page is dynamic generated by JSP Customer Tag, it just select
some data from the database and output.
The problem is that,

   - If there isn't any matching data in the database (select nothing) at
the very first time loading.
   - Load again or reload a thousand times ..... NO PROBLEM.

   - Add some records to the database, it will automatic load those data 
the page, CORRECT.
   *** DELETE all the records,  the problem APPEAR !!!!!,    In the 
data display area, it should be display nothing but it always display 
Chow" !!!! Strange !!?????

Un-clever solution:
   - Finally, I changed <html:link page="/index.jsp?tab=4&id=1">Eric
   to <a href="index.jsp&tab=4&id=1">Eric Chow</a>
   ---- NO PROBLEM NOW ----

-- And also, not only this,  if I did the same steps in other similar
functions. It also will display some strange and unexpected output text.
Those strange output text are always be the BODY TAG contents !!!!!!

I am not sure if it is the Struts problem or Tomcat problem.


If you know what you are doing,
it is not called RESEARCH!

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message