Jherald Lacambra

Ranch Hand
+ Follow
since Feb 02, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jherald Lacambra

Im currently working on a project, struts-ibatis with mysql as the back end, i want to know which is better to do pagination displaytags from sourceforge(can i use this on struts) or do it at the backend(SQL thing)?
this what i have done so far.. i have reinstalled tomcat on my workstation nd make the http:connector port to 8081.. my colleagues still cannot see the index page of the tomcat..
18 years ago
windows xp pro is my os.. my tomcat is installed on my machine for testing pusposes..if the port 80 is block by the firewall then ur network admin will have the responsibilty of viewing the application when we get to install the tomcat to our server (linux platform). am i right?
18 years ago
Im having diffulties to configure tomcat(5.5.17). Only my workstation(where tomcat is instlled) can see the applications that are running. I want others on the network to see tomcat's app by http://myipadd/apps as url but didn't work. Please help me on cofiguring tomcat so that others can see the apps..
18 years ago
im using tomcat 5.5.15, set up the realm in server.xml, set up security config on WEB-INF/web.xml (using form based login).. but it seems tomcat does not look for the users in my database(postgre).. it always go to error.jsp even if i entered the correct username and password to login. i cannot view other pages. any help would be appreciated

thanks
jhe
18 years ago
JSP
use isNaN function to validate if the amount is a number or not.

Originally posted by gradnash nash:
Hello All,

I would like to replace a particular occurrence of a substring in a string with another substring.

for eg : Given string is : people <tag> help </tag> always

expected string is people <font> help </font> always.

I need to replace the occurrence of <tag> </tag> with <font></font>

help would be appreciated.

Thanks



String htmlTags = "people <tag> help </tag>";
htmlTags = htmlTags.replaceAll("tag","font");
18 years ago
from an article i am reading:

Using beans is a very common practice in JSP application development. This approach is popular because JavaBeans introduces reusability. This is to say, rather than building your own piece of code, you can simply use what other people have written. For example, you can purchase a bean for file upload and start uploading files within 30 seconds.
18 years ago
JSP
Some of the IDE's nowadays are spoon feeding. Meaning just click of a button or drag and drop an item will create a code for you. You will not learn if these things will do by your IDE. Infact there are a lot of IDE's out there to choose from. But if you get used to one of these IDE's without learning the basics, you will be dependent on it. Nowadays there are company that uses IDE's of their own(maybe their own product). If you get used to your IDE then, you will find hard time to learn their IDE(if you learn the basics from your IDE).
18 years ago
you can put the selectedIndex value on a hidden

when you submit do this:


on your myJsp.jsp


javascript:
18 years ago
JSP
yeah try to validate first on the client side or you can reformat the date on the server before making query
yeah opener will do.

like:

opener.document.[parentFormName].[elementName].value=document.[childFormName].[elementName].value
if you want to do that you will have 2 windows and 2 redirects.
one will redirect a window that will open you page and then it will redirect again to the original page.
18 years ago
JSP
thanks for the fast reply