Manoj John

Ranch Hand
+ Follow
since May 13, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manoj John

Hi,
please help,
I deployed one sample application in local machine and tested it is working but when i deployed the same in remote server when jboss starting it ishowing application is deployed.but when opening in browser it is not showing the page? please guide me what i 've to do?
19 years ago
hi,
I deployed one web application in remote jboss2.3.5 server.
but when i am testing http://<IP ADDRESS> in the browser not getting the page what i should do to get it.
on server startup it showing the appplication deployed.
19 years ago
hi,
please help me..
Is there any way to get the reference of another session?
19 years ago
Hi,
Please help...
In my application i need to prevent multiple login of same user.
I need it to implement when one loged in the previous user should inactivate.any solution is there without using database operations.
...
19 years ago
Yes Marc,
when the image tag loads the corresponding action will execute.The user won't get aware of that.
in that action we can get the data as request parameter...
19 years ago
Hi nobody is there??

Now i am paasing data through pixel instead of posting(i don't know how to post to other site)
like this
<img src="http://www.someothersite.com/asp/catchpixel.asp?userId=123&firstName=sfaff" height=1 width=1 border=0>
on loading the particular page the asp action will execute it is working
but the problem is that after executing that i need to redirect to some other page of that site(not our site).if sendRedirect is ther the passing pixel data makes some problem it is not executing the action.
please give any solution that sendRedirect should work only after executing the action embedd in <img tag.
19 years ago
thank you poornima,
I got the solution only i added scope to request in jsp form tag all other done by the form class.bc,z in action class i am stting it.
I am sorry to post to the soln when i got it.
19 years ago
Hi..
Anybody please give me a solution for this.
19 years ago
Hi,
I am working on struts.In my application one registration form
is there,user can enter data and on clicking the submit button i need to insert the data in our database also i 've to post it to one other site.
ie we both site need that data.first part that is inserting to our database is ok but how i can post the data to other on same time and to show their(other site's) page for further processing.please help....
[ August 19, 2004: Message edited by: Manoj John ]
19 years ago
In my application one registration page is there.
In that page i am populating state combo from database according to country selected.But when refreshing the page after getting the data the other fields data vanishes.but i need to keep it there in order to execute action for inserting it into database.
Can i separate the the two combo and after populating states from database
and to refresh only that jsp,keeping the values in other fields.
19 years ago
please any body give me the solution...
19 years ago
yes
Koskela, second time i need to submit the whole data after filling.
like hotmail sign for new account...

https://registernet.passport.net/reg.srf?id=2&lc=16393&sl=1
Thank you....
19 years ago
thank you for your consideration.....


function redirect(x){

document.forms[0].action="index.do?countryId=" + x;
document.forms[0].submit();

}
since the above code work only when user selected any contry.
so first time when page loads
String cCountry = request.getParameter("countryId");//returns the country
will be null so it is setting to zero.
when selecting the country option it will call thwe redirect(option.value)
and passes that value as queryString.

countryand passses to the tag
19 years ago
yes Koskela ,


If you have time go through this code and please give me your valuable suggestions..
if the code is confusing sorry.....
on change function of select tag i am calling one method redirect(x).
here x is selected index of country.

function redirect(x){

document.forms[0].action="index.do?countryId=" + x;
document.forms[0].submit();

}


Long country = new Long(0);
String cCountry = request.getParameter("countryId");
if ((cCountry == null) || ("".equals(cCountry))) {

cCountry = "0";

}
else {
country = new Long(cCountry);

}
%>


index.do gives the same page that is on which page we are selecting country
but populated states according to that...





this is the code for state select...
<html:select property="stateId">
<state:statelist name="states" countryId="<%=country%>"/>
</html:select>




I created one tag library
like this..
-------------------------------------code----------------------------------


public int doStartTag() {
availOptions = new StringBuffer();

/** Queries to be executed */
String queryState =
"SELECT STATE_ID, STATE_NAME FROM STATE WHERE COUNTRY_ID = ?";

try {
/** Open the connection, perform the query and store the results */
Class.forName(driver);
conn = DriverManager.getConnection(hostName, user, password);
conn.setAutoCommit(false);

if (conn != null) {
/** Get the list of states */
prepStmt = conn.prepareStatement(queryState);
prepStmt.setLong(1, this.countryId.longValue());
rsState = prepStmt.executeQuery();

availOptions.append(
"<option value=\"\"<span style=\"font-size: 10.0pt; font-family: Helvetica; color: black\">");
availOptions.append("Select State </span></option>\r\n");
/** Populate with the values of states */
while (rsState.next()) {
String cState = rsState.getString("STATE_NAME");
String cStateId = rsState.getString("STATE_ID");
addOption(availOptions, cState, cStateId,cStateId.equalsIgnoreCase(this.getStateId()));
}

ResponseUtils.write(pageContext, availOptions.toString());

return 0;
}

return SKIP_BODY;
}
catch (Exception ex) {
/** If the database can't be opened, skip everything */
return SKIP_BODY;
}
}


protected void addOption(StringBuffer availOptions, String label, String value, boolean matched) {
availOptions.append("<option value=\"" + value + "\"");

if (matched) {
availOptions.append(" selected=\"selected\"");
}
availOptions.append(
"<span style=\"font-size: 10.0pt; font-family: Helvetica; color: black\">");
availOptions.append(label);
availOptions.append("</span></option>\r\n");
}
19 years ago
please ......... anybody....??? it's urgent.
19 years ago